diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-03-22 21:00:58 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-03-22 21:00:58 +0000 |
commit | ee7f3d21f416c540b8b8b271b7174efaf6c4f658 (patch) | |
tree | e66857ec5f82d8dc15b06461b2e2cc53ce48c0cf /package/mac80211/patches/409-ath9k_platform_settings.patch | |
parent | 85b859a2b6ec255557b9cb204b54b64a3e73cc48 (diff) | |
download | mtk-20170518-ee7f3d21f416c540b8b8b271b7174efaf6c4f658.zip mtk-20170518-ee7f3d21f416c540b8b8b271b7174efaf6c4f658.tar.gz mtk-20170518-ee7f3d21f416c540b8b8b271b7174efaf6c4f658.tar.bz2 |
mac80211: update to wireless-testing 2011-03-22
SVN-Revision: 26273
Diffstat (limited to 'package/mac80211/patches/409-ath9k_platform_settings.patch')
-rw-r--r-- | package/mac80211/patches/409-ath9k_platform_settings.patch | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/package/mac80211/patches/409-ath9k_platform_settings.patch b/package/mac80211/patches/409-ath9k_platform_settings.patch deleted file mode 100644 index 6ce43b6..0000000 --- a/package/mac80211/patches/409-ath9k_platform_settings.patch +++ /dev/null @@ -1,65 +0,0 @@ ---- a/drivers/net/wireless/ath/ath9k/init.c -+++ b/drivers/net/wireless/ath/ath9k/init.c -@@ -553,8 +553,14 @@ static int ath9k_init_softc(u16 devid, s - ah->hw_version.subsysid = subsysid; - sc->sc_ah = ah; - -- if (!pdata) -+ if (!pdata) { - ah->ah_flags |= AH_USE_EEPROM; -+ sc->sc_ah->led_pin = -1; -+ } else { -+ sc->sc_ah->gpio_mask = pdata->gpio_mask; -+ sc->sc_ah->gpio_val = pdata->gpio_val; -+ sc->sc_ah->led_pin = pdata->led_pin; -+ } - - common = ath9k_hw_common(ah); - common->ops = &ath9k_common_ops; ---- a/drivers/net/wireless/ath/ath9k/hw.h -+++ b/drivers/net/wireless/ath/ath9k/hw.h -@@ -794,7 +794,7 @@ struct ath_hw { - u32 originalGain[22]; - int initPDADC; - int PDADCdelta; -- u8 led_pin; -+ int led_pin; - u32 gpio_mask; - u32 gpio_val; - ---- a/drivers/net/wireless/ath/ath9k/gpio.c -+++ b/drivers/net/wireless/ath/ath9k/gpio.c -@@ -44,12 +44,14 @@ void ath_init_leds(struct ath_softc *sc) - if (AR_SREV_9100(sc->sc_ah)) - return; - -- if (AR_SREV_9287(sc->sc_ah)) -- sc->sc_ah->led_pin = ATH_LED_PIN_9287; -- else if (AR_SREV_9485(sc->sc_ah)) -- sc->sc_ah->led_pin = ATH_LED_PIN_9485; -- else -- sc->sc_ah->led_pin = ATH_LED_PIN_DEF; -+ if (sc->sc_ah->led_pin < 0) { -+ if (AR_SREV_9287(sc->sc_ah)) -+ sc->sc_ah->led_pin = ATH_LED_PIN_9287; -+ else if (AR_SREV_9485(sc->sc_ah)) -+ sc->sc_ah->led_pin = ATH_LED_PIN_9485; -+ else -+ sc->sc_ah->led_pin = ATH_LED_PIN_DEF; -+ } - - /* Configure gpio 1 for output */ - ath9k_hw_cfg_output(sc->sc_ah, sc->sc_ah->led_pin, ---- a/include/linux/ath9k_platform.h -+++ b/include/linux/ath9k_platform.h -@@ -24,6 +24,10 @@ - struct ath9k_platform_data { - u16 eeprom_data[ATH9K_PLAT_EEP_MAX_WORDS]; - u8 *macaddr; -+ -+ int led_pin; -+ u32 gpio_mask; -+ u32 gpio_val; - }; - - #endif /* _LINUX_ATH9K_PLATFORM_H */ |