3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

scan: parse station count from BSS load IE

This will be used in BSS ranking
This commit is contained in:
James Prestwood 2024-11-19 06:24:27 -08:00 committed by Denis Kenzior
parent 7465abe5f8
commit 7c5b40ff6b
2 changed files with 3 additions and 2 deletions

View File

@ -1343,8 +1343,8 @@ static bool scan_parse_bss_information_elements(struct scan_bss *bss,
iter.len + 2); iter.len + 2);
break; break;
case IE_TYPE_BSS_LOAD: case IE_TYPE_BSS_LOAD:
if (ie_parse_bss_load(&iter, NULL, &bss->utilization, if (ie_parse_bss_load(&iter, &bss->sta_count,
NULL) < 0) &bss->utilization, NULL) < 0)
l_warn("Unable to parse BSS Load IE for " l_warn("Unable to parse BSS Load IE for "
MAC, MAC_STR(bss->addr)); MAC, MAC_STR(bss->addr));
else else

View File

@ -67,6 +67,7 @@ struct scan_bss {
uint8_t ssid[SSID_MAX_SIZE]; uint8_t ssid[SSID_MAX_SIZE];
uint8_t ssid_len; uint8_t ssid_len;
uint8_t utilization; uint8_t utilization;
uint16_t sta_count;
uint8_t cc[3]; uint8_t cc[3];
uint16_t rank; uint16_t rank;
uint64_t time_stamp; uint64_t time_stamp;