ath9k_htc: keep calibrated noise floor value for oper channel
authorRajkumar Manoharan <rmanoharan@atheros.com>
Fri, 14 Jan 2011 20:03:28 +0000 (01:33 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 19 Jan 2011 16:36:10 +0000 (11:36 -0500)
commit4e3ae3873858f1e64afb19975360000bee15b502
treec5f0e2a8ebb47c2db9de173d61cdc5a9b2712ba9
parentbdd196a3e00d2be8b50d8af0d8cf845884f4d59b
ath9k_htc: keep calibrated noise floor value for oper channel

The ath9k_hw assumes that caldata is valid only for
oper channel. But with ath9k_htc case, the caldata is
passed for all channels on hw_reset though we are not doing
calibration on that channel. So the oper channel's nf history
got cleared to default due to mismatch in channel flags.
This patch also saves some space.

Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc.h
drivers/net/wireless/ath/ath9k/htc_drv_main.c