mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-31 02:17:58 +00:00 
			
		
		
		
	ipq53xx: fix cig wf189 eth MAC addr assignment
Fixes: WIFI-14313 Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
		| @@ -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" | ||||
| @@ -30,7 +29,7 @@ qcom_setup_macs() | ||||
|         cig,wf189) | ||||
| 		mtd=$(find_mtd_chardev "0:APPSBLENV") | ||||
| 		[ -z "$mtd" ] && return; | ||||
|                 mac=$(grep BaseMacAddress= $mtd | cut -dx -f2) | ||||
| 		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 | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin