From f62c2315f71860d7334c8dcd470c702a20d8392b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 11 Jun 2010 13:47:33 -0700 Subject: [PATCH] Show signal level and WPS support in scan results debug dump This makes it easier to debug AP selection for WPS provisioning. --- wpa_supplicant/events.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index d9801acfd..4808c6816 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -440,10 +440,12 @@ wpa_supplicant_select_bss_wpa(struct wpa_supplicant *wpa_s, rsn_ie_len = ie ? ie[1] : 0; wpa_printf(MSG_DEBUG, "%d: " MACSTR " ssid='%s' " - "wpa_ie_len=%u rsn_ie_len=%u caps=0x%x", + "wpa_ie_len=%u rsn_ie_len=%u caps=0x%x level=%d%s", (int) i, MAC2STR(bss->bssid), wpa_ssid_txt(ssid_, ssid_len), - wpa_ie_len, rsn_ie_len, bss->caps); + wpa_ie_len, rsn_ie_len, bss->caps, bss->level, + wpa_scan_get_vendor_ie(bss, WPS_IE_VENDOR_TYPE) ? + " wps" : ""); e = wpa_blacklist_get(wpa_s, bss->bssid); if (e && e->count > 1) {