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
1 changed files with 1 additions and 1 deletions

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: