From 7b51438eeba6500006b379d12746eb79e40a9b94 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 21 Mar 2011 02:22:26 +0000 Subject: [PATCH] ath9k: re-run nfcal only when stuck beacons become more frequent SVN-Revision: 26250 --- .../patches/563-ath9k_reduce_bstuck_nfcal.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/mac80211/patches/563-ath9k_reduce_bstuck_nfcal.patch diff --git a/package/mac80211/patches/563-ath9k_reduce_bstuck_nfcal.patch b/package/mac80211/patches/563-ath9k_reduce_bstuck_nfcal.patch new file mode 100644 index 0000000000..b744c4cec8 --- /dev/null +++ b/package/mac80211/patches/563-ath9k_reduce_bstuck_nfcal.patch @@ -0,0 +1,12 @@ +--- a/drivers/net/wireless/ath/ath9k/beacon.c ++++ b/drivers/net/wireless/ath/ath9k/beacon.c +@@ -368,7 +368,8 @@ void ath_beacon_tasklet(unsigned long da + "missed %u consecutive beacons\n", + sc->beacon.bmisscnt); + ath9k_hw_stop_dma_queue(ah, sc->beacon.beaconq); +- ath9k_hw_bstuck_nfcal(ah); ++ if (sc->beacon.bmisscnt > 4) ++ ath9k_hw_bstuck_nfcal(ah); + } else if (sc->beacon.bmisscnt >= BSTUCK_THRESH) { + ath_dbg(common, ATH_DBG_BSTUCK, + "beacon is officially stuck\n"); -- 2.30.2