Changeset 42193


Ignore:
Timestamp:
2014-08-18T15:10:00+02:00 (3 years ago)
Author:
blogic
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c

    r41627 r42193  
    169169        u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00); 
    170170        u8 *art = (u8 *) KSEG1ADDR(0x1fff0000); 
    171         u8 tmpmac[ETH_ALEN]; 
    172171 
    173172        ath79_register_m25p80(&wr1043nd_v2_flash_data); 
     
    179178                                        tl_wr1043_v2_gpio_keys); 
    180179 
    181         ath79_init_mac(tmpmac, mac, -1); 
    182         ath79_register_wmac(art + TL_WR1043_V2_WMAC_CALDATA_OFFSET, tmpmac); 
     180        ath79_register_wmac(art + TL_WR1043_V2_WMAC_CALDATA_OFFSET, mac); 
    183181 
    184182        mdiobus_register_board_info(wr1043nd_v2_mdio0_info, 
Note: See TracChangeset for help on using the changeset viewer.