summaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/532-ath9k_get_led_polarity_from_platform_data.patch
blob: 50d8a7abae686b6b25ad561c71176b5661dbc437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/include/linux/ath9k_platform.h
+++ b/include/linux/ath9k_platform.h
@@ -40,6 +40,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
@@ -580,6 +580,7 @@ static int ath9k_init_softc(u16 devid, s
 		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;
 	}