Openwrt/target/linux/ath79
Adrian Schmutzler 85aef6f627 ath79: fix MAC addresses for ethernet on ZyXEL NBG6716
MAC addresses of the ethernet devices (eth0 & eth1) are randomly set at
boot time by the ag71xx driver, because it is currently not possible to
retrieve MAC addresses in ASCII format within the DTS file.
This commit works around this behaviour by setting the MAC addresses
during the preinit phase.

The same has been implemented recently for the Siemens WS-AP3610 in
d2b8ccb1c0 ("ath79: add support for Siemens WS-AP3610").

MAC assignment in vendor firmware is as follows:

use   vendor   address     OpenWrt
2g    wifi0    ethaddr     -> wlan1
5g    wifi1    ethaddr +1  -> wlan0
lan   eth1     ethaddr +2  -> eth0
wan   eth0     ethaddr +3  -> eth1

ethaddr is retrieved by $(mtd_get_mac_ascii u-boot-env ethaddr)

Note that both Wifi and ethernet indexing is swapped in OpenWrt
compared to vendor firmware.

Suggested-by: Guillaume Lefebvre <guillaume@zelig.ch>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Tested-by: Kevin Gagnon <kevin_gagnon@videotron.ca>
2020-04-08 16:59:14 +02:00
..
base-files/etc/hotplug.d/ieee80211
dts ath79: add support for Comfast CF-EW72 2020-04-07 01:00:10 +02:00
files
generic ath79: add support for Comfast CF-EW72 2020-04-07 01:00:10 +02:00
image ath79: add support for Comfast CF-EW72 2020-04-07 01:00:10 +02:00
mikrotik ath79: improve mikrotik-caldata.sh 2020-04-04 11:18:58 +01:00
nand ath79: fix MAC addresses for ethernet on ZyXEL NBG6716 2020-04-08 16:59:14 +02:00
patches-4.19
patches-5.4 kernel: bump 5.4 to 5.4.28 2020-03-28 13:03:02 +01:00
tiny ath79: add support for TP-Link TL-MR3420 v3 2020-04-06 11:55:24 +02:00
config-4.19
config-5.4
Makefile
modules.mk