diff options
author | John Crispin <blogic@openwrt.org> | 2015-12-17 09:27:24 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-12-17 09:27:24 +0000 |
commit | 80973b203d226a2a79722b0c8f67e19cf6691b0f (patch) | |
tree | 111afacad7bf2c4e63303a91461084e428c2ef03 /package | |
parent | e0a2c881644d7485d42977c99634d7258adaffa5 (diff) | |
download | master-187ad058-80973b203d226a2a79722b0c8f67e19cf6691b0f.tar.gz master-187ad058-80973b203d226a2a79722b0c8f67e19cf6691b0f.tar.bz2 master-187ad058-80973b203d226a2a79722b0c8f67e19cf6691b0f.zip |
ath9k: Allow configuration of LED polarity in platform data.
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47910 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/kernel/mac80211/patches/532-ath9k_get_led_polarity_from_platform_data.patch | 20 | ||||
-rw-r--r-- | package/kernel/mac80211/patches/543-ath9k_entropy_from_adc.patch | 6 |
2 files changed, 23 insertions, 3 deletions
diff --git a/package/kernel/mac80211/patches/532-ath9k_get_led_polarity_from_platform_data.patch b/package/kernel/mac80211/patches/532-ath9k_get_led_polarity_from_platform_data.patch new file mode 100644 index 0000000000..3523adeb1a --- /dev/null +++ b/package/kernel/mac80211/patches/532-ath9k_get_led_polarity_from_platform_data.patch @@ -0,0 +1,20 @@ +--- a/include/linux/ath9k_platform.h ++++ b/include/linux/ath9k_platform.h +@@ -36,6 +36,7 @@ struct ath9k_platform_data { + bool tx_gain_buffalo; + bool disable_2ghz; + bool disable_5ghz; ++ bool led_active_high; + + int (*get_mac_revision)(void); + int (*external_reset)(void); +--- a/drivers/net/wireless/ath/ath9k/init.c ++++ b/drivers/net/wireless/ath/ath9k/init.c +@@ -577,6 +577,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, + ah->external_reset = pdata->external_reset; + ah->disable_2ghz = pdata->disable_2ghz; + ah->disable_5ghz = pdata->disable_5ghz; ++ ah->config.led_active_high = pdata->led_active_high; + if (!pdata->endian_check) + ah->ah_flags |= AH_NO_EEP_SWAP; + } diff --git a/package/kernel/mac80211/patches/543-ath9k_entropy_from_adc.patch b/package/kernel/mac80211/patches/543-ath9k_entropy_from_adc.patch index fa8eca5672..ace6fa9b5d 100644 --- a/package/kernel/mac80211/patches/543-ath9k_entropy_from_adc.patch +++ b/package/kernel/mac80211/patches/543-ath9k_entropy_from_adc.patch @@ -55,7 +55,7 @@ ops->spectral_scan_config = ar9003_hw_spectral_scan_config; --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c -@@ -710,7 +710,8 @@ static void ath9k_init_txpower_limits(st +@@ -711,7 +711,8 @@ static void ath9k_init_txpower_limits(st if (ah->caps.hw_caps & ATH9K_HW_CAP_5GHZ) ath9k_init_band_txpower(sc, IEEE80211_BAND_5GHZ); @@ -65,7 +65,7 @@ } static const struct ieee80211_iface_limit if_limits[] = { -@@ -910,6 +911,18 @@ static void ath9k_set_hw_capab(struct at +@@ -911,6 +912,18 @@ static void ath9k_set_hw_capab(struct at SET_IEEE80211_PERM_ADDR(hw, common->macaddr); } @@ -84,7 +84,7 @@ int ath9k_init_device(u16 devid, struct ath_softc *sc, const struct ath_bus_ops *bus_ops) { -@@ -955,6 +968,8 @@ int ath9k_init_device(u16 devid, struct +@@ -956,6 +969,8 @@ int ath9k_init_device(u16 devid, struct ARRAY_SIZE(ath9k_tpt_blink)); #endif |