On 13.09.2013 12:57, Sebastian Kemper wrote:
> Hello list,
> 
> The current behavior is that all interfaces (LAN, WAN and Wifi0) get the
> first MAC address in the mac mtd assigned (Wifi1 gets the MAC address of
> the second MAC address plus 1).
> 
> Unfortunately the MAC address printed on the sticker on the bottom of
> the router (the second MAC address in the mac mtd) is not used at all.
> But for some use cases it appears to be vital that the printed MAC gets
> assigned.
> 
> For testing I installed D-Link's firmware 304b01 (latest). It handles
> MAC assignments the same way as OpenWrt does, except it assigns the
> printed MAC to the WAN interface.
> 
> So I tried to come up with a way to do the same in OpenWrt. As the WAN
> interface is a virtual interface there's no way to do this while loading
> the driver. For the same reason I couldn't use the existing code in
> lib/preinit, i.e. 05_set_iface_mac_ar71xx.
> 

What about changing something in file: mach-dir-825-c1.c
        ath79_init_mac(wmac1, mac1, 1);
shouldn't that be the second MAC +1 - you can change that maybe?

Is ath79_eth0_data / ath79_eth1_data used in another machine .c :
ath79_init_mac(ath79_eth1_data.mac_addr, art+WNR2000V3_MAC1_OFFSET, 0);
Maybe thats WAN on switch?



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to