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

Ilan Peer ilan.peer
Mon Jul 7 04:20:58 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 7c9ad19..46c561b 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -10673,6 +10673,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