mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
cfg80211: util: fix bit count off by one
The bits of Rx MCS Map in VHT capability were enumerated with index transform - index i -> (i + 1) bit => nss i. BUG! while it should be - index i -> (i + 1) bit => (i + 1) nss. The bug was exposed in commita53b2a0b12("iwlwifi: mvm: implement VHT extended NSS support in rs.c"), where iwlwifi started using the function. Signed-off-by: Mordechay Goodstein <[email protected]> Fixes:b0aa75f0b1("ieee80211: add new VHT capability fields/parsing") Signed-off-by: Luca Coelho <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
f8891461a2
commit
1a473d6092
1 changed files with 1 additions and 1 deletions
|
|
@ -1998,7 +1998,7 @@ int ieee80211_get_vht_max_nss(struct ieee80211_vht_cap *cap,
|
|||
continue;
|
||||
|
||||
if (supp >= mcs_encoding) {
|
||||
max_vht_nss = i;
|
||||
max_vht_nss = i + 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue