]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: rs: fix mapping from HT/VHT rates to legacy
authorEyal Shapira <eyal@wizery.com>
Thu, 28 Nov 2013 10:27:03 +0000 (12:27 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 9 Dec 2013 20:29:48 +0000 (22:29 +0200)
commitcd3b357859498a565b6185f840180a06a20e06e5
tree96c38753c40ca0b1d062225baaac6e7b1a6a3612
parent5aebaf9dfef8ebd78767415a412c24a7936fe1d0
iwlwifi: mvm: rs: fix mapping from HT/VHT rates to legacy

The table rs_ht_to_legacy is used to get the next legacy rate
following the last HT or VHT rate in the LQ rates table.
The mapping wasn't correct as well as didn't include entries
for MCS8/9 which led to out of bounds access. This didn't
trigger a crash but led to legacy rate entries using 1Mbps
rate.
In 5Ghz this probably caused the Tx to fail completely given
that Tx attempt would have reached the legacy entries and 1Mbps
isn't valid.

Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/rs.c