]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Clear services on FLUSH command
authorJouni Malinen <j@w1.fi>
Sun, 5 Jan 2014 06:53:35 +0000 (08:53 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 7 Jan 2014 08:45:10 +0000 (10:45 +0200)
The control interface FLUSH command now includes the step executed by
the P2P_SERVICE_FLUSH command.

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

wpa_supplicant/ctrl_iface.c

index 8e3931ffee079649d96aa6b86e17ff81ab525f56..db4d31981bdfb95572ce3ecc63dadff7c6e72274 100644 (file)
@@ -5167,6 +5167,7 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s)
        wpas_p2p_stop_find(wpa_s);
        p2p_ctrl_flush(wpa_s);
        wpas_p2p_group_remove(wpa_s, "*");
+       wpas_p2p_service_flush(wpa_s);
 #endif /* CONFIG_P2P */
 
 #ifdef CONFIG_WPS_TESTING