aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-08-02 09:53:12 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-08-16 15:26:38 -0400
commit6252fcb9f802a992c697edf105e30271a4ae3246 (patch)
tree2ce3b58597c8f05e04702245dd020c082e25a19d /drivers
parent1ac62ba7c985109868a18d959986425148481f47 (diff)
ath9k: add a separate debug level for stuck beacons
Stuck beacons are a useful indicator for debugging various PHY issues such as calibration. Putting them on the same debug level as the other beacon stuff makes it hard to spot them in huge amounts of spam. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath9k/beacon.c6
-rw-r--r--drivers/net/wireless/ath/debug.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c
index 4d4b22d52df..102f1234f79 100644
--- 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 data)
359 sc->beacon.bmisscnt++; 359 sc->beacon.bmisscnt++;
360 360
361 if (sc->beacon.bmisscnt < BSTUCK_THRESH) { 361 if (sc->beacon.bmisscnt < BSTUCK_THRESH) {
362 ath_print(common, ATH_DBG_BEACON, 362 ath_print(common, ATH_DBG_BSTUCK,
363 "missed %u consecutive beacons\n", 363 "missed %u consecutive beacons\n",
364 sc->beacon.bmisscnt); 364 sc->beacon.bmisscnt);
365 } else if (sc->beacon.bmisscnt >= BSTUCK_THRESH) { 365 } else if (sc->beacon.bmisscnt >= BSTUCK_THRESH) {
366 ath_print(common, ATH_DBG_BEACON, 366 ath_print(common, ATH_DBG_BSTUCK,
367 "beacon is officially stuck\n"); 367 "beacon is officially stuck\n");
368 sc->sc_flags |= SC_OP_TSF_RESET; 368 sc->sc_flags |= SC_OP_TSF_RESET;
369 ath_reset(sc, false); 369 ath_reset(sc, false);
@@ -373,7 +373,7 @@ void ath_beacon_tasklet(unsigned long data)
373 } 373 }
374 374
375 if (sc->beacon.bmisscnt != 0) { 375 if (sc->beacon.bmisscnt != 0) {
376 ath_print(common, ATH_DBG_BEACON, 376 ath_print(common, ATH_DBG_BSTUCK,
377 "resume beacon xmit after %u misses\n", 377 "resume beacon xmit after %u misses\n",
378 sc->beacon.bmisscnt); 378 sc->beacon.bmisscnt);
379 sc->beacon.bmisscnt = 0; 379 sc->beacon.bmisscnt = 0;
diff --git a/drivers/net/wireless/ath/debug.h b/drivers/net/wireless/ath/debug.h
index 873bf526e11..fd3a020682d 100644
--- a/drivers/net/wireless/ath/debug.h
+++ b/drivers/net/wireless/ath/debug.h
@@ -36,6 +36,7 @@
36 * @ATH_DBG_PS: power save processing 36 * @ATH_DBG_PS: power save processing
37 * @ATH_DBG_HWTIMER: hardware timer handling 37 * @ATH_DBG_HWTIMER: hardware timer handling
38 * @ATH_DBG_BTCOEX: bluetooth coexistance 38 * @ATH_DBG_BTCOEX: bluetooth coexistance
39 * @ATH_DBG_BSTUCK: stuck beacons
39 * @ATH_DBG_ANY: enable all debugging 40 * @ATH_DBG_ANY: enable all debugging
40 * 41 *
41 * The debug level is used to control the amount and type of debugging output 42 * The debug level is used to control the amount and type of debugging output
@@ -60,6 +61,7 @@ enum ATH_DEBUG {
60 ATH_DBG_HWTIMER = 0x00001000, 61 ATH_DBG_HWTIMER = 0x00001000,
61 ATH_DBG_BTCOEX = 0x00002000, 62 ATH_DBG_BTCOEX = 0x00002000,
62 ATH_DBG_WMI = 0x00004000, 63 ATH_DBG_WMI = 0x00004000,
64 ATH_DBG_BSTUCK = 0x00008000,
63 ATH_DBG_ANY = 0xffffffff 65 ATH_DBG_ANY = 0xffffffff
64}; 66};
65 67