mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-30 06:02:39 +01:00
wsc: Handle beacon lost event
Handle the beacon loss event same as a disconnect: if any credentials have been received try using them, otherwise fail.
This commit is contained in:
parent
a750b7067a
commit
4d366df23f
@ -364,6 +364,8 @@ static void wsc_netdev_event(struct netdev *netdev, enum netdev_event event,
|
|||||||
break;
|
break;
|
||||||
case NETDEV_EVENT_LOST_BEACON:
|
case NETDEV_EVENT_LOST_BEACON:
|
||||||
l_debug("Lost beacon");
|
l_debug("Lost beacon");
|
||||||
|
wsc_connect_cb(device_get_netdev(wsc->device),
|
||||||
|
NETDEV_RESULT_HANDSHAKE_FAILED, wsc);
|
||||||
break;
|
break;
|
||||||
case NETDEV_EVENT_DISCONNECT_BY_AP:
|
case NETDEV_EVENT_DISCONNECT_BY_AP:
|
||||||
l_debug("Disconnect by AP");
|
l_debug("Disconnect by AP");
|
||||||
|
Loading…
Reference in New Issue
Block a user