luci-0.8: update wireless schema
[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 '11ast'
64         option title '802.11a + Turbo'
65
66 config enum
67         option variable 'wireless.wifi-device.mode'
68         option value '11gst'
69         option title '802.11g + Turbo'
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 'txpower'
85         option section 'wireless.wifi-device'
86         option title 'Transmit Power'
87         option description 'dbm'
88         option datatype uint
89
90 config variable
91         option name 'txantenna'
92         option section 'wireless.wifi-device'
93         option title 'Transmitter Antenna'
94         option datatype uint
95         list depends type=atheros
96         list depends type=broadcom
97         list depends type=prism2
98
99 config variable
100         option name 'rxantenna'
101         option section 'wireless.wifi-device'
102         option title 'Receiver Antenna'
103         option datatype uint
104         list depends type=atheros
105         list depends type=broadcom
106         list depends type=prism2
107
108 config variable
109         option name 'distance'
110         option section 'wireless.wifi-device'
111         option title 'Distance Optimization (atheros, broadcom)'
112         option description 'Distance to farthest network member in meters.'
113         option datatype uint
114         list depends type=atheros
115         list depends type=broadcom
116
117 config variable
118         option name 'macfilter'
119         option section 'wireless.wifi-device'
120         option title 'MAC-Address Filter (broadcom)'
121         option type enum
122         list depends type=broadcom
123
124 config enum
125         option variable 'wireless.wifi-device.macfilter'
126         option value 'deny'
127         option title 'Allow listed only'
128
129 config enum
130         option variable 'wireless.wifi-device.macfilter'
131         option value 'allow'
132         option title 'Allow all except listed'
133
134 config variable
135         option name 'maclist'
136         option section 'wireless.wifi-device'
137         option title 'MAC-List (broadcom)'
138         list depends 'type=broadcom, macfilter=allow'
139         list depends 'type=broadcom, macfilter=deny'
140         option type lazylist
141         option datatype macaddr
142
143 config variable
144         option name 'frameburst'
145         option section 'wireless.wifi-device'
146         option title 'Frame Bursting (broadcom)'
147         option datatype boolean
148         list depends 'type=broadcom'
149
150 config variable
151         option name 'regdomain'
152         option section 'wireless.wifi-device'
153         option title 'Regulatory Domain'
154         list depends 'type=atheros'
155
156 config variable
157         option name 'country'
158         option section 'wireless.wifi-device'
159         option title 'Country Code'
160         list depends 'type=broadcom'
161         list depends 'type=atheros'
162
163 config variable
164         option name 'outdoor'
165         option section 'wireless.wifi-device'
166         option title 'Outdoor Channels'
167         option datatype boolean
168         list depends 'type=atheros'
169
170 config variable
171         option name 'maxassoc'
172         option section 'wireless.wifi-device'
173         option title 'Connection Limit (broadcom)'
174         option datatype uint
175         list depends 'type=broadcom'
176
177
178 config section
179         option name 'wifi-iface'
180         option package 'wireless'
181         option title 'Interfaces'
182
183 config variable
184         option name 'device'
185         option section 'wireless.wifi-iface'
186         option title 'Wifi Device'
187         option valueof 'wireless.wifi-device'
188
189 config variable
190         option name 'ssid'
191         option section 'wireless.wifi-iface'
192         option title 'ESSID'
193
194 config variable
195         option name 'network'
196         option section 'wireless.wifi-iface'
197         option title 'Network'
198         option description 'Add the Wifi network to physical network'
199         option type reference
200         list valueof network.interface
201
202 config variable
203         option name 'mode'
204         option section 'wireless.wifi-iface'
205         option title 'Mode'
206         option required true
207         option type enum
208
209 config enum
210         option variable 'wireless.wifi-iface.mode'
211         option value 'ap'
212         option title 'Access Point'
213
214 config enum
215         option variable 'wireless.wifi-iface.mode'
216         option value 'adhoc'
217         option title 'Ad-Hoc'
218
219 config enum
220         option variable 'wireless.wifi-iface.mode'
221         option value 'sta'
222         option title 'Client'
223
224 config enum
225         option variable 'wireless.wifi-iface.mode'
226         option value 'monitor'
227         option title 'Monitor'
228
229 config enum
230         option variable 'wireless.wifi-iface.mode'
231         option value 'ahdemo'
232         option title 'Pseudo Ad-Hoc (ahdemo)'
233
234 config enum
235         option variable 'wireless.wifi-iface.mode'
236         option value 'wds'
237         option title 'WDS'
238
239 config variable
240         option name 'bssid'
241         option section 'wireless.wifi-iface'
242         option title 'BSSID'
243
244 config variable
245         option name 'txpower'
246         option section 'wireless.wifi-iface'
247         option title 'Transmit Power'
248         option description 'dbm'
249         option datatype uint
250
251 config variable
252         option name 'frag'
253         option section 'wireless.wifi-iface'
254         option title 'Fragmentation Threshold (mac80211, atheros, prism2)'
255         option datatype uint
256
257 config variable
258         option name 'rts'
259         option section 'wireless.wifi-iface'
260         option title 'RTS/CTS Threshold (mac80211, atheros, prism2)'
261         option datatype uint
262
263 config variable
264         option name 'wds'
265         option section 'wireless.wifi-iface'
266         option title 'WDS (atheros)'
267         option datatype boolean
268         list depends 'mode=ap'
269         list depends 'mode=sta'
270
271 config variable
272         option name 'wdssep'
273         option section 'wireless.wifi-iface'
274         option title 'Separate WDS (atheros)'
275         option datatype boolean
276         list depends 'wds=1,mode=ap'
277
278 config variable
279         option name 'doth'
280         option section 'wireless.wifi-iface'
281         option title '802.11h (atheros, broadcom)'
282         option datatype boolean
283
284 config variable
285         option name 'hidden'
286         option section 'wireless.wifi-iface'
287         option title 'Hide ESSID (atheros, broadcom, prism2)'
288         option datatype boolean
289         list depends 'mode=ap'
290         list depends 'mode=adhoc'
291         list depends 'mode=wds'
292
293 config variable
294         option name 'isolate'
295         option section 'wireless.wifi-iface'
296         option title 'isolate (atheros, broadcom)'
297         option datatype boolean
298         list depends 'mode=ap'
299
300 config variable
301         option name 'bgscan'
302         option section 'wireless.wifi-iface'
303         option title 'Background Scan (atheros)'
304         option datatype boolean
305
306 config variable
307         option name 'sw_merge'
308         option section 'wireless.wifi-iface'
309         option title 'Disable Ad-Hoc HW beacon timer (atheros)'
310         option datatype boolean
311
312 config variable
313         option name 'nosbeacon'
314         option section 'wireless.wifi-iface'
315         option title 'Disable station HW beacon timer (atheros)'
316         option datatype boolean
317
318 config variable
319         option name 'probereq'
320         option section 'wireless.wifi-iface'
321         option title 'Disable probe responses (atheros)'
322         option datatype boolean
323
324 config variable
325         option name 'macpolicy'
326         option section 'wireless.wifi-iface'
327         option title 'MAC-Address Filter (atheros, prism2)'
328         option type enum
329
330 config enum
331         option variable 'wireless.wifi-iface.macpolicy'
332         option value 'deny'
333         option title 'Allow listed only'
334
335 config enum
336         option variable 'wireless.wifi-iface.macpolicy'
337         option value 'allow'
338         option title 'Allow all except listed'
339
340 config variable
341         option name 'maclist'
342         option section 'wireless.wifi-iface'
343         option title 'MAC-List (atheros, prism2)'
344         list depends 'macpolicy=allow'
345         list depends 'macpolicy=deny'
346         option type lazylist
347         option datatype macaddr
348
349 config variable
350         option name 'rate'
351         option section 'wireless.wifi-iface'
352         option title 'Transmission Rate (atheros, prism2)'
353
354 config variable
355         option name 'mcast_rate'
356         option section 'wireless.wifi-iface'
357         option title 'Multicast Rate (atheros)'
358
359 config variable
360         option name 'minrate'
361         option section 'wireless.wifi-iface'
362         option title 'Minimum Rate (atheros)'
363
364 config variable
365         option name 'maxrate'
366         option section 'wireless.wifi-iface'
367         option title 'Maximum Rate (atheros)'
368
369 config variable
370         option name 'compression'
371         option section 'wireless.wifi-iface'
372         option title 'Compression (atheros)'
373         option datatype boolean
374
375 config variable
376         option name 'bursting'
377         option section 'wireless.wifi-iface'
378         option title 'Frame Bursting (atheros)'
379         option datatype boolean
380
381 config variable
382         option name 'turbo'
383         option section 'wireless.wifi-iface'
384         option title 'Turbo Mode (atheros)'
385         option datatype boolean
386
387 config variable
388         option name 'ff'
389         option section 'wireless.wifi-iface'
390         option title 'Fast Frames (atheros)'
391         option datatype boolean
392
393 config variable
394         option name 'wmm'
395         option section 'wireless.wifi-iface'
396         option title 'WMM Mode (atheros, broadcom)'
397         option datatype boolean
398
399 config variable
400         option name 'xr'
401         option section 'wireless.wifi-iface'
402         option title 'XR Support (atheros)'
403         option datatype boolean
404
405 config variable
406         option name 'ar'
407         option section 'wireless.wifi-iface'
408         option title 'AR Support (atheros)'
409         option datatype boolean
410
411 config variable
412         option name 'encryption'
413         option section 'wireless.wifi-iface'
414         option title 'Encryption'
415         option description 'WPA-Encryption requires wpa_supplicant (for client mode) or hostapd (for AP and ad-hoc mode) to be installed.'
416         option type enum
417
418 config enum
419         option variable 'wireless.wifi-iface.encryption'
420         option value 'none'
421         option title 'No Encryption'
422
423 config enum
424         option variable 'wireless.wifi-iface.encryption'
425         option value 'wep'
426         option title 'WEP'
427
428 config enum
429         option variable 'wireless.wifi-iface.encryption'
430         option value 'psk'
431         option title 'WPA-PSK'
432
433 config enum
434         option variable 'wireless.wifi-iface.encryption'
435         option value 'psk2'
436         option title 'WPA2-PSK'
437
438 config enum
439         option variable 'wireless.wifi-iface.encryption'
440         option value 'psk+psk2'
441         option title 'WPA-PSK/WPA2-PSK Mixed Mode (nas)'
442
443 config enum
444         option variable 'wireless.wifi-iface.encryption'
445         option value 'mixed'
446         option title 'WPA-PSK/WPA2-PSK Mixed Mode (hostapd)'
447
448 config enum
449         option variable 'wireless.wifi-iface.encryption'
450         option value 'wpa'
451         option title 'WPA-EAP'
452
453 config enum
454         option variable 'wireless.wifi-iface.encryption'
455         option value 'wpa2'
456         option title 'WPA2-EAP'
457
458 config variable
459         option name 'server'
460         option section 'wireless.wifi-iface'
461         option title 'RadiusServer'
462         list depends 'encryption=wpa,mode=ap'
463         list depends 'encryption=wpa2,mode=ap'
464         option datatype host
465
466 config variable
467         option name 'port'
468         option section 'wireless.wifi-iface'
469         option title 'Radius-Port'
470         list depends 'encryption=wpa,mode=ap'
471         list depends 'encryption=wpa2,mode=ap'
472         option datatype port
473
474 config variable
475         option name 'key'
476         option section 'wireless.wifi-iface'
477         option title 'Key'
478         option minlength 8
479         option maxlength 63
480         list depends 'encryption=wep'
481         list depends 'encryption=psk'
482         list depends 'encryption=wpa,mode=ap'
483         list depends 'encryption=psk2'
484         list depends 'encryption=wpa2,mode=ap'
485         list depends 'encryption=psk+psk2'
486         list depends 'encryption=mixed'
487
488 config variable
489         option name 'nasid'
490         option section 'wireless.wifi-iface'
491         option title 'NAS ID'
492         list depends 'encryption=wpa,mode=ap'
493         list depends 'encryption=wpa2,mode=ap'
494
495 config variable
496         option name 'eap_type'
497         option section 'wireless.wifi-iface'
498         option title 'EAP-Method'
499         option type enum
500         list depends 'encryption=wpa,mode=sta'
501         list depends 'encryption=wpa2,mode=sta'
502
503 config enum
504         option variable 'wireless.wifi-iface.eap_type'
505         option value 'TLS'
506
507 config enum
508         option variable 'wireless.wifi-iface.eap_type'
509         option value 'PEAP'
510         
511 config enum
512         option variable 'wireless.wifi-iface.eap_type'
513         option value 'TTLS'
514
515 config variable
516         option name 'ca_cert'
517         option section 'wireless.wifi-iface'
518         option title 'Path to CA-Certificate'
519         list depends 'encryption=wpa,mode=sta'
520         list depends 'encryption=wpa2,mode=sta'
521         option datatype file
522
523 config variable
524         option name 'priv_key'
525         option section 'wireless.wifi-iface'
526         option title 'Path to Private Key'
527         list depends 'mode=sta,encryption=wpa2,eap_type=TLS'
528         list depends 'mode=sta,encryption=wpa,eap_type=TLS'
529         option datatype file
530
531
532 config variable
533         option name 'priv_key_pwd'
534         option section 'wireless.wifi-iface'
535         option title 'Password of Private Key'
536         list depends 'mode=sta,encryption=wpa2,eap_type=TLS'
537         list depends 'mode=sta,encryption=wpa,eap_type=TLS'
538
539 config variable
540         option name 'auth'
541         option section 'wireless.wifi-iface'
542         option title 'Authentication'
543         list depends 'mode=sta,encryption=wpa2,eap_type=PEAP'
544         list depends 'mode=sta,encryption=wpa,eap_type=PEAP'
545         list depends 'mode=sta,encryption=wpa2,eap_type=TTLS'
546         list depends 'mode=sta,encryption=wpa,eap_type=TTLS'
547
548 config variable
549         option name 'identity'
550         option section 'wireless.wifi-iface'
551         option title 'Identity'
552         list depends 'mode=sta,encryption=wpa2,eap_type=PEAP'
553         list depends 'mode=sta,encryption=wpa,eap_type=PEAP'
554         list depends 'mode=sta,encryption=wpa2,eap_type=TTLS'
555         list depends 'mode=sta,encryption=wpa,eap_type=TTLS'
556
557 config variable
558         option name 'password'
559         option section 'wireless.wifi-iface'
560         option title 'Password'
561         list depends 'mode=sta,encryption=wpa2,eap_type=PEAP'
562         list depends 'mode=sta,encryption=wpa,eap_type=PEAP'
563         list depends 'mode=sta,encryption=wpa2,eap_type=TTLS'
564         list depends 'mode=sta,encryption=wpa,eap_type=TTLS'