aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bss.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-07-18 21:30:25 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-09 14:17:18 (GMT)
commit0c6b310e833738693062411b1d25d4d7a22ec0e7 (patch)
treee9fa85eb1eb66dc695d9f8c289070746e4935e73 /wpa_supplicant/bss.c
parentd23bd8940f75d90a8731f6aacc391a97a81a901c (diff)
downloadhostap-0c6b310e833738693062411b1d25d4d7a22ec0e7.zip
hostap-0c6b310e833738693062411b1d25d4d7a22ec0e7.tar.gz
hostap-0c6b310e833738693062411b1d25d4d7a22ec0e7.tar.bz2
P2P: Show P2P info in ctrl_iface scan results
Diffstat (limited to 'wpa_supplicant/bss.c')
-rw-r--r--wpa_supplicant/bss.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c
index e2ac230..dc978af 100644
--- a/wpa_supplicant/bss.c
+++ b/wpa_supplicant/bss.c
@@ -325,7 +325,7 @@ void wpa_bss_update_start(struct wpa_supplicant *wpa_s)
void wpa_bss_update_scan_res(struct wpa_supplicant *wpa_s,
struct wpa_scan_res *res)
{
- const u8 *ssid;
+ const u8 *ssid, *p2p;
struct wpa_bss *bss;
ssid = wpa_scan_get_ie(res, WLAN_EID_SSID);
@@ -340,6 +340,11 @@ void wpa_bss_update_scan_res(struct wpa_supplicant *wpa_s,
return;
}
+ p2p = wpa_scan_get_vendor_ie(res, P2P_IE_VENDOR_TYPE);
+ if (p2p && ssid[1] == P2P_WILDCARD_SSID_LEN &&
+ os_memcmp(ssid + 2, P2P_WILDCARD_SSID, P2P_WILDCARD_SSID_LEN) == 0)
+ return; /* Skip P2P listen discovery results here */
+
/* TODO: add option for ignoring BSSes we are not interested in
* (to save memory) */
bss = wpa_bss_get(wpa_s, res->bssid, ssid + 2, ssid[1]);