]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Do not clear hostapd configuration parameters on disable-iface
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 25 Sep 2013 15:35:32 +0000 (18:35 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 25 Sep 2013 15:35:32 +0000 (18:35 +0300)
There was a comment about the the cleanup steps being from
hostapd_cleanup_iface(). However, the operations that cleared some
security parameters do not seem to exist elsewhere and do not make sense
here. Remove them to avoid changing configuration with DISABLE followed
by ENABLE.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

src/ap/hostapd.c

index fd1ca2b39e505dec5228f738c163e1b8990aa48a..af44a1d97597e77969419a26b5e712d99612da66 100644 (file)
@@ -1217,9 +1217,6 @@ int hostapd_disable_iface(struct hostapd_iface *hapd_iface)
         * hostapd_setup_interface and hostapd_setup_interface_complete
         */
        hostapd_cleanup_iface_partial(hapd_iface);
-       bss->wpa = 0;
-       bss->wpa_key_mgmt = -1;
-       bss->wpa_pairwise = -1;
 
        wpa_printf(MSG_DEBUG, "Interface %s disabled", bss->iface);
        return 0;