nl80211: Clear ignore_next_local_deauth and ignore_deauth_event
authorSara Sharon <sara.sharon@intel.com>
Tue, 3 Nov 2015 14:24:56 +0000 (16:24 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 21 Nov 2015 16:00:33 +0000 (18:00 +0200)
commitcb2a926df83a5167927280d735abfa4328a4265d
treef67d96c0ef82678e2b363143c8cb8ed016aaccf8
parentfe5aa8cb9ce34ffec85672d29da163bbcfb5df9b
nl80211: Clear ignore_next_local_deauth and ignore_deauth_event

The authentication flow in wpa_driver_nl80211_authenticate() can
result  in a locally generated de-authentication, in which both
next_local_deauth and ignore_next_local_deauth are set.

However, in mlme_event_deauth_disassoc(), when ignore_deauth_event is
set, the flag is cleared, but the flow immediately returns leaving
ignore_next_local_deauth set, which can result in ignoring future deauth
event from the driver, leaving the wpa_supplicant in an inconsistent
state.

Fix this by clearing both flags in case that next_local_deauth is set.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
src/drivers/driver_nl80211_event.c