WIFI-14432: Fix MAC address assignment on SENAO IAP4300M

Signed-off-by: steven.lin <steven.lin@senao.com>
This commit is contained in:
steven.lin
2025-02-18 11:07:34 +08:00
committed by John Crispin
parent 9d611028fd
commit c2ea273bea
2 changed files with 11 additions and 2 deletions

View File

@@ -39,7 +39,16 @@ mediatek_setup_macs()
case $board in
senao,iap4300m)
up_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
hw_mac_addr=$(mtd_get_mac_ascii u-boot-env ethaddr)
lan_mac="$hw_mac_addr"
wan_mac=$(macaddr_add $hw_mac_addr 1)
if [ -n "$lan_mac" ]; then
ucidef_set_interface_macaddr "lan" "$lan_mac"
fi
if [ -n "$wan_mac" ]; then
ucidef_set_interface_macaddr "wan" "$wan_mac"
ucidef_set_label_macaddr "$wan_mac"
fi
;;
*)
lan_mac_offset="0x2A"

View File

@@ -3,7 +3,7 @@ profile: senao_iap4300m
target: mediatek
subtarget: mt7986
description: Build image for the SENAO IAP4300M
image: bin/targets/mediatek/filogic/openwrt-mediatek-filogic-senao_iap4300m-squashfs-sysupgrade.bin
image: bin/targets/mediatek/mt7986/openwrt-mediatek-mt7986-senao_iap4300m-squashfs-sysupgrade.bin
feeds:
- name: mediatek
path: ../../feeds/mediatek-sdk