From 691b253e47367f64097023ba2afcc595ca120786 Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 16 Apr 2012 21:08:41 +0000 Subject: mac80211: update to wireless-testing 2012-04-13 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31322 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- ...03-ath9k-fix-invalid-mac-address-handling.patch | 29 ---------------------- 1 file changed, 29 deletions(-) delete mode 100644 package/mac80211/patches/403-ath9k-fix-invalid-mac-address-handling.patch (limited to 'package/mac80211/patches/403-ath9k-fix-invalid-mac-address-handling.patch') diff --git a/package/mac80211/patches/403-ath9k-fix-invalid-mac-address-handling.patch b/package/mac80211/patches/403-ath9k-fix-invalid-mac-address-handling.patch deleted file mode 100644 index a9232f214..000000000 --- a/package/mac80211/patches/403-ath9k-fix-invalid-mac-address-handling.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- a/drivers/net/wireless/ath/ath9k/hw.c -+++ b/drivers/net/wireless/ath/ath9k/hw.c -@@ -17,6 +17,7 @@ - #include - #include - #include -+#include - #include - - #include "hw.h" -@@ -466,8 +467,16 @@ static int ath9k_hw_init_macaddr(struct - common->macaddr[2 * i] = eeval >> 8; - common->macaddr[2 * i + 1] = eeval & 0xff; - } -- if (sum == 0 || sum == 0xffff * 3) -- return -EADDRNOTAVAIL; -+ if (!is_valid_ether_addr(common->macaddr)) { -+ ath_err(common, -+ "eeprom contains invalid mac address: %pM\n", -+ common->macaddr); -+ -+ random_ether_addr(common->macaddr); -+ ath_err(common, -+ "random mac address will be used: %pM\n", -+ common->macaddr); -+ } - - return 0; - } -- cgit v1.2.3