]> git.openfabrics.org - ~emulex/infiniband.git/commit
ath10k: Set proper nss value for the peer
authorMarek Kwaczynski <marek.kwaczynski@tieto.com>
Mon, 10 Feb 2014 10:25:25 +0000 (11:25 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 13 Feb 2014 14:48:46 +0000 (16:48 +0200)
commit36786024df993f0fb5e7d1b56058c4f48f24d5e8
treec207f872c37fdab67f24649f3c34958529a2b94d
parent7c61385454b639a68e434496c1cae9ec4d98d99e
ath10k: Set proper nss value for the peer

It was found during testing the nss calculation does not
cover all corner cases. Station could request eq. only MCS8
and MCS9 (nss=2 specific). Next num_rates=2 so the driver
sets nss=(max((2+7)/8, 1))=1. Which is wrong. The in-driver
calculation was introduced prior (commit ddcc347b70
mac80211: fix rx_nss calculation for drivers with hw rc).
Since it's fixed, use mac80211 provided value from now.
End user will experience lower throuhputs than expected
if the nss is wrongly calculated.

Signed-off-by: Marek Kwaczynski <marek.kwaczynski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c