summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/562-ath9k_fix_led.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-11-15 14:53:21 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-11-15 14:53:21 +0000
commit817c72ef02d9c16b3a0021404aa9c6781382b74e (patch)
tree6646b976d56bc5a93431531cc4f0479351b53efb /package/mac80211/patches/562-ath9k_fix_led.patch
parent215239a470a353cf6b9e39a13052af294f7e95c7 (diff)
downloadmtk-20170518-817c72ef02d9c16b3a0021404aa9c6781382b74e.zip
mtk-20170518-817c72ef02d9c16b3a0021404aa9c6781382b74e.tar.gz
mtk-20170518-817c72ef02d9c16b3a0021404aa9c6781382b74e.tar.bz2
ath9k: reorganize patches, reset hardware after full sleep (fixes #10349)
SVN-Revision: 29155
Diffstat (limited to 'package/mac80211/patches/562-ath9k_fix_led.patch')
-rw-r--r--package/mac80211/patches/562-ath9k_fix_led.patch30
1 files changed, 0 insertions, 30 deletions
diff --git a/package/mac80211/patches/562-ath9k_fix_led.patch b/package/mac80211/patches/562-ath9k_fix_led.patch
deleted file mode 100644
index 0ef1668..0000000
--- a/package/mac80211/patches/562-ath9k_fix_led.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- a/drivers/net/wireless/ath/ath9k/main.c
-+++ b/drivers/net/wireless/ath/ath9k/main.c
-@@ -1056,9 +1056,11 @@ static int ath9k_start(struct ieee80211_
- goto mutex_unlock;
- }
-
-- ath9k_hw_cfg_output(ah, ah->led_pin,
-- AR_GPIO_OUTPUT_MUX_AS_OUTPUT);
-- ath9k_hw_set_gpio(ah, ah->led_pin, 0);
-+ if (ah->led_pin >= 0) {
-+ ath9k_hw_cfg_output(ah, ah->led_pin,
-+ AR_GPIO_OUTPUT_MUX_AS_OUTPUT);
-+ ath9k_hw_set_gpio(ah, ah->led_pin, 0);
-+ }
-
- /*
- * Reset key cache to sane defaults (all entries cleared) instead of
-@@ -1197,8 +1199,10 @@ static void ath9k_stop(struct ieee80211_
-
- spin_lock_bh(&sc->sc_pcu_lock);
-
-- ath9k_hw_set_gpio(ah, ah->led_pin, 1);
-- ath9k_hw_cfg_gpio_input(ah, ah->led_pin);
-+ if (ah->led_pin >= 0) {
-+ ath9k_hw_set_gpio(ah, ah->led_pin, 1);
-+ ath9k_hw_cfg_gpio_input(ah, ah->led_pin);
-+ }
-
- ath_prepare_reset(sc, false, true);
-