]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Allow persistent group determination based on Beacon frame
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 14 Oct 2013 16:28:00 +0000 (19:28 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 14 Oct 2013 16:28:00 +0000 (19:28 +0300)
P2P IE may be available from a Beacon frame from a GO even if we have
not yet received a Probe Response frame with P2P IE from that GO. Since
all the needed information for determining the GO's P2P Device Address
and group capabilities are available, use that information instead of
displaying incomplete group information.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/p2p_supplicant.c

index 4780ad1482a2cbe44fc22eb8e6a73651e5e0300f..027caef58207e74ccd4e57ff210974920bde9cf9 100644 (file)
@@ -535,6 +535,9 @@ static int wpas_p2p_persistent_group(struct wpa_supplicant *wpa_s,
        }
 
        p2p = wpa_bss_get_vendor_ie_multi(bss, P2P_IE_VENDOR_TYPE);
+       if (p2p == NULL)
+               p2p = wpa_bss_get_vendor_ie_multi_beacon(bss,
+                                                        P2P_IE_VENDOR_TYPE);
        if (p2p == NULL) {
                wpa_printf(MSG_DEBUG, "P2P: Could not figure out whether "
                           "group is persistent - BSS " MACSTR