From 5034ff8395447d72b427867fc3469b3601cd83f2 Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 22 Mar 2011 21:00:58 +0000 Subject: mac80211: update to wireless-testing 2011-03-22 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26273 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- ...k-override-mac-address-from-platform-data.patch | 47 ---------------------- 1 file changed, 47 deletions(-) delete mode 100644 package/mac80211/patches/407-ath9k-override-mac-address-from-platform-data.patch (limited to 'package/mac80211/patches/407-ath9k-override-mac-address-from-platform-data.patch') diff --git a/package/mac80211/patches/407-ath9k-override-mac-address-from-platform-data.patch b/package/mac80211/patches/407-ath9k-override-mac-address-from-platform-data.patch deleted file mode 100644 index 6326649fc..000000000 --- a/package/mac80211/patches/407-ath9k-override-mac-address-from-platform-data.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- a/include/linux/ath9k_platform.h -+++ b/include/linux/ath9k_platform.h -@@ -23,6 +23,7 @@ - - struct ath9k_platform_data { - u16 eeprom_data[ATH9K_PLAT_EEP_MAX_WORDS]; -+ u8 *macaddr; - }; - - #endif /* _LINUX_ATH9K_PLATFORM_H */ ---- a/drivers/net/wireless/ath/ath9k/init.c -+++ b/drivers/net/wireless/ath/ath9k/init.c -@@ -15,6 +15,7 @@ - */ - - #include -+#include - - #include "ath9k.h" - -@@ -537,6 +538,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 ath9k_platform_data *pdata = sc->dev->platform_data; - struct ath_hw *ah = NULL; - struct ath_common *common; - int ret = 0, i; -@@ -551,7 +553,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); -@@ -587,6 +589,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_queues(sc); - if (ret) - goto err_queues; -- cgit v1.2.3