commit 0b1e6cc3e584900cda59d29442dcb65c9c0a7d23
parent 635c530e5e4c6f09c232383340c8a0c903aae869
Author: Patrik Flykt <patrik.flykt@linux.intel.com>
Date: Mon, 5 Nov 2018 11:25:52 -0700
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.
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git 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);