[PATCH 1/1] P2P: Handle P2P de-init incase of supplicant termination

Jithu Jance jithu
Sun Aug 11 22:22:46 PDT 2013


This patch is for taking care of a case of supplicant
receiving a terminate signal while running an active p2p interface.
In this case, currently p2p de-initialization is not happening. This
code was there earlier and got removed recently.

Signed-hostap: Jithu Jance <jithu at broadcom.com>
---
 wpa_supplicant/wpa_supplicant.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index a18922a..630a545 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -3444,6 +3444,8 @@ void wpa_supplicant_deinit(struct wpa_global *global)
 	wifi_display_deinit(global);
 #endif /* CONFIG_WIFI_DISPLAY */

+	wpas_p2p_deinit_global(global);
+
 	while (global->ifaces)
 		wpa_supplicant_remove_iface(global, global->ifaces, 1);

--
1.7.9.5





More information about the Hostap mailing list