ath9k_hw: fix setting lower noise immunity values
authorFelix Fietkau <nbd@openwrt.org>
Fri, 15 Jun 2012 13:25:26 +0000 (15:25 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 Jun 2012 18:44:43 +0000 (14:44 -0400)
commit1e8f0a317b5774b2856cd8824991324efb353963
tree729b00259f1cc4fb4c40ca2a40135945db91021f
parent198823fd002a7f9784648c24c72b7e8c9e73fd14
ath9k_hw: fix setting lower noise immunity values

Commit af1e8a6f "ath9k: reset noiseimmunity level to default" was supposed
to ensure that the default noise immunity level is above the INI
values, however it prevents setting lower noise immunity values altogether.
Fix this by moving the checks to the right function.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ani.c