]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ath10k: fix invalid NSS for 4x4 devices
authorRajkumar Manoharan <rmanohar@qti.qualcomm.com>
Tue, 3 Nov 2015 06:21:33 +0000 (11:51 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 10 Nov 2015 09:48:42 +0000 (11:48 +0200)
commitf680f70adbeab28b35f849016b964dd645db6237
treeead6d22103dfe3154c8083f016569cf68c76addd
parent761d4be5cf666973db317aab944b45bb07fe0a4f
ath10k: fix invalid NSS for 4x4 devices

The number of spatial streams that are derived from chain mask
for 4x4 devices is using wrong bitmask and conditional check.
This is affecting downlink throughput for QCA99x0 devices. Earlier
cfg_tx_chainmask is not filled by default until user configured it
and so get_nss_from_chainmask never be called. This issue is exposed
by recent commit 166de3f1895d ("ath10k: remove supported chain mask").
By default maximum supported chain mask is filled in cfg_tx_chainmask.

Cc: stable@vger.kernel.org
Fixes: 5572a95b4b ("ath10k: apply chainmask settings to vdev on creation")
Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c