Browse Source

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.
Jouni Malinen 14 years ago
parent
commit
148bb37f2e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      wpa_supplicant/p2p_supplicant.c

+ 2 - 0
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;
 }