From 0b1e6cc3e584900cda59d29442dcb65c9c0a7d23 Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Mon, 5 Nov 2018 11:25:52 -0700 Subject: [PATCH] scan: Log BSSID in messages If there is an error with the BSSID information, log the BSSID station address to catch the offending Access Point. --- src/scan.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/scan.c b/src/scan.c index dbbdaa95..ba36163a 100644 --- a/src/scan.c +++ b/src/scan.c @@ -794,7 +794,8 @@ static bool scan_parse_bss_information_elements(struct scan_bss *bss, if (ie_parse_supported_rates(&iter, &bss->supported_rates) < 0) l_warn("Unable to parse [Extended] " - "Supported Rates IE"); + "Supported Rates IE for " + MAC, MAC_STR(bss->addr)); break; case IE_TYPE_RSN: if (!bss->rsne) @@ -804,7 +805,8 @@ static bool scan_parse_bss_information_elements(struct scan_bss *bss, case IE_TYPE_BSS_LOAD: if (ie_parse_bss_load(&iter, NULL, &bss->utilization, NULL) < 0) - l_warn("Unable to parse BSS Load IE"); + l_warn("Unable to parse BSS Load IE for " + MAC, MAC_STR(bss->addr)); else l_debug("Load: %u/255", bss->utilization);