[openwrt/openwrt] lantiq: xrx200: fb7430 set correct label-mac

LEDE Commits lede-commits at lists.infradead.org
Mon Jan 20 15:17:01 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/b957ee982ae1a38aeeeee44baf4c6e8d2c239978

commit b957ee982ae1a38aeeeee44baf4c6e8d2c239978
Author: Florian Maurer <f.maurer at outlook.de>
AuthorDate: Wed Jan 15 21:31:47 2025 +0100

    lantiq: xrx200: fb7430 set correct label-mac
    
    the CWMP account mac is correctly set on the lan device but was not correctly as label-mac
    
    Signed-off-by: Florian Maurer <f.maurer at outlook.de>
    Link: https://github.com/openwrt/openwrt/pull/17618
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    (cherry picked from commit f9813f41b2e9fccb644ae149eabe575fbae12fa3)
---
 target/linux/lantiq/xrx200/base-files/etc/board.d/02_network | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network b/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network
index 8c2cdb12af..bf90757897 100644
--- a/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network
@@ -125,6 +125,7 @@ lantiq_setup_macs()
 		tffsdev=$(find_mtd_chardev "nand-tffs")
 		lan_mac=$(/usr/bin/fritz_tffs_nand -d $tffsdev -n maca -o)
 		wan_mac=$(/usr/bin/fritz_tffs_nand -d $tffsdev -n macdsl -o)
+		label_mac=$lan_mac
 		;;
 	bt,homehub-v5a)
 		lan_mac=$(mtd_get_mac_binary_ubi caldata 0x110c)
@@ -142,6 +143,7 @@ lantiq_setup_macs()
 
 	[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" "$lan_mac"
 	[ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" "$wan_mac"
+	[ -n "$label_mac" ] && ucidef_set_label_macaddr "$label_mac"
 }
 
 board_config_update




More information about the lede-commits mailing list