]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Flush secondary device types on FLUSH command
authorJouni Malinen <j@w1.fi>
Wed, 8 Jan 2014 20:27:30 +0000 (22:27 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 8 Jan 2014 20:27:30 +0000 (22:27 +0200)
This makes it possible to clear previously configured secondary device
types.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/ctrl_iface.c

index 3f53691aad93f73ecc6ea4cf2b962408a482d1d0..0214b386048360c54f7505fe051e3358e4f7043c 100644 (file)
@@ -5261,6 +5261,7 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s)
        wpas_p2p_service_flush(wpa_s);
        wpa_s->global->p2p_disabled = 0;
        wpa_s->global->p2p_per_sta_psk = 0;
+       wpa_s->conf->num_sec_device_types = 0;
 #endif /* CONFIG_P2P */
 
 #ifdef CONFIG_WPS_TESTING