* luci-0.8: merge r3785 and r3786
[project/luci.git] / modules / admin-core / root / lib / uci / schema / default / wireless
1 package wireless
2
3 config package
4 option title 'Wireless LAN'
5
6 config section
7 option name 'wifi-device'
8 option package 'wireless'
9 option title 'Devices'
10 option named true
11
12 config variable
13 option name 'disabled'
14 option section 'wireless.wifi-device'
15 option title 'disabled'
16 option datatype boolean
17
18 config variable
19 option name 'type'
20 option section 'wireless.wifi-device'
21 option title 'Type'
22 option required true
23
24 config variable
25 option name 'channel'
26 option section 'wireless.wifi-device'
27 option title 'Channel'
28
29 config variable
30 option name 'mode'
31 option section 'wireless.wifi-device'
32 option title 'Mode (atheros)'
33 option type enum
34 list depends type=atheros
35
36 config enum
37 option variable 'wireless.wifi-device.mode'
38 option value ''
39 option title 'auto'
40
41 config enum
42 option variable 'wireless.wifi-device.mode'
43 option value '11b'
44 option title '802.11b'
45
46 config enum
47 option variable 'wireless.wifi-device.mode'
48 option value '11g'
49 option title '802.11g'
50
51 config enum
52 option variable 'wireless.wifi-device.mode'
53 option value '11a'
54 option title '802.11a'
55
56 config enum
57 option variable 'wireless.wifi-device.mode'
58 option value '11bg'
59 option title '802.11b+g'
60
61 config enum
62 option variable 'wireless.wifi-device.mode'
63 option value '11gdt'
64 option title '802.11adt'
65
66 config enum
67 option variable 'wireless.wifi-device.mode'
68 option value '11adt'
69 option title '802.11adt'
70
71 config enum
72 option variable 'wireless.wifi-device.mode'
73 option value 'fh'
74 option title 'Frequency Hopping'
75
76 config variable
77 option name 'diversity'
78 option section 'wireless.wifi-device'
79 option title 'Diversity (atheros)'
80 option datatype boolean
81 list depends type=atheros
82
83 config variable
84 option name 'txantenna'
85 option section 'wireless.wifi-device'
86 option title 'Transmitter Antenna'
87 option datatype uint
88 list depends type=atheros
89 list depends type=broadcom
90
91 config variable
92 option name 'rxantenna'
93 option section 'wireless.wifi-device'
94 option title 'Receiver Antenna'
95 option datatype uint
96 list depends type=atheros
97 list depends type=broadcom
98
99 config variable
100 option name 'txpower'
101 option section 'wireless.wifi-device'
102 option title 'Transmit Power (broadcom)'
103 option description 'dbm'
104 option datatype uint
105 list depends type=broadcom
106
107 config variable
108 option name 'distance'
109 option section 'wireless.wifi-device'
110 option title 'Distance Optimization (atheros, broadcom)'
111 option description 'Distance to farthest network member in meters.'
112 option datatype uint
113 list depends type=atheros
114 list depends type=broadcom
115
116 config variable
117 option name 'macfilter'
118 option section 'wireless.wifi-device'
119 option title 'MAC-Address Filter (broadcom)'
120 option type enum
121 list depends type=broadcom
122
123 config enum
124 option variable 'wireless.wifi-device.macfilter'
125 option value 'deny'
126 option title 'Allow listed only'
127
128 config enum
129 option variable 'wireless.wifi-device.macfilter'
130 option value 'allow'
131 option title 'Allow all except listed'
132
133 config variable
134 option name 'maclist'
135 option section 'wireless.wifi-device'
136 option title 'MAC-List (broadcom)'
137 list depends 'type=broadcom, macfilter=allow'
138 list depends 'type=broadcom, macfilter=deny'
139 option type lazylist
140 option datatype macaddr
141
142 config variable
143 option name 'frameburst'
144 option section 'wireless.wifi-device'
145 option title 'Frame Bursting (broadcom)'
146 option datatype boolean
147 list depends 'type=broadcom'
148
149 config variable
150 option name 'country'
151 option section 'wireless.wifi-device'
152 option title 'Country Code (broadcom)'
153 list depends 'type=broadcom'
154
155 config variable
156 option name 'maxassoc'
157 option section 'wireless.wifi-device'
158 option title 'Connection Limit (broadcom)'
159 option datatype uint
160 list depends 'type=broadcom'
161
162
163 config section
164 option name 'wifi-iface'
165 option package 'wireless'
166 option title 'Interfaces'
167
168 config variable
169 option name 'device'
170 option section 'wireless.wifi-iface'
171 option title 'Wifi Device'
172 option valueof 'wireless.wifi-device'
173
174 config variable
175 option name 'ssid'
176 option section 'wireless.wifi-iface'
177 option title 'ESSID'
178
179 config variable
180 option name 'network'
181 option section 'wireless.wifi-iface'
182 option title 'Network'
183 option description 'Add the Wifi network to physical network'
184 option type reference
185 list valueof network.interface
186
187 config variable
188 option name 'mode'
189 option section 'wireless.wifi-iface'
190 option title 'Mode'
191 option required true
192 option type enum
193
194 config enum
195 option variable 'wireless.wifi-iface.mode'
196 option value 'ap'
197 option title 'Access Point'
198
199 config enum
200 option variable 'wireless.wifi-iface.mode'
201 option value 'adhoc'
202 option title 'Ad-Hoc'
203
204 config enum
205 option variable 'wireless.wifi-iface.mode'
206 option value 'sta'
207 option title 'Client'
208
209 config enum
210 option variable 'wireless.wifi-iface.mode'
211 option value 'monitor'
212 option title 'Monitor'
213
214 config enum
215 option variable 'wireless.wifi-iface.mode'
216 option value 'ahdemo'
217 option title 'Pseudo Ad-Hoc (ahdemo)'
218
219 config enum
220 option variable 'wireless.wifi-iface.mode'
221 option value 'wds'
222 option title 'WDS'
223
224 config variable
225 option name 'bssid'
226 option section 'wireless.wifi-iface'
227 option title BSSID
228
229 config variable
230 option name 'txpower'
231 option section 'wireless.wifi-iface'
232 option title 'Transmit Power (mac80211, atheros)'
233 option description 'dbm'
234 option datatype uint
235
236 config variable
237 option name 'frag'
238 option section 'wireless.wifi-iface'
239 option title 'Fragmentation Threshold (mac80211, atheros)'
240 option datatype uint
241
242 config variable
243 option name 'rts'
244 option section 'wireless.wifi-iface'
245 option title 'RTS/CTS Threshold (mac80211, atheros)'
246 option datatype uint
247
248 config variable
249 option name 'wds'
250 option section 'wireless.wifi-iface'
251 option title 'WDS (atheros)'
252 option datatype boolean
253 list depends 'mode=ap'
254 list depends 'mode=sta'
255
256 config variable
257 option name 'wdssep'
258 option section 'wireless.wifi-iface'
259 option title 'Separate WDS (atheros)'
260 option datatype boolean
261 list depends 'wds=1,mode=ap'
262
263 config variable
264 option name 'doth'
265 option section 'wireless.wifi-iface'
266 option title '802.11h (atheros)'
267 option datatype boolean
268
269 config variable
270 option name 'hidden'
271 option section 'wireless.wifi-iface'
272 option title 'Hide ESSID (atheros, broadcom)'
273 option datatype boolean
274 list depends 'mode=ap'
275 list depends 'mode=adhoc'
276 list depends 'mode=wds'
277
278 config variable
279 option name 'isolate'
280 option section 'wireless.wifi-iface'
281 option title 'isolate (atheros, broadcom)'
282 option datatype boolean
283 list depends 'mode=ap'
284
285 config variable
286 option name 'bgscan'
287 option section 'wireless.wifi-iface'
288 option title 'Background Scan (atheros)'
289 option datatype boolean
290
291 config variable
292 option name 'macpolicy'
293 option section 'wireless.wifi-iface'
294 option title 'MAC-Address Filter (atheros)'
295 option type enum
296
297 config enum
298 option variable 'wireless.wifi-iface.macpolicy'
299 option value 'deny'
300 option title 'Allow listed only'
301
302 config enum
303 option variable 'wireless.wifi-iface.macpolicy'
304 option value 'allow'
305 option title 'Allow all except listed'
306
307 config variable
308 option name 'maclist'
309 option section 'wireless.wifi-iface'
310 option title 'MAC-List (atheros)'
311 list depends 'macpolicy=allow'
312 list depends 'macpolicy=deny'
313 option type lazylist
314 option datatype macaddr
315
316 config variable
317 option name 'rate'
318 option section 'wireless.wifi-iface'
319 option title 'Transmission Rate (atheros)'
320
321 config variable
322 option name 'mcast_rate'
323 option section 'wireless.wifi-iface'
324 option title 'Multicast Rate (atheros)'
325
326 config variable
327 option name 'minrate'
328 option section 'wireless.wifi-iface'
329 option title 'Minimum Rate (atheros)'
330
331 config variable
332 option name 'maxrate'
333 option section 'wireless.wifi-iface'
334 option title 'Maximum Rate (atheros)'
335
336 config variable
337 option name 'compression'
338 option section 'wireless.wifi-iface'
339 option title 'Compression (atheros)'
340 option datatype boolean
341
342 config variable
343 option name 'bursting'
344 option section 'wireless.wifi-iface'
345 option title 'Frame Bursting (atheros)'
346 option datatype boolean
347
348 config variable
349 option name 'turbo'
350 option section 'wireless.wifi-iface'
351 option title 'Turbo Mode (atheros)'
352 option datatype boolean
353
354 config variable
355 option name 'ff'
356 option section 'wireless.wifi-iface'
357 option title 'Fast Frames (atheros)'
358
359 config variable
360 option name 'wmm'
361 option section 'wireless.wifi-iface'
362 option title 'WMM Mode (atheros)'
363 option datatype boolean
364
365 config variable
366 option name 'xr'
367 option section 'wireless.wifi-iface'
368 option title 'XR Support (atheros)'
369 option datatype boolean
370
371 config variable
372 option name 'ar'
373 option section 'wireless.wifi-iface'
374 option title 'AR Support (atheros)'
375 option datatype boolean
376
377 config variable
378 option name 'encryption'
379 option section 'wireless.wifi-iface'
380 option title 'Encryption'
381 option description 'WPA-Encryption requires wpa_supplicant (for client mode) or hostapd (for AP and ad-hoc mode) to be installed.'
382 option type enum
383
384 config enum
385 option variable 'wireless.wifi-iface.encryption'
386 option value 'none'
387 option title 'No Encryption'
388
389 config enum
390 option variable 'wireless.wifi-iface.encryption'
391 option value 'wep'
392 option title 'WEP'
393
394 config enum
395 option variable 'wireless.wifi-iface.encryption'
396 option value 'psk'
397 option title 'WPA-PSK'
398
399 config enum
400 option variable 'wireless.wifi-iface.encryption'
401 option value 'psk2'
402 option title 'WPA2-PSK'
403
404 config enum
405 option variable 'wireless.wifi-iface.encryption'
406 option value 'wpa'
407 option title 'WPA-EAP'
408
409 config enum
410 option variable 'wireless.wifi-iface.encryption'
411 option value 'wpa2i'
412 option title 'WPA2-EAP'
413
414 config variable
415 option name 'server'
416 option section 'wireless.wifi-iface'
417 option title 'RadiusServer'
418 list depends 'encryption=wpa,mode=ap'
419 list depends 'encryption=wpa2i,mode=ap'
420 option datatype host
421
422 config variable
423 option name 'port'
424 option section 'wireless.wifi-iface'
425 option title 'Radius-Port'
426 list depends 'encryption=wpa,mode=ap'
427 list depends 'encryption=wpa2i,mode=ap'
428 option datatype port
429
430 config variable
431 option name 'key'
432 option section 'wireless.wifi-iface'
433 option title 'Key'
434 list depends 'encryption=wep'
435 list depends 'encryption=psk'
436 list depends 'encryption=wpa,mode=ap'
437 list depends 'encryption=psk2'
438 list depends 'encryption=wpa2i,mode=ap'
439
440 config variable
441 option name 'nasid'
442 option section 'wireless.wifi-iface'
443 option title 'NAS ID'
444 list depends 'encryption=wpa,mode=ap'
445 list depends 'encryption=wpa2i,mode=ap'
446
447 config variable
448 option name 'eap_type'
449 option section 'wireless.wifi-iface'
450 option title 'EAP-Method'
451 option type enum
452 list depends 'encryption=wpa,mode=sta'
453 list depends 'encryption=wpa2i,mode=sta'
454
455 config enum
456 option variable 'wireless.wifi-iface.eap_type'
457 option value 'TLS'
458
459 config enum
460 option variable 'wireless.wifi-iface.eap_type'
461 option value 'PEAP'
462
463 config variable
464 option name 'ca_cert'
465 option section 'wireless.wifi-iface'
466 option title 'Path to CA-Certificate'
467 list depends 'encryption=wpa,mode=sta'
468 list depends 'encryption=wpa2i,mode=sta'
469 option datatype file
470
471 config variable
472 option name 'priv_key'
473 option section 'wireless.wifi-iface'
474 option title 'Path to Private Key'
475 list depends 'mode=sta,encryption=wpa2i,eap_type=TLS'
476 list depends 'mode=sta,encryption=wpa,eap_type=TLS'
477 option datatype file
478
479
480 config variable
481 option name 'priv_key_pwd'
482 option section 'wireless.wifi-iface'
483 option title 'Password of Private Key'
484 list depends 'mode=sta,encryption=wpa2i,eap_type=TLS'
485 list depends 'mode=sta,encryption=wpa,eap_type=TLS'
486
487 config variable
488 option name 'auth'
489 option section 'wireless.wifi-iface'
490 option title 'PEAP-Authentication'
491 list depends 'mode=sta,encryption=wpa2i,eap_type=PEAP'
492 list depends 'mode=sta,encryption=wpa,eap_type=PEAP'
493
494 config variable
495 option name 'identity'
496 option section 'wireless.wifi-iface'
497 option title 'PEAP-Identity'
498 list depends 'mode=sta,encryption=wpa2i,eap_type=PEAP'
499 list depends 'mode=sta,encryption=wpa,eap_type=PEAP'
500
501 config variable
502 option name 'password'
503 option section 'wireless.wifi-iface'
504 option title 'PEAP-Password'
505 list depends 'mode=sta,encryption=wpa2i,eap_type=PEAP'
506 list depends 'mode=sta,encryption=wpa,eap_type=PEAP'