diff options
| author | Jouni Malinen <jouni@qca.qualcomm.com> | 2013-10-18 11:12:31 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2013-10-18 05:28:37 -0700 |
| commit | aba939ae1a67a1b77382b0bda9405242a9594164 (patch) | |
| tree | 6b4983a72c96d42a5dba3b5cffb9915be23e0ef8 | |
| parent | ec9327ed080998bd7e9910cbadcf4735d660b83c (diff) | |
| download | android_external_wpa_supplicant_8-aba939ae1a67a1b77382b0bda9405242a9594164.tar.gz android_external_wpa_supplicant_8-aba939ae1a67a1b77382b0bda9405242a9594164.tar.bz2 android_external_wpa_supplicant_8-aba939ae1a67a1b77382b0bda9405242a9594164.zip | |
P2P: Do not allow P2P client connection without P2P IE from GO
P2P-GROUP-STARTED event depends on having enough information about the
group available. To avoid incomplete information from being delivered to
upper layers, do not accept scan results without P2P IE (e.g., from a
non-P2P scan) for P2P client association process. This can be of use for
some join-a-group cases where non-P2P scans have generated the BSS entry
for the GO.
Change-Id: I42bc5c5cc17d7786eaf4018c2774bb13bb6e4be2
CRs-Fixed: 535523
Git-commit: b72e14e599785e377881a2a8cd26b42f90bdc5f6
Git-repo: git://w1.fi/srv/git/hostap.git
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
| -rw-r--r-- | wpa_supplicant/events.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 184b14ef..d30912e3 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -829,6 +829,13 @@ static struct wpa_ssid * wpa_scan_res_match(struct wpa_supplicant *wpa_s, } #ifdef CONFIG_P2P + if (ssid->p2p_group && + !wpa_bss_get_vendor_ie(bss, P2P_IE_VENDOR_TYPE) && + !wpa_bss_get_vendor_ie_beacon(bss, P2P_IE_VENDOR_TYPE)) { + wpa_dbg(wpa_s, MSG_DEBUG, " skip - no P2P IE seen"); + continue; + } + /* * TODO: skip the AP if its P2P IE has Group Formation * bit set in the P2P Group Capability Bitmap and we |
