]> 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)
commita9e3d068e7a2db1270f5f1b31c48c18674662126
tree96c38753c40ca0b1d062225baaac6e7b1a6a3612
parentf61f7dbb4c53bb0927a8353dc7ffc3d3d4e4d58a
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