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:
Andrew Zaborowski 2016-12-12 18:34:29 +01:00 committed by Denis Kenzior
parent a750b7067a
commit 4d366df23f
1 changed files with 2 additions and 0 deletions

View File

@ -364,6 +364,8 @@ static void wsc_netdev_event(struct netdev *netdev, enum netdev_event event,
break;
case NETDEV_EVENT_LOST_BEACON:
l_debug("Lost beacon");
wsc_connect_cb(device_get_netdev(wsc->device),
NETDEV_RESULT_HANDSHAKE_FAILED, wsc);
break;
case NETDEV_EVENT_DISCONNECT_BY_AP:
l_debug("Disconnect by AP");