]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Clear beacon_set when deleting a beacon from deinit_ap()
authorIlan Peer <ilan.peer@intel.com>
Mon, 7 Jul 2014 11:20:58 +0000 (14:20 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 25 Oct 2014 22:24:03 +0000 (01:24 +0300)
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>
src/drivers/driver_nl80211.c

index cd66eef778e6ef5dc1918800b7f7c3e9937c37c7..8c7508da9c404092493c3ab152927e5b900f9bd6 100644 (file)
@@ -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