ar71xx: Set eth1 MAC address from EEPROM for WNDR3700
authorFelix Fietkau <nbd@openwrt.org>
Thu, 4 Nov 2010 18:46:07 +0000 (18:46 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 4 Nov 2010 18:46:07 +0000 (18:46 +0000)
commit90ba44f084db8ca6c04d2416c43694b765f8bd68
tree4c8077eb143e8abdd7173017b97cd8109151388b
parent64d6dd0f2c12b63426759191154428b0bdb32d3a
ar71xx: Set eth1 MAC address from EEPROM for WNDR3700

The WNDR3700's art/caldata partition contains three MAC addresses at
offsets 0, 6, and 12, used for eth0/wlan0 (shared), eth1, and wlan1,
respectively. The existing code configures eth1's MAC address by adding
1 to eth0's instead of using the value stored in the EEPROM. This patch
causes the stored value to be used directly. (On my WNDR3700s, the three
stored addresses are all sequential anyway.)

Signed-off-by: Mark Mentovai <mark@moxienet.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23876 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c