0003-ar71xx-TL-WR1043N-ND-v2-Fix-MAC-address-of-WMAC.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Thu, 7 Aug 2014 15:07:15 +0200
  3. Subject: ar71xx: TL-WR1043N/ND v2: Fix MAC address of WMAC
  4. This sets the MAC address of the WLAN interface to the "official" primary MAC
  5. address (the one on the label under the devices, and the one used with the stock
  6. firmware). The MAC address used so far (primary-1) isn't even used at all with
  7. the stock firmware, which sets (primary) on LAN and WLAN and (primary+1) on the
  8. WAN interface (like OpenWrt does with this patch).
  9. 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
  10. index 4f873e2..3e79ee1 100644
  11. --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c
  12. +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c
  13. @@ -168,7 +168,6 @@ static void __init tl_wr1043nd_v2_setup(void)
  14. {
  15. u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
  16. u8 *art = (u8 *) KSEG1ADDR(0x1fff0000);
  17. - u8 tmpmac[ETH_ALEN];
  18. ath79_register_m25p80(&wr1043nd_v2_flash_data);
  19. @@ -178,8 +177,7 @@ static void __init tl_wr1043nd_v2_setup(void)
  20. ARRAY_SIZE(tl_wr1043_v2_gpio_keys),
  21. tl_wr1043_v2_gpio_keys);
  22. - ath79_init_mac(tmpmac, mac, -1);
  23. - ath79_register_wmac(art + TL_WR1043_V2_WMAC_CALDATA_OFFSET, tmpmac);
  24. + ath79_register_wmac(art + TL_WR1043_V2_WMAC_CALDATA_OFFSET, mac);
  25. mdiobus_register_board_info(wr1043nd_v2_mdio0_info,
  26. ARRAY_SIZE(wr1043nd_v2_mdio0_info));