summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/409-ath9k_platform_settings.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-11-17 03:43:24 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-11-17 03:43:24 +0000
commit058fa75a746d746b569670e8c1f8606997a21f4c (patch)
treea014bc061f0d9a9b3dbe4e315649fed14348c6e4 /package/mac80211/patches/409-ath9k_platform_settings.patch
parentb59113f2e705a982e12835c7069bbefd6ca7fc98 (diff)
downloadmaster-31e0f0ae-058fa75a746d746b569670e8c1f8606997a21f4c.tar.gz
master-31e0f0ae-058fa75a746d746b569670e8c1f8606997a21f4c.tar.bz2
master-31e0f0ae-058fa75a746d746b569670e8c1f8606997a21f4c.zip
mac80211: update to wireless-testing 2010-11-16
SVN-Revision: 24017
Diffstat (limited to 'package/mac80211/patches/409-ath9k_platform_settings.patch')
-rw-r--r--package/mac80211/patches/409-ath9k_platform_settings.patch19
1 files changed, 14 insertions, 5 deletions
diff --git a/package/mac80211/patches/409-ath9k_platform_settings.patch b/package/mac80211/patches/409-ath9k_platform_settings.patch
index ef3035cb27..8c2a5e606c 100644
--- a/package/mac80211/patches/409-ath9k_platform_settings.patch
+++ b/package/mac80211/patches/409-ath9k_platform_settings.patch
@@ -8,15 +8,24 @@
#include "ath9k.h"
static char *dev_info = "ath9k";
-@@ -535,8 +536,14 @@ static int ath9k_init_softc(u16 devid, s
+@@ -522,6 +523,7 @@ static int ath9k_init_softc(u16 devid, s
+ {
+ struct ath_hw *ah = NULL;
+ struct ath_common *common;
++ struct ath9k_platform_data *pdata;
+ int ret = 0, i;
+ int csz = 0;
+
+@@ -533,8 +535,15 @@ 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) {
+- if (!sc->dev->platform_data)
++ if (!sc->dev->platform_data) {
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;
@@ -26,7 +35,7 @@
common->ops = &ath9k_common_ops;
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
-@@ -750,7 +750,7 @@ struct ath_hw {
+@@ -788,7 +788,7 @@ struct ath_hw {
u32 originalGain[22];
int initPDADC;
int PDADCdelta;