mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +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:
parent
e148e1ea99
commit
e0ffd94832
@ -1352,7 +1352,9 @@ static void try_handshake_complete(struct netdev_handshake_state *nhs)
|
||||
nhs->complete = true;
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user