mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
ipq807x: make sure the macs are assigned correctly on eap101/102
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -9,8 +9,19 @@ ath11k_generate_macs() {
|
||||
touch /lib/firmware/ath11k-macs
|
||||
eth=$(cat /sys/class/net/eth0/address)
|
||||
mac1=$(macaddr_add $eth 2)
|
||||
mac2=$(macaddr_add $eth 10)
|
||||
mac3=$(macaddr_add $eth 18)
|
||||
mac2=$(macaddr_add $eth 3)
|
||||
mac3=$(macaddr_add $eth 4)
|
||||
echo -ne \\x${mac1//:/\\x} >> /lib/firmware/ath11k-macs
|
||||
echo -ne \\x${mac2//:/\\x} >> /lib/firmware/ath11k-macs
|
||||
echo -ne \\x${mac3//:/\\x} >> /lib/firmware/ath11k-macs
|
||||
}
|
||||
|
||||
ath11k_generate_macs_eap101() {
|
||||
touch /lib/firmware/ath11k-macs
|
||||
eth=$(cat /sys/class/net/eth0/address)
|
||||
mac1=$(macaddr_add $eth 3)
|
||||
mac2=$(macaddr_add $eth 4)
|
||||
mac3=$(macaddr_add $eth 5)
|
||||
echo -ne \\x${mac1//:/\\x} >> /lib/firmware/ath11k-macs
|
||||
echo -ne \\x${mac2//:/\\x} >> /lib/firmware/ath11k-macs
|
||||
echo -ne \\x${mac3//:/\\x} >> /lib/firmware/ath11k-macs
|
||||
@@ -21,8 +32,8 @@ ath11k_generate_macs_wf194() {
|
||||
mac=$(grep BaseMacAddress= /dev/mtd14 | cut -dx -f2)
|
||||
eth=$(macaddr_canonicalize $mac)
|
||||
mac1=$(macaddr_add $eth 2)
|
||||
mac2=$(macaddr_add $eth 10)
|
||||
mac3=$(macaddr_add $eth 18)
|
||||
mac2=$(macaddr_add $eth 3)
|
||||
mac3=$(macaddr_add $eth 4)
|
||||
echo -ne \\x${mac1//:/\\x} >> /lib/firmware/ath11k-macs
|
||||
echo -ne \\x${mac2//:/\\x} >> /lib/firmware/ath11k-macs
|
||||
echo -ne \\x${mac3//:/\\x} >> /lib/firmware/ath11k-macs
|
||||
@@ -108,7 +119,9 @@ ath11k/QCN9074/hw1.0/caldata_2.bin)
|
||||
;;
|
||||
ath11k-macs)
|
||||
case "$board" in
|
||||
edgecore,eap101|\
|
||||
edgecore,eap101)
|
||||
# ath11k_generate_macs_eap101
|
||||
;;
|
||||
edgecore,eap102|\
|
||||
edgecore,eap106|\
|
||||
cig,wf188n)
|
||||
|
||||
@@ -178,7 +178,6 @@ detect_mac80211() {
|
||||
set wireless.radio${devidx}.channel=${channel}
|
||||
set wireless.radio${devidx}.band=${mode_band}
|
||||
set wireless.radio${devidx}.htmode=$htmode
|
||||
set wireless.radio${devidx}.num_global_macaddr=8
|
||||
${scanning}
|
||||
set wireless.radio${devidx}.disabled=1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user