mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
atheros: fix up the wlan mac address if the board data is missing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15330 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
+obj-$(CONFIG_ATHEROS_AR2315) += ar2315.o
|
||||
--- /dev/null
|
||||
+++ b/arch/mips/ar231x/board.c
|
||||
@@ -0,0 +1,247 @@
|
||||
@@ -0,0 +1,249 @@
|
||||
+/*
|
||||
+ * This file is subject to the terms and conditions of the GNU General Public
|
||||
+ * License. See the file "COPYING" in the main directory of this archive
|
||||
@@ -251,6 +251,8 @@
|
||||
+ config = ar231x_board.config;
|
||||
+ if (!memcmp(config->enet0_mac, "\x00\x00\x00\x00\x00\x00", 6)) {
|
||||
+ printk(KERN_INFO "Fixing up empty mac addresses\n");
|
||||
+ random_ether_addr(config->wlan0_mac);
|
||||
+ config->wlan0_mac[0] &= ~0x06;
|
||||
+ random_ether_addr(config->enet0_mac);
|
||||
+ random_ether_addr(config->enet1_mac);
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user