nl80211: Clear beacon_set when deleting a beacon from deinit_ap()

When a beacon was deleted from the kernel in
wpa_driver_nl80211_deinit_ap(), bss->beacon_set was not cleared so
restarting the AP again was not possible.

Fix this by clearing the variable once the beacon was deleted.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
Ilan Peer 2014-07-07 14:20:58 +03:00 committed by Jouni Malinen
parent ea6bf29ea3
commit 9bc5cfa338

View file

@ -11132,6 +11132,7 @@ static int wpa_driver_nl80211_deinit_ap(void *priv)
if (!is_ap_interface(drv->nlmode))
return -1;
wpa_driver_nl80211_del_beacon(drv);
bss->beacon_set = 0;
/*
* If the P2P GO interface was dynamically added, then it is