projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[package] base-files: update rdate server list
[openwrt.git]
/
package
/
mac80211
/
patches
/
409-ath9k_platform_settings.patch
diff --git
a/package/mac80211/patches/409-ath9k_platform_settings.patch
b/package/mac80211/patches/409-ath9k_platform_settings.patch
index
c0530fd
..
38a1b3f
100644
(file)
--- a/
package/mac80211/patches/409-ath9k_platform_settings.patch
+++ b/
package/mac80211/patches/409-ath9k_platform_settings.patch
@@
-1,15
+1,14
@@
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
-@@ -5
35,8 +535,15
@@ static int ath9k_init_softc(u16 devid, s
+@@ -5
42,8 +542,14
@@ static int ath9k_init_softc(u16 devid, s
ah->hw_version.subsysid = subsysid;
sc->sc_ah = ah;
ah->hw_version.subsysid = subsysid;
sc->sc_ah = ah;
-- if (!
sc->dev->platform_
data)
-+ if (!
sc->dev->platform_
data) {
+- if (!
p
data)
++ if (!
p
data) {
ah->ah_flags |= AH_USE_EEPROM;
+ sc->sc_ah->led_pin = -1;
+ } else {
ah->ah_flags |= AH_USE_EEPROM;
+ sc->sc_ah->led_pin = -1;
+ } else {
-+ pdata = (struct ath9k_platform_data *) sc->dev->platform_data;
+ sc->sc_ah->gpio_mask = pdata->gpio_mask;
+ sc->sc_ah->gpio_val = pdata->gpio_val;
+ sc->sc_ah->led_pin = pdata->led_pin;
+ sc->sc_ah->gpio_mask = pdata->gpio_mask;
+ sc->sc_ah->gpio_val = pdata->gpio_val;
+ sc->sc_ah->led_pin = pdata->led_pin;
@@
-19,7
+18,7
@@
common->ops = &ath9k_common_ops;
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
common->ops = &ath9k_common_ops;
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
-@@ -7
88,7 +788
,7 @@ struct ath_hw {
+@@ -7
94,7 +794
,7 @@ struct ath_hw {
u32 originalGain[22];
int initPDADC;
int PDADCdelta;
u32 originalGain[22];
int initPDADC;
int PDADCdelta;
@@
-30,7
+29,7
@@
--- a/drivers/net/wireless/ath/ath9k/gpio.c
+++ b/drivers/net/wireless/ath/ath9k/gpio.c
--- a/drivers/net/wireless/ath/ath9k/gpio.c
+++ b/drivers/net/wireless/ath/ath9k/gpio.c
-@@ -1
47,10 +147
,12 @@ void ath_init_leds(struct ath_softc *sc)
+@@ -1
39,10 +139
,12 @@ void ath_init_leds(struct ath_softc *sc)
if (AR_SREV_9100(sc->sc_ah))
return;
if (AR_SREV_9100(sc->sc_ah))
return;
This page took
0.023483 seconds
and
4
git commands to generate.