]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Clear get_pref_freq_list_override on P2P Device
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Wed, 5 Jul 2017 18:25:05 +0000 (21:25 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 8 Jul 2017 13:06:28 +0000 (16:06 +0300)
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>
wpa_supplicant/ctrl_iface.c

index 5063801d6ce33ab6206b5736ea869438b3301647..a438f6799b94171a57ff04349501be6e869ca730 100644 (file)
@@ -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)