aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-08-02 01:28:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-08-02 01:28:27 +0000
commit6e62d58483485a2caaedec47bb0dc3bd3d404fa3 (patch)
tree558a5098893914ce38af257e410e28e5f6af232d /package
parent29eeabb50850ce03c819e4ee49d931b098b4e6a8 (diff)
downloadupstream-6e62d58483485a2caaedec47bb0dc3bd3d404fa3.tar.gz
upstream-6e62d58483485a2caaedec47bb0dc3bd3d404fa3.tar.bz2
upstream-6e62d58483485a2caaedec47bb0dc3bd3d404fa3.zip
ath9k: improve stuck beacon recovery by reading nf values from the hw when a calibration is pending (instead of waiting for the next cal interval)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22461 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/542-ath9k_bstuck_nf_calibrate.patch4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/mac80211/patches/542-ath9k_bstuck_nf_calibrate.patch b/package/mac80211/patches/542-ath9k_bstuck_nf_calibrate.patch
index 35db2cba37..4ac4ab210a 100644
--- a/package/mac80211/patches/542-ath9k_bstuck_nf_calibrate.patch
+++ b/package/mac80211/patches/542-ath9k_bstuck_nf_calibrate.patch
@@ -78,7 +78,7 @@
caldata->rawNoiseFloor = h[0].privNF;
return true;
}
-@@ -374,3 +407,26 @@ s16 ath9k_hw_getchan_noise(struct ath_hw
+@@ -374,3 +407,28 @@ s16 ath9k_hw_getchan_noise(struct ath_hw
return ah->caldata->rawNoiseFloor;
}
EXPORT_SYMBOL(ath9k_hw_getchan_noise);
@@ -100,6 +100,8 @@
+ */
+ if (!caldata->nfcal_pending)
+ ath9k_hw_start_nfcal(ah, true);
++ else if (!(REG_READ(ah, AR_PHY_AGC_CONTROL) & AR_PHY_AGC_CONTROL_NF))
++ ath9k_hw_getnf(ah, ah->curchan);
+
+ caldata->nfcal_interference = true;
+}