From 9bc5cfa3388098e9bf8365f688fac1f37f2ac1bb Mon Sep 17 00:00:00 2001 From: Ilan Peer Date: Mon, 7 Jul 2014 14:20:58 +0300 Subject: [PATCH] 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 --- 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 cd66eef77..8c7508da9 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