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

wiphy: use a 16 bit tag for extended IEs

If an extended IE is needed a uint8_t tag would overflow.
This commit is contained in:
James Prestwood 2022-07-19 11:55:38 -07:00 committed by Denis Kenzior
parent d46fac6e93
commit bdcbccbb9f

View File

@ -811,7 +811,7 @@ int wiphy_estimate_data_rate(struct wiphy *wiphy,
ie_tlv_iter_init(&iter, ies, ies_len);
while (ie_tlv_iter_next(&iter)) {
uint8_t tag = ie_tlv_iter_get_tag(&iter);
uint16_t tag = ie_tlv_iter_get_tag(&iter);
switch (tag) {
case IE_TYPE_SUPPORTED_RATES: