]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Send WPS-OVERLAP-DETECTED also to the parent interface
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 12 Nov 2010 09:30:58 +0000 (11:30 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 12 Nov 2010 09:30:58 +0000 (11:30 +0200)
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.

wpa_supplicant/p2p_supplicant.c

index eeb487fc843d61d64807377b194c4e43b28d9bc5..c1428c43b1cc6cfbc223171b58fd188dfc92fde3 100644 (file)
@@ -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;
 }