3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

netdev: fix auth protocols not setting ->connected

This causes netdev to think another supplicant is running when it
recieves a connect event due to an auth protocol running.
This commit is contained in:
James Prestwood 2020-03-16 12:22:42 -07:00 committed by Denis Kenzior
parent 24235a2af8
commit 85fd9f50f7

View File

@ -2413,7 +2413,9 @@ static int netdev_connect_common(struct netdev *netdev,
NL80211_EXT_FEATURE_CAN_REPLACE_PTK0)) NL80211_EXT_FEATURE_CAN_REPLACE_PTK0))
handshake_state_set_no_rekey(hs, true); handshake_state_set_no_rekey(hs, true);
auth_proto_start(netdev->ap); /* set connected since the auth protocols cannot do so internally */
if (netdev->ap && auth_proto_start(netdev->ap))
netdev->connected = true;
return 0; return 0;
} }