projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6398dc0
)
ath9k_hw: restrict valid nf readings for AR9271 to -114
author
Sujith
<
[email protected]
>
Wed, 17 Mar 2010 08:55:20 +0000
(14:25 +0530)
committer
John W. Linville
<
[email protected]
>
Tue, 23 Mar 2010 20:50:14 +0000
(16:50 -0400)
Noisefloor values read on AR9271 are unreliable if they
are less than -114, set those statically to -116.
Signed-off-by: Sujith <
[email protected]
>
Signed-off-by: Vasanthakumar Thiagarajan <
[email protected]
>
Signed-off-by: Luis R. Rodriguez <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath9k/calib.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/calib.c
b/drivers/net/wireless/ath/ath9k/calib.c
index 0c3e9c8fa017fd193df64e94e8eb91007082bed6..e76dd7498653c79fa892c21a682685f4ae96fe45 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/calib.c
+++ b/
drivers/net/wireless/ath/ath9k/calib.c
@@
-101,6
+101,10
@@
static void ath9k_hw_do_getnf(struct ath_hw *ah,
nf = 0 - ((nf ^ 0x1ff) + 1);
ath_print(common, ATH_DBG_CALIBRATE,
"NF calibrated [ctl] [chain 0] is %d\n", nf);
+
+ if (AR_SREV_9271(ah) && (nf >= -114))
+ nf = -116;
+
nfarray[0] = nf;
if (!AR_SREV_9285(ah) && !AR_SREV_9271(ah)) {
@@
-139,6
+143,10
@@
static void ath9k_hw_do_getnf(struct ath_hw *ah,
nf = 0 - ((nf ^ 0x1ff) + 1);
ath_print(common, ATH_DBG_CALIBRATE,
"NF calibrated [ext] [chain 0] is %d\n", nf);
+
+ if (AR_SREV_9271(ah) && (nf >= -114))
+ nf = -116;
+
nfarray[3] = nf;
if (!AR_SREV_9285(ah) && !AR_SREV_9271(ah)) {