3 [ -e /lib
/firmware
/$FIRMWARE ] && exit 0
5 .
/lib
/functions
/caldata.sh
10 "ath9k-eeprom-ahb-18100000.wmac.bin")
15 caldata_extract_reverse
"urlader" 0x1541 0x440
18 caldata_extract
"art" 0x1000 0x440
19 ath9k_patch_mac $
(mtd_get_mac_ascii bdcfg
"wlanmac")
24 caldata_extract
"art" 0x1000 0x440
25 ath9k_patch_mac $
(mtd_get_mac_text
"mac" 0x4)
33 caldata_extract
"art" 0x1000 0x440
34 ath9k_patch_mac $
(mtd_get_mac_ascii devdata
"wlan24mac")
37 caldata_extract
"art" 0x1000 0x440
38 ath9k_patch_mac $
(macaddr_add $
(mtd_get_mac_ascii u-boot-env
"athaddr") +1)
43 iodata
,wn-ac1600dgr2|\
47 caldata_extract
"art" 0x1000 0x440
48 ath9k_patch_mac $
(mtd_get_mac_ascii u-boot-env ethaddr
)
51 caldata_extract
"calibrate" 0x1000 0x440
52 ath9k_patch_mac $
(mtd_get_mac_ascii u-boot-env0 RADIOADDR1
)
55 caldata_extract
"art" 0x1000 0x440
56 ath9k_patch_mac $
(mtd_get_mac_text board_data
0x680)
59 caldata_extract
"radiocfg" 0x1000 0x440
60 ath9k_patch_mac $
(mtd_get_mac_ascii devdata
"wlan24mac")
63 caldata_die
"board $board is not supported yet"
67 "ath9k-eeprom-pci-0000:00:00.0.bin")
70 caldata_extract_reverse
"urloader" 0x1541 0x440
72 buffalo
,wzr-hp-g302h-a1a0
)
73 caldata_extract
"art" 0x1000 0xeb8
76 caldata_extract
"art" 0x1000 0x440
80 caldata_extract
"art" 0x5000 0x440
81 ath9k_patch_mac $
(macaddr_add $
(mtd_get_mac_text
"mac" 0x18) 1)
84 caldata_extract
"calibrate" 0x5000 0x440
85 ath9k_patch_mac $
(mtd_get_mac_ascii u-boot-env0 RADIOADDR0
)
88 tplink
,tl-wdr3500-v1|\
89 tplink
,tl-wdr3600-v1|\
90 tplink
,tl-wdr4300-v1|\
91 tplink
,tl-wdr4300-v1-il|\
92 tplink
,tl-wdr4310-v1|\
93 tplink
,tl-wdr4900-v2|\
95 caldata_extract
"art" 0x5000 0x440
100 tplink
,tl-wr2543-v1|\
101 tplink
,tl-wr842n-v1|\
103 ubnt
,bullet-m-ar7240|\
104 ubnt
,bullet-m-ar7241|\
106 ubnt
,nanostation-loco-m|\
110 caldata_extract
"art" 0x1000 0x1000
113 caldata_extract
"art" 0x1000 0x800
116 caldata_extract
"art" 0x5000 0x440
117 ath9k_patch_mac $
(mtd_get_mac_ascii devdata
"wlan5mac")
119 wd
,mynet-wifi-rangeextender
)
120 caldata_extract
"art" 0x1000 0x1000
121 ath9k_patch_mac $
(nvram get wl0_hwaddr
)
124 caldata_die
"board $board is not supported yet"
128 "ath9k-eeprom-pci-0000:00:11.0.bin")
130 buffalo
,wzr-hp-ag300h|\
132 netgear
,wndr3700-v2|\
137 caldata_extract
"art" 0x1000 0xeb8
140 caldata_extract
"caldata" 0x1000 0xeb8
141 ath9k_patch_mac_crc $
(mtd_get_mac_text
"caldata" 0xffa0) 0x20c
144 caldata_die
"board $board is not supported yet"
148 "ath9k-eeprom-pci-0000:00:12.0.bin")
150 buffalo
,wzr-hp-ag300h|\
152 netgear
,wndr3700-v2|\
157 caldata_extract
"art" 0x5000 0xeb8
160 caldata_extract
"caldata" 0x5000 0xeb8
161 ath9k_patch_mac_crc $
(macaddr_add $
(mtd_get_mac_text
"caldata" 0xffb4) 1) 0x20c
164 caldata_die
"board $board is not supported yet"