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.
This commit is contained in:
Patrik Flykt 2018-11-05 11:25:52 -07:00 committed by Denis Kenzior
parent 635c530e5e
commit 0b1e6cc3e5
1 changed files with 4 additions and 2 deletions

View File

@ -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);