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