[PATCH 05/24] nl80211: clear beacon_set when deleting a beacon

Ilan Peer ilan.peer
Mon May 19 00:06:02 PDT 2014


When a beacon was deleted from the kernel in wpa_driver_nl80211_deinit_ap(),
bss->beacon_set was not cleared so it 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 at intel.com>
---
 src/drivers/driver_nl80211.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index be449c6..67332d9 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -10543,6 +10543,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
-- 
1.7.10.4




More information about the Hostap mailing list