netdev: Relax 4-way handshake condition

Right now the code checks for is_rsn to wait for the 4-way handshake and
sends the NETDEV_EVENT_4WAY_HANDSHAKE.  However, is_rsn condition is not
true for WSC connections since they do not set an RSN field.  Still,
they are EAP based handshakes and should be treated in the same manner.

We relax the is_rsn check to instead check for netdev->sm.  Currently
netdev->sm is only non-NULL if handshake->own_ie field is not NULL or in
the case of eap-wsc connections.
This commit is contained in:
Denis Kenzior 2017-02-22 16:58:12 -06:00
parent bc5b84c2f1
commit 6c5ae87f1a
1 changed files with 1 additions and 1 deletions

View File

@ -1366,7 +1366,7 @@ static void netdev_connect_event(struct l_genl_msg *msg,
netdev->user_data);
netdev->connect_cb = NULL;
}
} else if (is_rsn) {
} else if (netdev->sm) {
if (netdev->event_filter)
netdev->event_filter(netdev,
NETDEV_EVENT_4WAY_HANDSHAKE,