aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bss.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-06-05 18:09:57 (GMT)
committerJouni Malinen <jouni@codeaurora.org>2019-06-05 18:09:57 (GMT)
commit7deb0450bc11a081ef21e5b97e0c1195e38279ce (patch)
treee553f2eb3b6be19df83f0084b48a0525ac8edc89 /wpa_supplicant/bss.c
parentea27fcff615226a958ec0b7302741287c772f063 (diff)
downloadhostap-7deb0450bc11a081ef21e5b97e0c1195e38279ce.zip
hostap-7deb0450bc11a081ef21e5b97e0c1195e38279ce.tar.gz
hostap-7deb0450bc11a081ef21e5b97e0c1195e38279ce.tar.bz2
Interworking: Print HESSID in debug messages
This makes it easier to understand ANQP queries needed during Interworking network selection. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant/bss.c')
-rw-r--r--wpa_supplicant/bss.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c
index 9b19f37..441529c 100644
--- a/wpa_supplicant/bss.c
+++ b/wpa_supplicant/bss.c
@@ -431,6 +431,7 @@ static struct wpa_bss * wpa_bss_add(struct wpa_supplicant *wpa_s,
struct os_reltime *fetch_time)
{
struct wpa_bss *bss;
+ char extra[50];
bss = os_zalloc(sizeof(*bss) + res->ie_len + res->beacon_ie_len);
if (bss == NULL)
@@ -456,10 +457,15 @@ static struct wpa_bss * wpa_bss_add(struct wpa_supplicant *wpa_s,
dl_list_add_tail(&wpa_s->bss, &bss->list);
dl_list_add_tail(&wpa_s->bss_id, &bss->list_id);
wpa_s->num_bss++;
+ if (!is_zero_ether_addr(bss->hessid))
+ os_snprintf(extra, sizeof(extra), " HESSID " MACSTR,
+ MAC2STR(bss->hessid));
+ else
+ extra[0] = '\0';
wpa_dbg(wpa_s, MSG_DEBUG, "BSS: Add new id %u BSSID " MACSTR
- " SSID '%s' freq %d",
+ " SSID '%s' freq %d%s",
bss->id, MAC2STR(bss->bssid), wpa_ssid_txt(ssid, ssid_len),
- bss->freq);
+ bss->freq, extra);
wpas_notify_bss_added(wpa_s, bss->bssid, bss->id);
return bss;
}