diff options
author | Rajkumar Manoharan <rmanoharan@atheros.com> | 2011-01-15 01:01:22 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-19 11:36:10 -0500 |
commit | bdd196a3e00d2be8b50d8af0d8cf845884f4d59b (patch) | |
tree | b262c71eb1d1e1ac46db7d4da710e3f88084826d /drivers/net/wireless/ath/ath9k/calib.c | |
parent | bfc31df33b162540c6c3e1473e022cd0a312a522 (diff) | |
download | talos-op-linux-bdd196a3e00d2be8b50d8af0d8cf845884f4d59b.tar.gz talos-op-linux-bdd196a3e00d2be8b50d8af0d8cf845884f4d59b.zip |
ath9k: preserve caldata history buffer across scanning
caldata's channel info is never filled with operating channel
info which is causing the operating channel's noise floor
history buffer is reset to default nf during channel change.
Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Acked-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/calib.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/calib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c index b68a1acbddd0..b4a92a4313f6 100644 --- a/drivers/net/wireless/ath/ath9k/calib.c +++ b/drivers/net/wireless/ath/ath9k/calib.c @@ -382,9 +382,8 @@ void ath9k_init_nfcal_hist_buffer(struct ath_hw *ah, s16 default_nf; int i, j; - if (!ah->caldata) - return; - + ah->caldata->channel = chan->channel; + ah->caldata->channelFlags = chan->channelFlags & ~CHANNEL_CW_INT; h = ah->caldata->nfCalHist; default_nf = ath9k_hw_get_default_nf(ah, chan); for (i = 0; i < NUM_NF_READINGS; i++) { |