mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +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,6 +1352,8 @@ 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);
|
||||||
|
|
||||||
|
if (nhs->netdev->type == NL80211_IFTYPE_STATION ||
|
||||||
|
nhs->netdev->type == NL80211_IFTYPE_P2P_CLIENT)
|
||||||
netdev_connect_ok(nhs->netdev);
|
netdev_connect_ok(nhs->netdev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user