aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-01-08 20:27:30 (GMT)
committerJouni Malinen <j@w1.fi>2014-01-08 20:27:30 (GMT)
commit78f0c933e07c20b9b876153dbb5e0fc79c23c751 (patch)
tree4082ecb4b426cd2a903db473dec957b342bfc5d5 /wpa_supplicant
parentc70ebce0ba50d26760fdfb266f21c4f4483d57d9 (diff)
downloadhostap-78f0c933e07c20b9b876153dbb5e0fc79c23c751.zip
hostap-78f0c933e07c20b9b876153dbb5e0fc79c23c751.tar.gz
hostap-78f0c933e07c20b9b876153dbb5e0fc79c23c751.tar.bz2
Flush secondary device types on FLUSH command
This makes it possible to clear previously configured secondary device types. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/ctrl_iface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 3f53691..0214b38 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -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