summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-17 07:03:20 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-09-17 07:03:20 +0000
commitfca8f057577ace43b79e255735e11a6a5f907219 (patch)
tree8df986db00a2e45616bb2e5e74c16c24950bb507
parentdbde8f805e7dc7066d0ce3f4058383ab117c5b46 (diff)
downloadmtk-20170518-fca8f057577ace43b79e255735e11a6a5f907219.zip
mtk-20170518-fca8f057577ace43b79e255735e11a6a5f907219.tar.gz
mtk-20170518-fca8f057577ace43b79e255735e11a6a5f907219.tar.bz2
ath9k: fix compile without debugfs (#10117)
SVN-Revision: 28249
-rw-r--r--package/mac80211/patches/571-ath9k_reset_debug.patch8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/mac80211/patches/571-ath9k_reset_debug.patch b/package/mac80211/patches/571-ath9k_reset_debug.patch
index b87b62c..90e62c2 100644
--- a/package/mac80211/patches/571-ath9k_reset_debug.patch
+++ b/package/mac80211/patches/571-ath9k_reset_debug.patch
@@ -35,10 +35,11 @@
#define ATH_DBG_MAX_SAMPLES 10
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
-@@ -679,6 +679,14 @@ void ath9k_tasklet(unsigned long data)
+@@ -679,6 +679,16 @@ void ath9k_tasklet(unsigned long data)
if ((status & ATH9K_INT_FATAL) ||
(status & ATH9K_INT_BB_WATCHDOG)) {
++#ifdef CONFIG_ATH9K_DEBUGFS
+ enum ath_reset_type type;
+
+ if (status & ATH9K_INT_FATAL)
@@ -47,10 +48,11 @@
+ type = RESET_TYPE_BB_WATCHDOG;
+
+ RESET_STAT_INC(sc, type);
++#endif
ieee80211_queue_work(sc->hw, &sc->hw_reset_work);
goto out;
}
-@@ -995,8 +1003,10 @@ void ath_hw_check(struct work_struct *wo
+@@ -995,8 +1005,10 @@ void ath_hw_check(struct work_struct *wo
ath_dbg(common, ATH_DBG_RESET, "Possible baseband hang, "
"busy=%d (try %d)\n", busy, sc->hw_busy_count + 1);
if (busy >= 99) {
@@ -62,7 +64,7 @@
} else if (busy >= 0)
sc->hw_busy_count = 0;
-@@ -1016,6 +1026,7 @@ static void ath_hw_pll_rx_hang_check(str
+@@ -1016,6 +1028,7 @@ static void ath_hw_pll_rx_hang_check(str
/* Rx is hung for more than 500ms. Reset it */
ath_dbg(common, ATH_DBG_RESET,
"Possible RX hang, resetting");