aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-10-14 16:23:38 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-14 16:23:38 (GMT)
commitb16696ff72969329c9e4507f9bbcaf5882b492f7 (patch)
treeb61668327939cf6524ecb4f846e99cc97622149b /wpa_supplicant/events.c
parentbb50ae439686fb69f52288a618e6d176462ab726 (diff)
downloadhostap-b16696ff72969329c9e4507f9bbcaf5882b492f7.zip
hostap-b16696ff72969329c9e4507f9bbcaf5882b492f7.tar.gz
hostap-b16696ff72969329c9e4507f9bbcaf5882b492f7.tar.bz2
P2P: Show p2p flag in debug info for scan results
This makes it easier to confirm that P2P capabilities for a GO has been discovered properly. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 977564c..4f75f3c 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -715,10 +715,13 @@ static struct wpa_ssid * wpa_scan_res_match(struct wpa_supplicant *wpa_s,
rsn_ie_len = ie ? ie[1] : 0;
wpa_dbg(wpa_s, MSG_DEBUG, "%d: " MACSTR " ssid='%s' "
- "wpa_ie_len=%u rsn_ie_len=%u caps=0x%x level=%d%s",
+ "wpa_ie_len=%u rsn_ie_len=%u caps=0x%x level=%d%s%s",
i, MAC2STR(bss->bssid), wpa_ssid_txt(bss->ssid, bss->ssid_len),
wpa_ie_len, rsn_ie_len, bss->caps, bss->level,
- wpa_bss_get_vendor_ie(bss, WPS_IE_VENDOR_TYPE) ? " wps" : "");
+ wpa_bss_get_vendor_ie(bss, WPS_IE_VENDOR_TYPE) ? " wps" : "",
+ (wpa_bss_get_vendor_ie(bss, P2P_IE_VENDOR_TYPE) ||
+ wpa_bss_get_vendor_ie_beacon(bss, P2P_IE_VENDOR_TYPE)) ?
+ " p2p" : "");
e = wpa_blacklist_get(wpa_s, bss->bssid);
if (e) {