mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2026-01-27 02:22:14 +00:00
WIFI-14432: Fix MAC address assignment on SENAO IAP4300M
Signed-off-by: steven.lin <steven.lin@senao.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user