diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-04-21 18:48:59 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-04-21 18:48:59 +0000 |
commit | b31ce584a3408ba4682db5c175dd39ed32371654 (patch) | |
tree | 91556cec5c7daf52804d77aa7860794fa12c93d7 /target/linux/atheros/patches-2.6.28/100-board.patch | |
parent | f73b4e0b8c2f700b9d4edad2d76e9584ddbdeace (diff) | |
download | upstream-b31ce584a3408ba4682db5c175dd39ed32371654.tar.gz upstream-b31ce584a3408ba4682db5c175dd39ed32371654.tar.bz2 upstream-b31ce584a3408ba4682db5c175dd39ed32371654.zip |
atheros: fix up the wlan mac address if the board data is missing
SVN-Revision: 15330
Diffstat (limited to 'target/linux/atheros/patches-2.6.28/100-board.patch')
-rw-r--r-- | target/linux/atheros/patches-2.6.28/100-board.patch | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/atheros/patches-2.6.28/100-board.patch b/target/linux/atheros/patches-2.6.28/100-board.patch index 8b76d07c38..587094d268 100644 --- a/target/linux/atheros/patches-2.6.28/100-board.patch +++ b/target/linux/atheros/patches-2.6.28/100-board.patch @@ -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); + } |