[openwrt/openwrt] ath79: mikrotik: use base mac on lan for RBwAPG-5HacT2HnD

LEDE Commits lede-commits at lists.infradead.org
Sat Jul 25 16:04:53 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/d38d345c72e9783361a413411a3814f7d096fc7b

commit d38d345c72e9783361a413411a3814f7d096fc7b
Author: Bjoern Dobe <bjoern at dobecom.de>
AuthorDate: Fri Jul 24 08:48:39 2020 +0200

    ath79: mikrotik: use base mac on lan for RBwAPG-5HacT2HnD
    
    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 at dobecom.de>
    [commit title/message improvement]
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 target/linux/ath79/mikrotik/base-files/etc/board.d/02_network | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
index 96e0f5610a..5d87e88beb 100755
--- a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
@@ -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"



More information about the lede-commits mailing list