[PATCH 05/16] P2P: Send M2D event on the global control interface

Ilan Peer ilan.peer at intel.com
Wed Jun 17 09:24:51 EDT 2015


As this is not an interface specific event, and the P2P
related events should be sent on the global control interface.

Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
 wpa_supplicant/wps_supplicant.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index a97c2a8..6f770b9 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -584,7 +584,8 @@ static void wpa_supplicant_wps_event_m2d(struct wpa_supplicant *wpa_s,
 	wpas_notify_wps_event_m2d(wpa_s, m2d);
 #ifdef CONFIG_P2P
 	if (wpa_s->parent && wpa_s->parent != wpa_s) {
-		wpa_msg(wpa_s->parent, MSG_INFO, WPS_EVENT_M2D
+		wpa_msg_global(wpa_s->global->p2p_init_wpa_s,
+			       MSG_INFO, WPS_EVENT_M2D
 			"dev_password_id=%d config_error=%d",
 			m2d->dev_password_id, m2d->config_error);
 	}
-- 
1.9.1



More information about the HostAP mailing list