[openwrt/openwrt] qualcommax: ipq807x: use label MAC to set addresses for wireless interfaces
LEDE Commits
lede-commits at lists.infradead.org
Tue Sep 16 06:19:59 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/415a0d54c9ead2504d7e879f28c59ec7cde25c9b
commit 415a0d54c9ead2504d7e879f28c59ec7cde25c9b
Author: Paweł Owoc <frut3k7 at gmail.com>
AuthorDate: Fri May 16 17:53:46 2025 +0200
qualcommax: ipq807x: use label MAC to set addresses for wireless interfaces
Use label MAC to set addresses for wireless interfaces
for Linksys MX4200v2 and MX4300.
Signed-off-by: Paweł Owoc <frut3k7 at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18759
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
.../ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata b/target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata
index d46e84bf8b..6a9d5afb98 100644
--- a/target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata
+++ b/target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata
@@ -45,7 +45,7 @@ case "$FIRMWARE" in
;;
linksys,mx4200v2)
caldata_extract "0:art" 0x1000 0x20000
- label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
+ label_mac=$(get_mac_label)
ath11k_patch_mac $(macaddr_add $label_mac 2) 0
ath11k_patch_mac $(macaddr_add $label_mac 1) 1
ath11k_patch_mac $(macaddr_add $label_mac 3) 2
@@ -54,7 +54,7 @@ case "$FIRMWARE" in
;;
linksys,mx4300)
caldata_extract "0:art" 0x1000 0x20000
- label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
+ label_mac=$(get_mac_label)
ath11k_patch_mac $(macaddr_add $label_mac 2) 0
ath11k_patch_mac $(macaddr_add $label_mac 1) 1
ath11k_patch_mac $(macaddr_add $label_mac 3) 2
More information about the lede-commits
mailing list