]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Reset beacon_set_done on disabling interface
authornakul kachhwaha <nkachhwa@codeaurora.org>
Wed, 3 Apr 2019 07:02:59 +0000 (12:32 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 12 Apr 2019 17:18:09 +0000 (20:18 +0300)
beacon_set_done did not get reset to zero on disabling interface using
DISABLE control interface command and the subsequent ENABLE command will
caused configuration of Beacon/Probe Response/Association Response frame
IEs twice. The unnecessary two step configuration can be avoided by
resetting beacon_set_done on DISABLE so that ENABLE can bring up the
interface in a single step with fully updated IEs.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/hostapd.c

index 77742f441d8459deaa328cd73156eede4aed9a18..20c8e8f5a4f7162535a26e07d3ed3b0c61f09e35 100644 (file)
@@ -352,6 +352,7 @@ static void hostapd_free_hapd_data(struct hostapd_data *hapd)
                return;
        }
        hapd->started = 0;
+       hapd->beacon_set_done = 0;
 
        wpa_printf(MSG_DEBUG, "%s(%s)", __func__, hapd->conf->iface);
        iapp_deinit(hapd->iapp);