diff options
author | John Crispin <blogic@openwrt.org> | 2014-09-01 13:21:34 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-09-01 13:21:34 +0000 |
commit | 6f6e2b73b00a1370e48b3a310c3b6b37947d3be0 (patch) | |
tree | 8dd462b225fe0084a2c4ea4e58849f4091dc521c /target/linux | |
parent | bf252788f5b4c7cee255cc78fc1b1647f64d004f (diff) | |
download | upstream-6f6e2b73b00a1370e48b3a310c3b6b37947d3be0.tar.gz upstream-6f6e2b73b00a1370e48b3a310c3b6b37947d3be0.tar.bz2 upstream-6f6e2b73b00a1370e48b3a310c3b6b37947d3be0.zip |
ar71xx: TL-WR1043N/ND v2: Fix MAC address of WMAC
This sets the MAC address of the WLAN interface to the "official" primary MAC
address (the one on the label under the devices, and the one used with the stock
firmware). The MAC address used so far (primary-1) isn't even used at all with
the stock firmware, which sets (primary) on LAN and WLAN and (primary+1) on the
WAN interface (like OpenWrt does with this patch).
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r42193
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42367 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c index 4f873e2f74..3e79ee1c31 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c @@ -168,7 +168,6 @@ static void __init tl_wr1043nd_v2_setup(void) { u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00); u8 *art = (u8 *) KSEG1ADDR(0x1fff0000); - u8 tmpmac[ETH_ALEN]; ath79_register_m25p80(&wr1043nd_v2_flash_data); @@ -178,8 +177,7 @@ static void __init tl_wr1043nd_v2_setup(void) ARRAY_SIZE(tl_wr1043_v2_gpio_keys), tl_wr1043_v2_gpio_keys); - ath79_init_mac(tmpmac, mac, -1); - ath79_register_wmac(art + TL_WR1043_V2_WMAC_CALDATA_OFFSET, tmpmac); + ath79_register_wmac(art + TL_WR1043_V2_WMAC_CALDATA_OFFSET, mac); mdiobus_register_board_info(wr1043nd_v2_mdio0_info, ARRAY_SIZE(wr1043nd_v2_mdio0_info)); |