From: Jouni Malinen Date: Fri, 12 Nov 2010 09:30:58 +0000 (+0200) Subject: P2P: Send WPS-OVERLAP-DETECTED also to the parent interface X-Git-Tag: hostap-1-bp~842 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=148bb37f2ed8fd46ca42c2d7dca9eb8788783226;p=thirdparty%2Fhostap.git P2P: Send WPS-OVERLAP-DETECTED also to the parent interface When running "p2p_connect addr pbc join" command, send the WPS-OVERLAP-DETECTED even also to the parent interface (i.e., the one on which the p2p_connect was issued) and not only the group interface in case separate P2P group interfaces are used. --- diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index eeb487fc8..c1428c43b 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -3798,6 +3798,8 @@ int wpas_p2p_notif_pbc_overlap(struct wpa_supplicant *wpa_s) wpa_printf(MSG_DEBUG, "P2P: Terminate connection due to WPS PBC " "session overlap"); + if (wpa_s != wpa_s->parent) + wpa_msg_ctrl(wpa_s->parent, MSG_INFO, WPS_EVENT_OVERLAP); wpas_group_formation_completed(wpa_s, 0); return 1; }