X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/4f69a1b3292fcb51a22234af014d11191c456852..6e12beb80be45304eb1e08837aeb8e95e6fe1eab:/package/mac80211/patches/409-ath9k_platform_settings.patch?ds=sidebyside diff --git a/package/mac80211/patches/409-ath9k_platform_settings.patch b/package/mac80211/patches/409-ath9k_platform_settings.patch index 3355d955a..38a1b3fe9 100644 --- a/package/mac80211/patches/409-ath9k_platform_settings.patch +++ b/package/mac80211/patches/409-ath9k_platform_settings.patch @@ -1,17 +1,9 @@ --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c -@@ -16,6 +16,7 @@ - - #include - -+#include "linux/ath9k_platform.h" - #include "ath9k.h" - - static char *dev_info = "ath9k"; -@@ -572,8 +573,14 @@ static int ath9k_init_softc(u16 devid, s +@@ -542,8 +542,14 @@ static int ath9k_init_softc(u16 devid, s + ah->hw_version.subsysid = subsysid; sc->sc_ah = ah; - pdata = (struct ath9k_platform_data *) sc->dev->platform_data; - if (!pdata) + if (!pdata) { ah->ah_flags |= AH_USE_EEPROM; @@ -26,7 +18,7 @@ common->ops = &ath9k_common_ops; --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h -@@ -742,7 +742,7 @@ struct ath_hw { +@@ -794,7 +794,7 @@ struct ath_hw { u32 originalGain[22]; int initPDADC; int PDADCdelta; @@ -37,7 +29,7 @@ --- a/drivers/net/wireless/ath/ath9k/gpio.c +++ b/drivers/net/wireless/ath/ath9k/gpio.c -@@ -147,10 +147,12 @@ void ath_init_leds(struct ath_softc *sc) +@@ -139,10 +139,12 @@ void ath_init_leds(struct ath_softc *sc) if (AR_SREV_9100(sc->sc_ah)) return;