ipq53xx: fix cig wf189 eth MAC addr assignment

Fixes: WIFI-14313
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2025-01-06 15:45:27 +01:00
parent 9587fb3fee
commit 0df07d514e
2 changed files with 8 additions and 9 deletions

View File

@@ -12,9 +12,8 @@ ipq53xx_setup_interfaces()
qcom,ipq9574-ap-al02-c4)
ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4 eth5" "eth0"
;;
cig,wf189)
ucidef_set_interfaces_lan_wan "eth0" "eth1"
;;
cig,wf189|\
edgecore,eap105|\
sercomm,ap72tip)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
@@ -28,9 +27,9 @@ qcom_setup_macs()
case $board in
cig,wf189)
mtd=$(find_mtd_chardev "0:APPSBLENV")
[ -z "$mtd" ] && return;
mac=$(grep BaseMacAddress= $mtd | cut -dx -f2)
mtd=$(find_mtd_chardev "0:APPSBLENV")
[ -z "$mtd" ] && return;
mac=$(grep eth1addr= $mtd | cut -d= -f2)
[ -z "$mac" ] && return;
wan_mac=$(macaddr_canonicalize $mac)
lan_mac=$(macaddr_add "$wan_mac" 1)
@@ -51,7 +50,7 @@ qcom_setup_macs()
board_config_update
board=$(board_name)
ipq53xx_setup_interfaces $board
#qcom_setup_macs $board
qcom_setup_macs $board
board_config_flush
exit 0

View File

@@ -15,8 +15,8 @@
#include "ipq5332-default-memory.dtsi"
/ {
model = "Qualcomm Technologies, Inc. IPQ5332/RDP468/AP-MI01.6";
compatible = "qcom,ipq5332-ap-mi01.6", "qcom,ipq5332-rdp468", "qcom,ipq5332";
model = "CIG WF189";
compatible = "cig,wf189", "qcom,ipq5332-ap-mi01.6", "qcom,ipq5332-rdp468", "qcom,ipq5332";
aliases {
serial0 = &blsp1_uart0;