3 [ -e /lib
/firmware
/$FIRMWARE ] && exit 0
5 .
/lib
/functions
/caldata.sh
10 "ath10k/pre-cal-pci-0000:01:00.0.bin")
14 if [ -b "$(find_mtd_part 0:art)" ]; then
15 caldata_extract
"0:art" 0x1000 0x2f20
17 # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
18 caldata_extract
"0:ART" 0x1000 0x2f20
22 caldata_extract
"ART" 0x1000 0x2f20
23 ath10k_patch_mac $
(mtd_get_mac_binary ART
0x1e)
26 if [ -b "$(find_mtd_part 0:art)" ]; then
27 caldata_extract
"0:art" 0x1000 0x2f20
29 # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
30 caldata_extract
"0:ART" 0x1000 0x2f20
35 caldata_extract
"art" 0x1000 0x2f20
36 ath10k_patch_mac $
(macaddr_add $
(mtd_get_mac_ascii devinfo hw_mac_addr
) 1)
40 caldata_extract
"ART" 0x1000 0x2f20
41 ath10k_patch_mac $
(mtd_get_mac_binary PRODUCTDATA
0x12)
46 caldata_extract
"art" 0x1000 0x2f20
47 ath10k_patch_mac $
(macaddr_add $
(mtd_get_mac_binary art
0x6) 1)
51 caldata_extract
"radio" 0x1000 0x2f20
52 ath10k_patch_mac $
(macaddr_add $
(mtd_get_mac_binary default-mac
0x8) -1)
55 caldata_extract
"ART" 0x1000 0x2f20
56 ath10k_patch_mac $
(macaddr_add $
(mtd_get_mac_binary default-mac
0x0) -1)
59 if [ -b "$(find_mtd_part 0:art)" ]; then
60 caldata_extract
"0:art" 0x1000 0x2f20
61 ath10k_patch_mac $
(macaddr_add $
(mtd_get_mac_ascii
0:appsblenv ethaddr
) 1)
63 # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
64 caldata_extract
"0:ART" 0x1000 0x2f20
65 ath10k_patch_mac $
(macaddr_add $
(mtd_get_mac_ascii
0:APPSBLENV ethaddr
) 1)
70 "ath10k/pre-cal-pci-0001:01:00.0.bin")
74 if [ -b "$(find_mtd_part 0:art)" ]; then
75 caldata_extract
"0:art" 0x5000 0x2f20
77 # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
78 caldata_extract
"0:ART" 0x5000 0x2f20
82 caldata_extract
"ART" 0x5000 0x2f20
83 ath10k_patch_mac $
(mtd_get_mac_binary ART
0x18)
87 caldata_extract
"art" 0x5000 0x2f20
88 ath10k_patch_mac $
(macaddr_add $
(mtd_get_mac_ascii devinfo hw_mac_addr
) 2)
92 caldata_extract
"ART" 0x5000 0x2f20
93 ath10k_patch_mac $
(mtd_get_mac_binary PRODUCTDATA
0xc)
98 caldata_extract
"art" 0x5000 0x2f20
99 ath10k_patch_mac $
(macaddr_add $
(mtd_get_mac_binary art
0x6) 2)
103 caldata_extract
"radio" 0x5000 0x2f20
104 ath10k_patch_mac $
(mtd_get_mac_binary default-mac
0x8)
107 caldata_extract
"ART" 0x5000 0x2f20
108 ath10k_patch_mac $
(mtd_get_mac_binary default-mac
0x0)
111 if [ -b "$(find_mtd_part 0:art)" ]; then
112 caldata_extract
"0:art" 0x5000 0x2f20
113 ath10k_patch_mac $
(mtd_get_mac_ascii
0:appsblenv ethaddr
)
115 # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
116 caldata_extract
"0:ART" 0x5000 0x2f20
117 ath10k_patch_mac $
(mtd_get_mac_ascii
0:APPSBLENV ethaddr
)
122 "ath10k/pre-cal-pci-0002:01:00.0.bin")
125 if [ -b "$(find_mtd_part 0:art)" ]; then
126 caldata_extract
"0:art" 0x5000 0x2f20
128 # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
129 caldata_extract
"0:ART" 0x5000 0x2f20