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

scan: Save the MD IE in bss scan entry

This commit is contained in:
Andrew Zaborowski 2016-10-28 05:59:52 +02:00 committed by Denis Kenzior
parent e4c168cc3b
commit da435326aa
2 changed files with 9 additions and 0 deletions

View File

@ -584,6 +584,13 @@ static bool scan_parse_bss_information_elements(struct scan_bss *bss,
bss->wpa = l_memdup(iter.data - 2, bss->wpa = l_memdup(iter.data - 2,
iter.len + 2); iter.len + 2);
break; break;
case IE_TYPE_MOBILITY_DOMAIN:
if (!bss->mde_present && iter.len == 3) {
memcpy(bss->mde, iter.data, iter.len);
bss->mde_present = true;
}
break;
} }
} }

View File

@ -52,12 +52,14 @@ struct scan_bss {
uint8_t *wpa; uint8_t *wpa;
uint8_t *wsc; /* Concatenated WSC IEs */ uint8_t *wsc; /* Concatenated WSC IEs */
ssize_t wsc_size; /* Size of Concatenated WSC IEs */ ssize_t wsc_size; /* Size of Concatenated WSC IEs */
uint8_t mde[3];
uint8_t ssid[32]; uint8_t ssid[32];
uint8_t ssid_len; uint8_t ssid_len;
struct l_uintset *supported_rates; struct l_uintset *supported_rates;
uint8_t utilization; uint8_t utilization;
uint16_t rank; uint16_t rank;
bool sha256:1; bool sha256:1;
bool mde_present : 1;
}; };
uint32_t scan_passive(uint32_t ifindex, scan_trigger_func_t trigger, uint32_t scan_passive(uint32_t ifindex, scan_trigger_func_t trigger,