ath79: mikrotik: use base mac on lan for RBwAPG-5HacT2HnD
authorBjoern Dobe <bjoern@dobecom.de>
Fri, 24 Jul 2020 06:48:39 +0000 (08:48 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 25 Jul 2020 20:01:34 +0000 (22:01 +0200)
The Mikrotik RBwAPG-5HacT2HnD has only a single ethernet interface
(lan), and the vendor uses the base (label) MAC address for it.

Signed-off-by: Bjoern Dobe <bjoern@dobecom.de>
[commit title/message improvement]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/mikrotik/base-files/etc/board.d/02_network

index 96e0f5610a67463077ffdeabe3fb3a469600792b..5d87e88beba19299952633b0990dd260c1b28727 100755 (executable)
@@ -34,6 +34,10 @@ ath79_setup_macs()
        local mac_base="$(cat /sys/firmware/mikrotik/hard_config/mac_base)"
 
        case "$board" in
+       mikrotik,routerboard-wap-g-5hact2hnd)
+               label_mac="$mac_base"
+               lan_mac="$mac_base"
+               ;;
        *)
                label_mac="$mac_base"
                wan_mac="$mac_base"