3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 10:39:23 +01:00

netdev: only call connect_ok in station/p2p_client mode

netdev_connect_ok is only for station/p2p_client modes but AP
also ends up on the same code path. Check the iftype before
calling netdev_connect_ok.
This commit is contained in:
James Prestwood 2021-04-27 16:34:51 -07:00 committed by Denis Kenzior
parent e148e1ea99
commit e0ffd94832

View File

@ -1352,7 +1352,9 @@ static void try_handshake_complete(struct netdev_handshake_state *nhs)
nhs->complete = true; nhs->complete = true;
handshake_event(&nhs->super, HANDSHAKE_EVENT_COMPLETE); handshake_event(&nhs->super, HANDSHAKE_EVENT_COMPLETE);
netdev_connect_ok(nhs->netdev); if (nhs->netdev->type == NL80211_IFTYPE_STATION ||
nhs->netdev->type == NL80211_IFTYPE_P2P_CLIENT)
netdev_connect_ok(nhs->netdev);
} }
} }