]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ath9k_hw: revert chainmask to user configuration after calibration
authorFelix Fietkau <nbd@openwrt.org>
Fri, 15 Mar 2013 13:53:31 +0000 (14:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:25:47 +0000 (09:25 -0700)
commitf5ae2331e22224e68fa18eb2087c3f3e0c9a67bb
tree7ff2fda4b98fd22959b18ac1ed8582c77497ce22
parentd95e938c1d975948e5eb02b1cdf996df9bba64fd
ath9k_hw: revert chainmask to user configuration after calibration

commit 74632d11a133b5baf6b9d622dd19d2f944d93d94 upstream.

The commit 'ath9k_hw: fix calibration issues on chainmask that don't
include chain 0' changed the hardware chainmask to the chip chainmask
for the duration of the calibration, but the revert to user
configuration in the reset path runs too early.

That causes some issues with limiting the number of antennas (including
spurious failure in hardware-generated packets).

Fix this by reverting the chainmask after the essential parts of the
calibration that need the workaround, and before NF calibration is run.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Reported-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>
Tested-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/ath9k/ar9003_calib.c