ipq807x: fix MAC assign on cig-wf19* units

The mtd offset changed in the v5.4 kernel causing MAC lookup to fail.

Fixes: WIFI-7997
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2022-05-27 07:34:07 +02:00
parent d9ed861c1d
commit 0985c573b0

View File

@@ -79,7 +79,7 @@ qcom_setup_macs()
cig,wf194c|\
cig,wf194c4|\
cig,wf196)
mac=$(grep BaseMacAddress= /dev/mtd14 | cut -dx -f2)
mac=$(grep BaseMacAddress= /dev/mtd18 | cut -dx -f2)
wan_mac=$(macaddr_canonicalize $mac)
lan_mac=$(macaddr_add "$wan_mac" 1)
ucidef_set_network_device_mac eth0 $lan_mac