mac80211: update to latest wireless-testing + more stability work
[openwrt.git] / package / mac80211 / patches / 409-ath9k_platform_settings.patch
index 3355d95..c0530fd 100644 (file)
@@ -1,22 +1,15 @@
 --- a/drivers/net/wireless/ath/ath9k/init.c
 +++ b/drivers/net/wireless/ath/ath9k/init.c
-@@ -16,6 +16,7 @@
- #include <linux/slab.h>
-+#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
+@@ -535,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 +19,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 {
+@@ -788,7 +788,7 @@ struct ath_hw {
        u32 originalGain[22];
        int initPDADC;
        int PDADCdelta;
This page took 0.021638 seconds and 4 git commands to generate.