mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-18 10:19:24 +01:00
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:
parent
bc5b84c2f1
commit
6c5ae87f1a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user