base-files/ipq807x: wf196: fix BSSIDs

Use base MAC address to generate PHY BSSIDs.

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
This commit is contained in:
Arif Alam
2024-01-26 16:23:07 -05:00
committed by John Crispin
parent 16ebb7cec3
commit 84c8eb5ccf

View File

@@ -16,9 +16,9 @@ ath11k_generate_macs() {
echo -ne \\x${mac3//:/\\x} >> /lib/firmware/ath11k-macs echo -ne \\x${mac3//:/\\x} >> /lib/firmware/ath11k-macs
} }
ath11k_generate_macs_wf194() { ath11k_generate_macs_wf196() {
touch /lib/firmware/ath11k-macs touch /lib/firmware/ath11k-macs
mac=$(grep BaseMacAddress= /dev/mtd14 | cut -dx -f2) mac=$(grep BaseMacAddress= /dev/mtd18 | cut -dx -f2)
eth=$(macaddr_canonicalize $mac) eth=$(macaddr_canonicalize $mac)
mac1=$(macaddr_add $eth 2) mac1=$(macaddr_add $eth 2)
mac2=$(macaddr_add $eth 3) mac2=$(macaddr_add $eth 3)
@@ -92,8 +92,8 @@ ath11k-macs)
edgecore,eap106) edgecore,eap106)
ath11k_generate_macs ath11k_generate_macs
;; ;;
cig,wf194c) cig,wf196)
ath11k_generate_macs_wf194 ath11k_generate_macs_wf196
;; ;;
esac esac
;; ;;