ath9k_hw: simplify noisefloor calibration chainmask calculation
authorFelix Fietkau <nbd@openwrt.org>
Fri, 23 Jul 2010 02:31:56 +0000 (04:31 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Jul 2010 19:32:42 +0000 (15:32 -0400)
commit487f0e010cf5b6ba504150dfb20c21fd93e3b9e6
treef8b371210cfc47ed78806e56140c7320f7dfa306
parentd9292c0db7b4e98ae6d34a662ef49a8bd127fd8f
ath9k_hw: simplify noisefloor calibration chainmask calculation

The noisefloor array index always corresponds to the rx chain number it
belongs to (with an offset of 3 for the extension chain).

It's much simpler (and actually more correct) to directly use the
chainmask to calculate the bitmask for the noisefloor array, instead of
using these weird chip revision checks and hardcoded mask values.

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