nexmon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /***************************************************************************
2 * *
3 * ########### ########### ########## ########## *
4 * ############ ############ ############ ############ *
5 * ## ## ## ## ## ## ## *
6 * ## ## ## ## ## ## ## *
7 * ########### #### ###### ## ## ## ## ###### *
8 * ########### #### # ## ## ## ## # # *
9 * ## ## ###### ## ## ## ## # # *
10 * ## ## # ## ## ## ## # # *
11 * ############ ##### ###### ## ## ## ##### ###### *
12 * ########### ########### ## ## ## ########## *
13 * *
14 * S E C U R E M O B I L E N E T W O R K I N G *
15 * *
16 * This file is part of NexMon. *
17 * *
18 * Copyright (c) 2016 NexMon Team *
19 * *
20 * NexMon is free software: you can redistribute it and/or modify *
21 * it under the terms of the GNU General Public License as published by *
22 * the Free Software Foundation, either version 3 of the License, or *
23 * (at your option) any later version. *
24 * *
25 * NexMon is distributed in the hope that it will be useful, *
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
28 * GNU General Public License for more details. *
29 * *
30 * You should have received a copy of the GNU General Public License *
31 * along with NexMon. If not, see <http://www.gnu.org/licenses/>. *
32 * *
33 **************************************************************************/
34  
35 #define IOCTL_ERROR -23
36 #define IOCTL_SUCCESS 0
37  
38 // IOCTLs used by Nexmon
39 #define NEX_GET_CAPABILITIES 400
40 #define NEX_WRITE_TO_CONSOLE 401
41 #define NEX_CT_EXPERIMENTS 402
42 #define NEX_GET_CONSOLE 403
43 #define NEX_GET_PHYREG 404
44 #define NEX_SET_PHYREG 405
45 #define NEX_READ_OBJMEM 406
46 #define NEX_WRITE_OBJMEM 407
47 #define NEX_INJECT_FRAME 408
48 #define NEX_PRINT_TIMERS 409
49 #define NEX_GET_SECURITYCOOKIE 410
50 #define NEX_SET_SECURITYCOOKIE 411
51 #define NEX_GET_WL_CNT 412
52 #define NEX_GET_VERSION_STRING 413
53 #define NEX_TEST_ARGPRINTF 414
54 #define NEX_GET_RSPEC_OVERRIDE 415
55 #define NEX_SET_RSPEC_OVERRIDE 416
56 #define NEX_CLEAR_CONSOLE 417
57 #define NEX_GET_CHANSPEC_OVERRIDE 418
58 #define NEX_SET_CHANSPEC_OVERRIDE 419
59 #define NEX_GET_AMPDU_TX 420
60 #define NEX_SET_AMPDU_TX 421
61 #define NEX_TRIGGER_EVENT 422
62 #define NEX_TRIGGER_TDLS_DISCOVER 423
63 #define NEX_TRIGGER_TDLS_SETUP 424
64 #define NEX_TRIGGER_TDLS_TEARDOWN 425
65 #define NEX_WRITE_TEMPLATE_RAM 426
66 #define NEX_SDR_START_TRANSMISSION 427
67 #define NEX_SDR_STOP_TRANSMISSION 428
68  
69  
70 // IOCTLs used in original firmware
71 #define WLC_GET_MAGIC 0
72 #define WLC_GET_VERSION 1
73 #define WLC_UP 2
74 #define WLC_DOWN 3
75 #define WLC_GET_LOOP 4
76 #define WLC_SET_LOOP 5
77 #define WLC_DUMP 6
78 #define WLC_GET_MSGLEVEL 7
79 #define WLC_SET_MSGLEVEL 8
80 #define WLC_GET_PROMISC 9
81 #define WLC_SET_PROMISC 10
82 #define WLC_OVERLAY_IOCTL 11
83 #define WLC_GET_RATE 12
84 #define WLC_GET_MAX_RATE 13
85 #define WLC_GET_INSTANCE 14
86 #define WLC_GET_FRAG 15
87 #define WLC_SET_FRAG 16
88 #define WLC_GET_RTS 17
89 #define WLC_SET_RTS 18
90 #define NEX_READ_D11_OBJMEM 15
91 #define WLC_GET_INFRA 19
92 #define WLC_SET_INFRA 20
93 #define WLC_GET_AUTH 21
94 #define WLC_SET_AUTH 22
95 #define WLC_GET_BSSID 23
96 #define WLC_SET_BSSID 24
97 #define WLC_GET_SSID 25
98 #define WLC_SET_SSID 26
99 #define WLC_RESTART 27
100 #define WLC_TERMINATED 28
101 #define WLC_GET_CHANNEL 29
102 #define WLC_SET_CHANNEL 30
103 #define WLC_GET_SRL 31
104 #define WLC_SET_SRL 32
105 #define WLC_GET_LRL 33
106 #define WLC_SET_LRL 34
107 #define WLC_GET_PLCPHDR 35
108 #define WLC_SET_PLCPHDR 36
109 #define WLC_GET_RADIO 37
110 #define WLC_SET_RADIO 38
111 #define WLC_GET_PHYTYPE 39
112 #define WLC_DUMP_RATE 40
113 #define WLC_SET_RATE_PARAMS 41
114 #define WLC_GET_FIXRATE 42
115 #define WLC_SET_FIXRATE 43
116 #define WLC_GET_KEY 44
117 #define WLC_SET_KEY 45
118 #define WLC_GET_REGULATORY 46
119 #define WLC_SET_REGULATORY 47
120 #define WLC_GET_PASSIVE_SCAN 48
121 #define WLC_SET_PASSIVE_SCAN 49
122 #define WLC_SCAN 50
123 #define WLC_SCAN_RESULTS 51
124 #define WLC_DISASSOC 52
125 #define WLC_REASSOC 53
126 #define WLC_GET_ROAM_TRIGGER 54
127 #define WLC_SET_ROAM_TRIGGER 55
128 #define WLC_GET_ROAM_DELTA 56
129 #define WLC_SET_ROAM_DELTA 57
130 #define WLC_GET_ROAM_SCAN_PERIOD 58
131 #define WLC_SET_ROAM_SCAN_PERIOD 59
132 #define WLC_EVM 60
133 #define WLC_GET_TXANT 61
134 #define WLC_SET_TXANT 62
135 #define WLC_GET_ANTDIV 63
136 #define WLC_SET_ANTDIV 64
137 #define WLC_GET_TXPWR 65
138 #define WLC_SET_TXPWR 66
139 #define WLC_GET_CLOSED 67
140 #define WLC_SET_CLOSED 68
141 #define WLC_GET_MACLIST 69
142 #define WLC_SET_MACLIST 70
143 #define WLC_GET_RATESET 71
144 #define WLC_SET_RATESET 72
145 #define WLC_GET_LOCALE 73
146 #define WLC_LONGTRAIN 74
147 #define WLC_GET_BCNPRD 75
148 #define WLC_SET_BCNPRD 76
149 #define WLC_GET_DTIMPRD 77
150 #define WLC_SET_DTIMPRD 78
151 #define WLC_GET_SROM 79
152 #define WLC_SET_SROM 80
153 #define WLC_GET_WEP_RESTRICT 81
154 #define WLC_SET_WEP_RESTRICT 82
155 #define WLC_GET_COUNTRY 83
156 #define WLC_SET_COUNTRY 84
157 #define WLC_GET_PM 85
158 #define WLC_SET_PM 86
159 #define WLC_GET_WAKE 87
160 #define WLC_SET_WAKE 88
161 #define WLC_GET_D11CNTS 89
162 #define WLC_GET_FORCELINK 90
163 #define WLC_SET_FORCELINK 91
164 #define WLC_FREQ_ACCURACY 92
165 #define WLC_CARRIER_SUPPRESS 93
166 #define WLC_GET_PHYREG 94
167 #define WLC_SET_PHYREG 95
168 #define WLC_GET_RADIOREG 96
169 #define WLC_SET_RADIOREG 97
170 #define WLC_GET_REVINFO 98
171 #define WLC_GET_UCANTDIV 99
172 #define WLC_SET_UCANTDIV 100
173 #define WLC_R_REG 101
174 #define WLC_W_REG 102
175 #define WLC_DIAG_LOOPBACK 103
176 #define WLC_RESET_D11CNTS 104
177 #define WLC_GET_MACMODE 105
178 #define WLC_SET_MACMODE 106
179 #define WLC_GET_MONITOR 107
180 #define WLC_SET_MONITOR 108
181 #define WLC_GET_GMODE 109
182 #define WLC_SET_GMODE 110
183 #define WLC_GET_LEGACY_ERP 111
184 #define WLC_SET_LEGACY_ERP 112
185 #define WLC_GET_RX_ANT 113
186 #define WLC_GET_CURR_RATESET 114
187 #define WLC_GET_SCANSUPPRESS 115
188 #define WLC_SET_SCANSUPPRESS 116
189 #define WLC_GET_AP 117
190 #define WLC_SET_AP 118
191 #define WLC_GET_EAP_RESTRICT 119
192 #define WLC_SET_EAP_RESTRICT 120
193 #define WLC_SCB_AUTHORIZE 121
194 #define WLC_SCB_DEAUTHORIZE 122
195 #define WLC_GET_WDSLIST 123
196 #define WLC_SET_WDSLIST 124
197 #define WLC_GET_ATIM 125
198 #define WLC_SET_ATIM 126
199 #define WLC_GET_RSSI 127
200 #define WLC_GET_PHYANTDIV 128
201 #define WLC_SET_PHYANTDIV 129
202 #define WLC_AP_RX_ONLY 130
203 #define WLC_GET_TX_PATH_PWR 131
204 #define WLC_SET_TX_PATH_PWR 132
205 #define WLC_GET_WSEC 133
206 #define WLC_SET_WSEC 134
207 #define WLC_GET_PHY_NOISE 135
208 #define WLC_GET_BSS_INFO 136
209 #define WLC_GET_PKTCNTS 137
210 #define WLC_GET_LAZYWDS 138
211 #define WLC_SET_LAZYWDS 139
212 #define WLC_GET_BANDLIST 140
213 #define WLC_GET_BAND 141
214 #define WLC_SET_BAND 142
215 #define WLC_SCB_DEAUTHENTICATE 143
216 #define WLC_GET_SHORTSLOT 144
217 #define WLC_GET_SHORTSLOT_OVERRIDE 145
218 #define WLC_SET_SHORTSLOT_OVERRIDE 146
219 #define WLC_GET_SHORTSLOT_RESTRICT 147
220 #define WLC_SET_SHORTSLOT_RESTRICT 148
221 #define WLC_GET_GMODE_PROTECTION 149
222 #define WLC_GET_GMODE_PROTECTION_OVERRIDE 150
223 #define WLC_SET_GMODE_PROTECTION_OVERRIDE 151
224 #define WLC_UPGRADE 152
225 #define WLC_GET_MRATE 153
226 #define WLC_SET_MRATE 154
227 #define WLC_GET_IGNORE_BCNS 155
228 #define WLC_SET_IGNORE_BCNS 156
229 #define WLC_GET_SCB_TIMEOUT 157
230 #define WLC_SET_SCB_TIMEOUT 158
231 #define WLC_GET_ASSOCLIST 159
232 #define WLC_GET_CLK 160
233 #define WLC_SET_CLK 161
234 #define WLC_GET_UP 162
235 #define WLC_OUT 163
236 #define WLC_GET_WPA_AUTH 164
237 #define WLC_SET_WPA_AUTH 165
238 #define WLC_GET_UCFLAGS 166
239 #define WLC_SET_UCFLAGS 167
240 #define WLC_GET_PWRIDX 168
241 #define WLC_SET_PWRIDX 169
242 #define WLC_GET_TSSI 170
243 #define WLC_GET_SUP_RATESET_OVERRIDE 171
244 #define WLC_SET_SUP_RATESET_OVERRIDE 172
245 #define WLC_SET_FAST_TIMER 173
246 #define WLC_GET_FAST_TIMER 174
247 #define WLC_SET_SLOW_TIMER 175
248 #define WLC_GET_SLOW_TIMER 176
249 #define WLC_DUMP_PHYREGS 177
250 #define WLC_GET_PROTECTION_CONTROL 178
251 #define WLC_SET_PROTECTION_CONTROL 179
252 #define WLC_GET_PHYLIST 180
253 #define WLC_ENCRYPT_STRENGTH 181
254 #define WLC_DECRYPT_STATUS 182
255 #define WLC_GET_KEY_SEQ 183
256 #define WLC_GET_SCAN_CHANNEL_TIME 184
257 #define WLC_SET_SCAN_CHANNEL_TIME 185
258 #define WLC_GET_SCAN_UNASSOC_TIME 186
259 #define WLC_SET_SCAN_UNASSOC_TIME 187
260 #define WLC_GET_SCAN_HOME_TIME 188
261 #define WLC_SET_SCAN_HOME_TIME 189
262 #define WLC_GET_SCAN_NPROBES 190
263 #define WLC_SET_SCAN_NPROBES 191
264 #define WLC_GET_PRB_RESP_TIMEOUT 192
265 #define WLC_SET_PRB_RESP_TIMEOUT 193
266 #define WLC_GET_ATTEN 194
267 #define WLC_SET_ATTEN 195
268 #define WLC_GET_SHMEM 196
269 #define WLC_SET_SHMEM 197
270 #define WLC_GET_GMODE_PROTECTION_CTS 198
271 #define WLC_SET_GMODE_PROTECTION_CTS 199
272 #define WLC_SET_WSEC_TEST 200
273 #define WLC_SCB_DEAUTHENTICATE_FOR_REASON 201
274 #define WLC_TKIP_COUNTERMEASURES 202
275 #define WLC_GET_PIOMODE 203
276 #define WLC_SET_PIOMODE 204
277 #define WLC_SET_ASSOC_PREFER 205
278 #define WLC_GET_ASSOC_PREFER 206
279 #define WLC_SET_ROAM_PREFER 207
280 #define WLC_GET_ROAM_PREFER 208
281 #define WLC_SET_LED 209
282 #define WLC_GET_LED 210
283 #define WLC_GET_INTERFERENCE_MODE 211
284 #define WLC_SET_INTERFERENCE_MODE 212
285 #define WLC_GET_CHANNEL_QA 213
286 #define WLC_START_CHANNEL_QA 214
287 #define WLC_GET_CHANNEL_SEL 215
288 #define WLC_START_CHANNEL_SEL 216
289 #define WLC_GET_VALID_CHANNELS 217
290 #define WLC_GET_FAKEFRAG 218
291 #define WLC_SET_FAKEFRAG 219
292 #define WLC_GET_PWROUT_PERCENTAGE 220
293 #define WLC_SET_PWROUT_PERCENTAGE 221
294 #define WLC_SET_BAD_FRAME_PREEMPT 222
295 #define WLC_GET_BAD_FRAME_PREEMPT 223
296 #define WLC_SET_LEAP_LIST 224
297 #define WLC_GET_LEAP_LIST 225
298 #define WLC_GET_CWMIN 226
299 #define WLC_SET_CWMIN 227
300 #define WLC_GET_CWMAX 228
301 #define WLC_SET_CWMAX 229
302 #define WLC_GET_WET 230
303 #define WLC_SET_WET 231
304 #define WLC_GET_PUB 232
305 #define WLC_GET_KEY_PRIMARY 235
306 #define WLC_SET_KEY_PRIMARY 236
307 #define WLC_GET_VAR 262 /* get value of named variable */
308 #define WLC_SET_VAR 263 /* set named variable to value */