Parcourir la source

Do not clear hostapd configuration parameters on disable-iface

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>
Jouni Malinen il y a 11 ans
Parent
commit
97bacf7cf6
1 fichiers modifiés avec 0 ajouts et 3 suppressions
  1. 0 3
      src/ap/hostapd.c

+ 0 - 3
src/ap/hostapd.c

@@ -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;