diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 3f53691aa..0214b3860 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