aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>2017-07-05 18:25:05 (GMT)
committerJouni Malinen <j@w1.fi>2017-07-08 13:06:28 (GMT)
commitd02e4c8ac8ccd8089417a3fb2f2185fe954ecbab (patch)
tree567e61cd7f00100951cc7d7635755730084790e5 /wpa_supplicant/ctrl_iface.c
parent100d334f43d6bc314d3b975be674d5de35a763d2 (diff)
downloadhostap-d02e4c8ac8ccd8089417a3fb2f2185fe954ecbab.zip
hostap-d02e4c8ac8ccd8089417a3fb2f2185fe954ecbab.tar.gz
hostap-d02e4c8ac8ccd8089417a3fb2f2185fe954ecbab.tar.bz2
P2P: Clear get_pref_freq_list_override on P2P Device
Clear the get_pref_freq_list_override in p2p_ctrl_flush(). This fixes the case when a dedicated P2P device interface is used. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.c')
-rw-r--r--wpa_supplicant/ctrl_iface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 5063801..a438f67 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -6651,6 +6651,12 @@ static void p2p_ctrl_flush(struct wpa_supplicant *wpa_s)
{
os_memset(wpa_s->p2p_auth_invite, 0, ETH_ALEN);
wpa_s->force_long_sd = 0;
+
+#ifdef CONFIG_TESTING_OPTIONS
+ os_free(wpa_s->get_pref_freq_list_override);
+ wpa_s->get_pref_freq_list_override = NULL;
+#endif /* CONFIG_TESTING_OPTIONS */
+
wpas_p2p_stop_find(wpa_s);
wpa_s->parent->p2ps_method_config_any = 0;
if (wpa_s->global->p2p)