]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: util: fix bit count off by one
authorMordechay Goodstein <mordechay.goodstein@intel.com>
Wed, 29 May 2019 12:25:31 +0000 (15:25 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 14 Jun 2019 13:46:33 +0000 (15:46 +0200)
commit2259b91dfe40b08c90ec32b1eb770110b39cd2a3
tree94a251b4a42d7e7b84d46948387cd78bf5b7e034
parente1a668c02eb1fb6e1aba1f14fcc675b87990ea40
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 commit a073efcacfde ("iwlwifi: mvm: implement VHT
extended NSS support in rs.c"), where iwlwifi started using the
function.

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Fixes: 96e2b22f2a1f ("ieee80211: add new VHT capability fields/parsing")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/util.c