mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
9d2aa5f66f
SVN-Revision: 22460
44 lines
1.4 KiB
Diff
44 lines
1.4 KiB
Diff
--- a/drivers/net/wireless/ath/debug.h
|
|
+++ b/drivers/net/wireless/ath/debug.h
|
|
@@ -36,6 +36,7 @@
|
|
* @ATH_DBG_PS: power save processing
|
|
* @ATH_DBG_HWTIMER: hardware timer handling
|
|
* @ATH_DBG_BTCOEX: bluetooth coexistance
|
|
+ * @ATH_DBG_BSTUCK: stuck beacons
|
|
* @ATH_DBG_ANY: enable all debugging
|
|
*
|
|
* The debug level is used to control the amount and type of debugging output
|
|
@@ -60,6 +61,7 @@ enum ATH_DEBUG {
|
|
ATH_DBG_HWTIMER = 0x00001000,
|
|
ATH_DBG_BTCOEX = 0x00002000,
|
|
ATH_DBG_WMI = 0x00004000,
|
|
+ ATH_DBG_BSTUCK = 0x00008000,
|
|
ATH_DBG_ANY = 0xffffffff
|
|
};
|
|
|
|
--- a/drivers/net/wireless/ath/ath9k/beacon.c
|
|
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
|
|
@@ -359,11 +359,11 @@ void ath_beacon_tasklet(unsigned long da
|
|
sc->beacon.bmisscnt++;
|
|
|
|
if (sc->beacon.bmisscnt < BSTUCK_THRESH) {
|
|
- ath_print(common, ATH_DBG_BEACON,
|
|
+ ath_print(common, ATH_DBG_BSTUCK,
|
|
"missed %u consecutive beacons\n",
|
|
sc->beacon.bmisscnt);
|
|
} else if (sc->beacon.bmisscnt >= BSTUCK_THRESH) {
|
|
- ath_print(common, ATH_DBG_BEACON,
|
|
+ ath_print(common, ATH_DBG_BSTUCK,
|
|
"beacon is officially stuck\n");
|
|
sc->sc_flags |= SC_OP_TSF_RESET;
|
|
ath_reset(sc, false);
|
|
@@ -373,7 +373,7 @@ void ath_beacon_tasklet(unsigned long da
|
|
}
|
|
|
|
if (sc->beacon.bmisscnt != 0) {
|
|
- ath_print(common, ATH_DBG_BEACON,
|
|
+ ath_print(common, ATH_DBG_BSTUCK,
|
|
"resume beacon xmit after %u misses\n",
|
|
sc->beacon.bmisscnt);
|
|
sc->beacon.bmisscnt = 0;
|