2011-01-14 19:32:08

by Rajkumar Manoharan

[permalink] [raw]
Subject: [PATCH] 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 <[email protected]>
---
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



2011-01-14 19:38:08

by Felix Fietkau

[permalink] [raw]
Subject: Re: [PATCH] ath9k: preserve caldata history buffer across scanning

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<[email protected]>
Acked-by: Felix Fietkau <[email protected]>