jeffsf
6
This confuses me – the upstream router doesn’t set the MAC of its clients.
Reading target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar750.c tells me that the MAC address is set from on-flash data
#define GL_AR750_MAC0_OFFSET 0
#define GL_AR750_WMAC2G_CALDATA_OFFSET 0x1000
#define GL_AR750_WMAC5G_CALDATA_OFFSET 0x5000
[...]
ath79_init_mac(ath79_eth0_data.mac_addr, art + GL_AR750_MAC0_OFFSET, 0);
ath79_init_mac(ath79_eth1_data.mac_addr, art + GL_AR750_MAC0_OFFSET, 1);
ath79_register_wmac(art + GL_AR750_WMAC2G_CALDATA_OFFSET, NULL);
Now, which one is the “label” MAC I’d have to check, but the MACs are deterministic, and set at the factory.
The behavior in the newer ath79 port, submitted as [OpenWrt-Devel] ath79: add support for gl-ar750 - Patchwork, is the same.