diff options
| author | Jouni Malinen <jouni@qca.qualcomm.com> | 2013-10-18 11:17:03 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2013-10-18 05:28:51 -0700 |
| commit | 479ec34dcdc7342e2629841e69ce8dc77714b8d6 (patch) | |
| tree | dbadf73fe6de044eac8418dc34e7ff0b409dddd7 | |
| parent | aba939ae1a67a1b77382b0bda9405242a9594164 (diff) | |
| download | android_external_wpa_supplicant_8-479ec34dcdc7342e2629841e69ce8dc77714b8d6.tar.gz android_external_wpa_supplicant_8-479ec34dcdc7342e2629841e69ce8dc77714b8d6.tar.bz2 android_external_wpa_supplicant_8-479ec34dcdc7342e2629841e69ce8dc77714b8d6.zip | |
P2P: Allow persistent group determination based on Beacon frame
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.
Change-Id: I4eb179351b1d104d2ca31023c3405aaa570d21fc
CRs-Fixed: 535523
Git-commit: 5df7414b04fc0bfa0abea1a2662746d348104972
Git-repo: git://w1.fi/srv/git/hostap.git
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
| -rw-r--r-- | wpa_supplicant/p2p_supplicant.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index a285ff98..368707ac 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -482,6 +482,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 |
