summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/560-ath9k_extra_leds.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-01 15:13:33 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-01 15:13:33 +0000
commit17e37536a243b6763518d83c053fe480bbd0e3ca (patch)
treefc045cfb1d7a052b2ca80e3e0c505cb882d2df3d /package/mac80211/patches/560-ath9k_extra_leds.patch
parent139e847e7cf04b0af3db9936a4872c4600b65b5f (diff)
downloadmtk-20170518-17e37536a243b6763518d83c053fe480bbd0e3ca.zip
mtk-20170518-17e37536a243b6763518d83c053fe480bbd0e3ca.tar.gz
mtk-20170518-17e37536a243b6763518d83c053fe480bbd0e3ca.tar.bz2
ath9k: disable MAC sample debugging, it is almost never used and wastes precious CPU cycles
SVN-Revision: 30764
Diffstat (limited to 'package/mac80211/patches/560-ath9k_extra_leds.patch')
-rw-r--r--package/mac80211/patches/560-ath9k_extra_leds.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/package/mac80211/patches/560-ath9k_extra_leds.patch b/package/mac80211/patches/560-ath9k_extra_leds.patch
index ed749ed..0557ec3 100644
--- a/package/mac80211/patches/560-ath9k_extra_leds.patch
+++ b/package/mac80211/patches/560-ath9k_extra_leds.patch
@@ -171,7 +171,7 @@
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
-@@ -757,7 +757,7 @@ int ath9k_init_device(u16 devid, struct
+@@ -759,7 +759,7 @@ int ath9k_init_device(u16 devid, struct
#ifdef CONFIG_MAC80211_LEDS
/* must be initialized before ieee80211_register_hw */
@@ -182,9 +182,9 @@
#endif
--- a/drivers/net/wireless/ath/ath9k/debug.c
+++ b/drivers/net/wireless/ath/ath9k/debug.c
-@@ -1247,6 +1247,61 @@ static const struct file_operations fops
- .llseek = default_llseek,
- };
+@@ -1254,6 +1254,61 @@ static const struct file_operations fops
+
+ #ifdef CONFIG_ATH9K_MAC_DEBUG
+#ifdef CONFIG_MAC80211_LEDS
+
@@ -244,9 +244,9 @@
void ath9k_debug_samp_bb_mac(struct ath_softc *sc)
{
#define ATH_SAMP_DBG(c) (sc->debug.bb_mac_samp[sc->debug.sampidx].c)
-@@ -1671,6 +1726,11 @@ int ath9k_init_debug(struct ath_hw *ah)
- debugfs_create_file("samples", S_IRUSR, sc->debug.debugfs_phy, sc,
+@@ -1681,6 +1736,11 @@ int ath9k_init_debug(struct ath_hw *ah)
&fops_samps);
+ #endif
+#ifdef CONFIG_MAC80211_LEDS
+ debugfs_create_file("gpio_led", S_IWUSR,