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

Submitted by Ilan Peer on July 7, 2014, 11:20 a.m.

Details

Message ID 1404732076-32252-6-git-send-email-ilan.peer@intel.com
State Accepted
Headers show

Commit Message

Ilan Peer July 7, 2014, 11:20 a.m.
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@intel.com>
---
 src/drivers/driver_nl80211.c |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

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