mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ath9k: remove stuck beacon detection optimization, it may be unreliable on some hardware
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30915 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
32
package/mac80211/patches/560-ath9k_optimize_hw_check.patch
Normal file
32
package/mac80211/patches/560-ath9k_optimize_hw_check.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
--- a/drivers/net/wireless/ath/ath9k/beacon.c
|
||||
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
|
||||
@@ -369,6 +369,9 @@ void ath_beacon_tasklet(unsigned long da
|
||||
if (ath9k_hw_numtxpending(ah, sc->beacon.beaconq) != 0) {
|
||||
sc->beacon.bmisscnt++;
|
||||
|
||||
+ if (!ath9k_hw_check_alive(ah))
|
||||
+ ieee80211_queue_work(sc->hw, &sc->hw_check_work);
|
||||
+
|
||||
if (sc->beacon.bmisscnt < BSTUCK_THRESH * sc->nbcnvifs) {
|
||||
ath_dbg(common, BSTUCK,
|
||||
"missed %u consecutive beacons\n",
|
||||
--- a/drivers/net/wireless/ath/ath9k/main.c
|
||||
+++ b/drivers/net/wireless/ath/ath9k/main.c
|
||||
@@ -695,17 +695,6 @@ void ath9k_tasklet(unsigned long data)
|
||||
goto out;
|
||||
}
|
||||
|
||||
- /*
|
||||
- * Only run the baseband hang check if beacons stop working in AP or
|
||||
- * IBSS mode, because it has a high false positive rate. For station
|
||||
- * mode it should not be necessary, since the upper layers will detect
|
||||
- * this through a beacon miss automatically and the following channel
|
||||
- * change will trigger a hardware reset anyway
|
||||
- */
|
||||
- if (ath9k_hw_numtxpending(ah, sc->beacon.beaconq) != 0 &&
|
||||
- !ath9k_hw_check_alive(ah))
|
||||
- ieee80211_queue_work(sc->hw, &sc->hw_check_work);
|
||||
-
|
||||
if ((status & ATH9K_INT_TSFOOR) && sc->ps_enabled) {
|
||||
/*
|
||||
* TSF sync does not look correct; remain awake to sync with
|
||||
Reference in New Issue
Block a user