3 [ -e /lib
/firmware
/$FIRMWARE ] && exit 0
5 .
/lib
/functions
/caldata.sh
10 "ath9k-eeprom-ahb-18100000.wmac.bin")
14 caldata_extract
"art" 0x1000 0x800
20 caldata_extract_reverse
"urlader" 0x1541 0x440
23 caldata_extract
"art" 0x1000 0x440
24 ath9k_patch_mac $
(mtd_get_mac_ascii bdcfg
"wlanmac")
29 caldata_extract
"art" 0x1000 0x440
30 ath9k_patch_mac $
(mtd_get_mac_text
"mac" 0x4)
38 caldata_extract
"art" 0x1000 0x440
39 ath9k_patch_mac $
(mtd_get_mac_ascii devdata
"wlan24mac")
42 caldata_extract
"art" 0x1000 0x440
43 ath9k_patch_mac $
(macaddr_add $
(mtd_get_mac_ascii u-boot-env
"athaddr") +1)
48 iodata
,wn-ac1600dgr2|\
52 caldata_extract
"art" 0x1000 0x440
53 ath9k_patch_mac $
(mtd_get_mac_ascii u-boot-env ethaddr
)
56 caldata_extract
"calibrate" 0x1000 0x440
57 ath9k_patch_mac $
(mtd_get_mac_ascii u-boot-env0 RADIOADDR1
)
60 caldata_extract
"art" 0x1000 0x440
61 ath9k_patch_mac $
(mtd_get_mac_text board_data
0x680)
64 caldata_extract
"radiocfg" 0x1000 0x440
65 ath9k_patch_mac $
(mtd_get_mac_ascii devdata
"wlan24mac")
68 caldata_die
"board $board is not supported yet"
72 "ath9k-eeprom-pci-0000:00:00.0.bin")
75 caldata_extract_reverse
"urloader" 0x1541 0x440
77 buffalo
,wzr-hp-g302h-a1a0
)
78 caldata_extract
"art" 0x1000 0xeb8
81 caldata_extract
"art" 0x1000 0x440
85 caldata_extract
"art" 0x5000 0x440
86 ath9k_patch_mac $
(macaddr_add $
(mtd_get_mac_text
"mac" 0x18) 1)
89 caldata_extract
"calibrate" 0x5000 0x440
90 ath9k_patch_mac $
(mtd_get_mac_ascii u-boot-env0 RADIOADDR0
)
93 tplink
,tl-wdr3500-v1|\
94 tplink
,tl-wdr3600-v1|\
95 tplink
,tl-wdr4300-v1|\
96 tplink
,tl-wdr4300-v1-il|\
97 tplink
,tl-wdr4310-v1|\
98 tplink
,tl-wdr4900-v2|\
100 caldata_extract
"art" 0x5000 0x440
103 netgear
,wnr2200-16m|\
105 tplink
,tl-wr2543-v1|\
106 tplink
,tl-wr842n-v1|\
108 ubnt
,bullet-m-ar7240|\
109 ubnt
,bullet-m-ar7241|\
111 ubnt
,nanostation-loco-m|\
116 caldata_extract
"art" 0x1000 0x1000
119 caldata_extract
"art" 0x5000 0x440
120 ath9k_patch_mac $
(mtd_get_mac_ascii devdata
"wlan5mac")
122 wd
,mynet-wifi-rangeextender
)
123 caldata_extract
"art" 0x1000 0x1000
124 ath9k_patch_mac $
(nvram get wl0_hwaddr
)
127 caldata_die
"board $board is not supported yet"
131 "ath9k-eeprom-pci-0000:00:11.0.bin")
133 buffalo
,wzr-hp-ag300h|\
135 netgear
,wndr3700-v2|\
140 caldata_extract
"art" 0x1000 0xeb8
143 caldata_extract
"caldata" 0x1000 0xeb8
144 ath9k_patch_mac_crc $
(mtd_get_mac_text
"caldata" 0xffa0) 0x20c
147 caldata_die
"board $board is not supported yet"
151 "ath9k-eeprom-pci-0000:00:12.0.bin")
153 buffalo
,wzr-hp-ag300h|\
155 netgear
,wndr3700-v2|\
160 caldata_extract
"art" 0x5000 0xeb8
163 caldata_extract
"caldata" 0x5000 0xeb8
164 ath9k_patch_mac_crc $
(macaddr_add $
(mtd_get_mac_text
"caldata" 0xffb4) 1) 0x20c
167 caldata_die
"board $board is not supported yet"