* [PATCH] ath9k: preserve caldata history buffer across scanning
@ 2011-01-14 19:31 Rajkumar Manoharan
2011-01-14 19:38 ` Felix Fietkau
0 siblings, 1 reply; 2+ messages in thread
From: Rajkumar Manoharan @ 2011-01-14 19:31 UTC (permalink / raw)
To: linux-wireless; +Cc: Rajkumar Manoharan
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>
---
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 b68a1ac..b4a92a4 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++) {
--
1.7.3.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ath9k: preserve caldata history buffer across scanning
2011-01-14 19:31 [PATCH] ath9k: preserve caldata history buffer across scanning Rajkumar Manoharan
@ 2011-01-14 19:38 ` Felix Fietkau
0 siblings, 0 replies; 2+ messages in thread
From: Felix Fietkau @ 2011-01-14 19:38 UTC (permalink / raw)
To: Rajkumar Manoharan; +Cc: linux-wireless
On 2011-01-14 8:31 PM, Rajkumar Manoharan wrote:
> 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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-14 19:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-14 19:31 [PATCH] ath9k: preserve caldata history buffer across scanning Rajkumar Manoharan
2011-01-14 19:38 ` Felix Fietkau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).