248b50ec9a9f5fc528aab26086e1d7f3bbd799a3
[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 '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 enum
240         option variable 'wireless.wifi-iface.mode'
241         option value 'mesh'
242         option title 'Mesh (802.11s)'
243
244 config variable
245         option name 'bssid'
246         option section 'wireless.wifi-iface'
247         option title 'BSSID'
248
249 config variable
250         option name 'txpower'
251         option section 'wireless.wifi-iface'
252         option title 'Transmit Power'
253         option description 'dbm'
254         option datatype uint
255
256 config variable
257         option name 'frag'
258         option section 'wireless.wifi-iface'
259         option title 'Fragmentation Threshold (mac80211, atheros, prism2)'
260         option datatype uint
261
262 config variable
263         option name 'rts'
264         option section 'wireless.wifi-iface'
265         option title 'RTS/CTS Threshold (mac80211, atheros, prism2)'
266         option datatype uint
267
268 config variable
269         option name 'wds'
270         option section 'wireless.wifi-iface'
271         option title 'WDS (atheros)'
272         option datatype boolean
273         list depends 'mode=ap'
274         list depends 'mode=sta'
275
276 config variable
277         option name 'wdssep'
278         option section 'wireless.wifi-iface'
279         option title 'Separate WDS (atheros)'
280         option datatype boolean
281         list depends 'wds=1,mode=ap'
282
283 config variable
284         option name 'doth'
285         option section 'wireless.wifi-iface'
286         option title '802.11h (atheros)'
287         option datatype boolean
288
289 config variable
290         option name 'hidden'
291         option section 'wireless.wifi-iface'
292         option title 'Hide ESSID (atheros, broadcom, prism2)'
293         option datatype boolean
294         list depends 'mode=ap'
295         list depends 'mode=adhoc'
296         list depends 'mode=wds'
297
298 config variable
299         option name 'isolate'
300         option section 'wireless.wifi-iface'
301         option title 'isolate (atheros, broadcom)'
302         option datatype boolean
303         list depends 'mode=ap'
304
305 config variable
306         option name 'bgscan'
307         option section 'wireless.wifi-iface'
308         option title 'Background Scan (atheros)'
309         option datatype boolean
310
311 config variable
312         option name 'sw_merge'
313         option section 'wireless.wifi-iface'
314         option title 'Disable Ad-Hoc HW beacon timer (atheros)'
315         option datatype boolean
316
317 config variable
318         option name 'nosbeacon'
319         option section 'wireless.wifi-iface'
320         option title 'Disable station HW beacon timer (atheros)'
321         option datatype boolean
322
323 config variable
324         option name 'probereq'
325         option section 'wireless.wifi-iface'
326         option title 'Disable probe responses (atheros)'
327         option datatype boolean
328
329 config variable
330         option name 'macpolicy'
331         option section 'wireless.wifi-iface'
332         option title 'MAC-Address Filter (atheros, prism2)'
333         option type enum
334
335 config enum
336         option variable 'wireless.wifi-iface.macpolicy'
337         option value 'deny'
338         option title 'Allow listed only'
339
340 config enum
341         option variable 'wireless.wifi-iface.macpolicy'
342         option value 'allow'
343         option title 'Allow all except listed'
344
345 config variable
346         option name 'maclist'
347         option section 'wireless.wifi-iface'
348         option title 'MAC-List (atheros, prism2)'
349         list depends 'macpolicy=allow'
350         list depends 'macpolicy=deny'
351         option type lazylist
352         option datatype macaddr
353
354 config variable
355         option name 'rate'
356         option section 'wireless.wifi-iface'
357         option title 'Transmission Rate (atheros, prism2)'
358
359 config variable
360         option name 'mcast_rate'
361         option section 'wireless.wifi-iface'
362         option title 'Multicast Rate (atheros)'
363
364 config variable
365         option name 'minrate'
366         option section 'wireless.wifi-iface'
367         option title 'Minimum Rate (atheros)'
368
369 config variable
370         option name 'maxrate'
371         option section 'wireless.wifi-iface'
372         option title 'Maximum Rate (atheros)'
373
374 config variable
375         option name 'compression'
376         option section 'wireless.wifi-iface'
377         option title 'Compression (atheros)'
378         option datatype boolean
379
380 config variable
381         option name 'bursting'
382         option section 'wireless.wifi-iface'
383         option title 'Frame Bursting (atheros)'
384         option datatype boolean
385
386 config variable
387         option name 'turbo'
388         option section 'wireless.wifi-iface'
389         option title 'Turbo Mode (atheros)'
390         option datatype boolean
391
392 config variable
393         option name 'ff'
394         option section 'wireless.wifi-iface'
395         option title 'Fast Frames (atheros)'
396         option datatype boolean
397
398 config variable
399         option name 'wmm'
400         option section 'wireless.wifi-iface'
401         option title 'WMM Mode (atheros)'
402         option datatype boolean
403
404 config variable
405         option name 'xr'
406         option section 'wireless.wifi-iface'
407         option title 'XR Support (atheros)'
408         option datatype boolean
409
410 config variable
411         option name 'ar'
412         option section 'wireless.wifi-iface'
413         option title 'AR Support (atheros)'
414         option datatype boolean
415
416 config variable
417         option name 'encryption'
418         option section 'wireless.wifi-iface'
419         option title 'Encryption'
420         option description 'WPA-Encryption requires wpa_supplicant (for client mode) or hostapd (for AP and ad-hoc mode) to be installed.'
421         option type enum
422
423 config enum
424         option variable 'wireless.wifi-iface.encryption'
425         option value 'none'
426         option title 'No Encryption'
427
428 config enum
429         option variable 'wireless.wifi-iface.encryption'
430         option value 'wep'
431         option title 'WEP'
432
433 config enum
434         option variable 'wireless.wifi-iface.encryption'
435         option value 'psk'
436         option title 'WPA-PSK'
437
438 config enum
439         option variable 'wireless.wifi-iface.encryption'
440         option value 'psk2'
441         option title 'WPA2-PSK'
442
443 config enum
444         option variable 'wireless.wifi-iface.encryption'
445         option value 'wpa'
446         option title 'WPA-EAP'
447
448 config enum
449         option variable 'wireless.wifi-iface.encryption'
450         option value 'wpa2'
451         option title 'WPA2-EAP'
452
453 config variable
454         option name 'server'
455         option section 'wireless.wifi-iface'
456         option title 'RadiusServer'
457         list depends 'encryption=wpa,mode=ap'
458         list depends 'encryption=wpa2,mode=ap'
459         option datatype host
460
461 config variable
462         option name 'port'
463         option section 'wireless.wifi-iface'
464         option title 'Radius-Port'
465         list depends 'encryption=wpa,mode=ap'
466         list depends 'encryption=wpa2,mode=ap'
467         option datatype port
468
469 config variable
470         option name 'key'
471         option section 'wireless.wifi-iface'
472         option title 'Key'
473         option minlength 8
474         option maxlength 63
475         list depends 'encryption=wep'
476         list depends 'encryption=psk'
477         list depends 'encryption=wpa,mode=ap'
478         list depends 'encryption=psk2'
479         list depends 'encryption=wpa2,mode=ap'
480         list depends 'encryption=psk+psk2'
481         list depends 'encryption=mixed'
482
483 config variable
484         option name 'nasid'
485         option section 'wireless.wifi-iface'
486         option title 'NAS ID'
487         list depends 'encryption=wpa,mode=ap'
488         list depends 'encryption=wpa2,mode=ap'
489
490 config variable
491         option name 'eap_type'
492         option section 'wireless.wifi-iface'
493         option title 'EAP-Method'
494         option type enum
495         list depends 'encryption=wpa,mode=sta'
496         list depends 'encryption=wpa2,mode=sta'
497
498 config enum
499         option variable 'wireless.wifi-iface.eap_type'
500         option value 'TLS'
501
502 config enum
503         option variable 'wireless.wifi-iface.eap_type'
504         option value 'PEAP'
505         
506 config enum
507         option variable 'wireless.wifi-iface.eap_type'
508         option value 'TTLS'
509
510 config variable
511         option name 'ca_cert'
512         option section 'wireless.wifi-iface'
513         option title 'Path to CA-Certificate'
514         list depends 'encryption=wpa,mode=sta'
515         list depends 'encryption=wpa2,mode=sta'
516         option datatype file
517
518 config variable
519         option name 'priv_key'
520         option section 'wireless.wifi-iface'
521         option title 'Path to Private Key'
522         list depends 'mode=sta,encryption=wpa2,eap_type=TLS'
523         list depends 'mode=sta,encryption=wpa,eap_type=TLS'
524         option datatype file
525
526
527 config variable
528         option name 'priv_key_pwd'
529         option section 'wireless.wifi-iface'
530         option title 'Password of Private Key'
531         list depends 'mode=sta,encryption=wpa2,eap_type=TLS'
532         list depends 'mode=sta,encryption=wpa,eap_type=TLS'
533
534 config variable
535         option name 'auth'
536         option section 'wireless.wifi-iface'
537         option title 'Authentication'
538         list depends 'mode=sta,encryption=wpa2,eap_type=PEAP'
539         list depends 'mode=sta,encryption=wpa,eap_type=PEAP'
540         list depends 'mode=sta,encryption=wpa2,eap_type=TTLS'
541         list depends 'mode=sta,encryption=wpa,eap_type=TTLS'
542
543 config variable
544         option name 'identity'
545         option section 'wireless.wifi-iface'
546         option title 'Identity'
547         list depends 'mode=sta,encryption=wpa2,eap_type=PEAP'
548         list depends 'mode=sta,encryption=wpa,eap_type=PEAP'
549         list depends 'mode=sta,encryption=wpa2,eap_type=TTLS'
550         list depends 'mode=sta,encryption=wpa,eap_type=TTLS'
551
552 config variable
553         option name 'password'
554         option section 'wireless.wifi-iface'
555         option title 'Password'
556         list depends 'mode=sta,encryption=wpa2,eap_type=PEAP'
557         list depends 'mode=sta,encryption=wpa,eap_type=PEAP'
558         list depends 'mode=sta,encryption=wpa2,eap_type=TTLS'
559         list depends 'mode=sta,encryption=wpa,eap_type=TTLS'