aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2014-07-07 11:20:58 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-25 22:24:03 (GMT)
commit9bc5cfa3388098e9bf8365f688fac1f37f2ac1bb (patch)
treef4a16e1ea9bc352a02ef9d58874f5a7133db7983 /src
parentea6bf29ea3fb5abcaafb85ed5f0a26356ecb225a (diff)
downloadhostap-9bc5cfa3388098e9bf8365f688fac1f37f2ac1bb.zip
hostap-9bc5cfa3388098e9bf8365f688fac1f37f2ac1bb.tar.gz
hostap-9bc5cfa3388098e9bf8365f688fac1f37f2ac1bb.tar.bz2
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>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index cd66eef..8c7508d 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -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