[package] base-files: update rdate server list
[openwrt.git] / package / mac80211 / patches / 407-ath9k-override-mac-address-from-platform-data.patch
index 3534194..44b4577 100644 (file)
  #endif /* _LINUX_ATH9K_PLATFORM_H */
 --- a/drivers/net/wireless/ath/ath9k/init.c
 +++ b/drivers/net/wireless/ath/ath9k/init.c
-@@ -16,6 +16,7 @@
+@@ -15,6 +15,7 @@
+  */
  
  #include <linux/slab.h>
- #include <linux/pm_qos_params.h>
 +#include <linux/ath9k_platform.h>
  
  #include "ath9k.h"
  
-@@ -520,6 +521,7 @@ static void ath9k_init_misc(struct ath_s
+@@ -526,6 +527,7 @@ static void ath9k_init_misc(struct ath_s
  static int ath9k_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid,
                            const struct ath_bus_ops *bus_ops)
  {
        struct ath_hw *ah = NULL;
        struct ath_common *common;
        int ret = 0, i;
-@@ -565,6 +567,9 @@ static int ath9k_init_softc(u16 devid, s
+@@ -540,7 +542,7 @@ static int ath9k_init_softc(u16 devid, s
+       ah->hw_version.subsysid = subsysid;
+       sc->sc_ah = ah;
+-      if (!sc->dev->platform_data)
++      if (!pdata)
+               ah->ah_flags |= AH_USE_EEPROM;
+       common = ath9k_hw_common(ah);
+@@ -576,6 +578,9 @@ static int ath9k_init_softc(u16 devid, s
        if (ret)
                goto err_hw;
  
 +      if (pdata && pdata->macaddr)
 +              memcpy(common->macaddr, pdata->macaddr, ETH_ALEN);
 +
-       ret = ath9k_init_debug(ah);
-       if (ret) {
-               ath_print(common, ATH_DBG_FATAL,
+       ret = ath9k_init_queues(sc);
+       if (ret)
+               goto err_queues;
This page took 0.028802 seconds and 4 git commands to generate.