fa9598b844f7b465c62f35079bb3d8394fc0114c
[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 required true
35         option type enum
36         list depends type=atheros
37
38 config enum
39         option variable 'wireless.wifi-device.mode'
40         option value ''
41         option title 'auto'
42
43 config enum
44         option variable 'wireless.wifi-device.mode'
45         option value '11b'
46         option title '802.11b'
47
48 config enum
49         option variable 'wireless.wifi-device.mode'
50         option value '11g'
51         option title '802.11g'
52
53 config enum
54         option variable 'wireless.wifi-device.mode'
55         option value '11a'
56         option title '802.11a'
57
58 config enum
59         option variable 'wireless.wifi-device.mode'
60         option value '11bg'
61         option title '802.11b+g'
62
63 config enum
64         option variable 'wireless.wifi-device.mode'
65         option value '11gdt'
66         option title '802.11adt'
67
68 config enum
69         option variable 'wireless.wifi-device.mode'
70         option value '11adt'
71         option title '802.11adt'
72
73 config enum
74         option variable 'wireless.wifi-device.mode'
75         option value 'fh'
76         option title 'Frequency Hopping'
77
78 config variable
79         option name 'diversity'
80         option section 'wireless.wifi-device'
81         option title 'Diversity (atheros)'
82         option datatype boolean
83         list depends type=atheros
84
85 config variable
86         option name 'txantenna'
87         option section 'wireless.wifi-device'
88         option title 'Transmitter Antenna (atheros)'
89         option datatype uint
90         list depends type=atheros
91
92 config variable
93         option name 'rxantenna'
94         option section 'wireless.wifi-device'
95         option title 'Receiver Antenna (atheros)'
96         option datatype uint
97         list depends type=atheros
98
99 config variable
100         option name 'distance'
101         option section 'wireless.wifi-device'
102         option title 'Distance Optimization (atheros, broadcom)'
103         option description 'Distance to farthest network member in meters.'
104         option datatype uint
105         list depends type=atheros
106         list depends type=broadcom
107
108 config variable
109         option name 'macpolicy'
110         option section 'wireless.wifi-device'
111         option title 'MAC-Address Filter (broadcom)'
112         option type enum
113         list depends type=broadcom
114
115 config enum
116         option variable 'wireless.wifi-device.macpolicy'
117         option value 'deny'
118         option title 'Allow listed only'
119
120 config enum
121         option variable 'wireless.wifi-device.macpolicy'
122         option value 'allow'
123         option title 'Allow all except listed'
124
125 config variable
126         option name 'maclist'
127         option section 'wireless.wifi-device'
128         option title 'MAC-List (broadcom)'
129         list depends 'type=broadcom, macpolicy=allow'
130         list depends 'type=broadcom, macpolicy=deny'
131         option multival true
132         option datatype macaddr
133
134 config variable
135         option name 'txant'
136         option section 'wireless.wifi-device'
137         option title 'Transmitter Antenna (broadcom)'
138         option datatype uint
139         list depends 'type=broadcom'
140
141 config variable
142         option name 'rxant'
143         option section 'wireless.wifi-device'
144         option title 'Receiver Antenna (broadcom)'
145         option datatype uint
146         list depends 'type=broadcom'
147
148 config variable
149         option name 'frameburst'
150         option section 'wireless.wifi-device'
151         option title 'Frame Bursting (broadcom)'
152         option datatype boolean
153         list depends 'type=broadcom'
154
155 config variable
156         option name 'country'
157         option section 'wireless.wifi-device'
158         option title 'Country Code (broadcom)'
159         list depends 'type=broadcom'
160
161 config variable
162         option name 'maxassoc'
163         option section 'wireless.wifi-device'
164         option title 'Connection Limit (broadcom)'
165         option datatype uint
166         list depends 'type=broadcom'
167
168
169 config section
170         option name 'wifi-iface'
171         option package 'wireless'
172         option title 'Interfaces'
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
314 config variable
315         option name 'rate'
316         option section 'wireless.wifi-iface'
317         option title 'Transmission Rate (atheros)'
318
319 config variable
320         option name 'mcast_rate'
321         option section 'wireless.wifi-iface'
322         option title 'Multicast Rate (atheros)'
323
324 config variable
325         option name 'minrate'
326         option section 'wireless.wifi-iface'
327         option title 'Minimum Rate (atheros)'
328
329 config variable
330         option name 'maxrate'
331         option section 'wireless.wifi-iface'
332         option title 'Maximum Rate (atheros)'
333
334 config variable
335         option name 'compression'
336         option section 'wireless.wifi-iface'
337         option title 'Compression (atheros)'
338         option datatype boolean
339
340 config variable
341         option name 'bursting'
342         option section 'wireless.wifi-iface'
343         option title 'Frame Bursting (atheros)'
344         option datatype boolean
345
346 config variable
347         option name 'turbo'
348         option section 'wireless.wifi-iface'
349         option title 'Turbo Mode (atheros)'
350         option datatype boolean
351
352 config variable
353         option name 'ff'
354         option section 'wireless.wifi-iface'
355         option title 'Fast Frames (atheros)'
356
357 config variable
358         option name 'wmm'
359         option section 'wireless.wifi-iface'
360         option title 'WMM Mode (atheros)'
361         option datatype boolean
362
363 config variable
364         option name 'xr'
365         option section 'wireless.wifi-iface'
366         option title 'XR Support (atheros)'
367         option datatype boolean
368
369 config variable
370         option name 'ar'
371         option section 'wireless.wifi-iface'
372         option title 'AR Support (atheros)'
373         option datatype boolean
374
375 config variable
376         option name 'encryption'
377         option section 'wireless.wifi-iface'
378         option title 'Encryption'
379         option description 'WPA-Encryption requires wpa_supplicant (for client mode) or hostapd (for AP and ad-hoc mode) to be installed.'
380         option type enum
381         
382 config enum
383         option variable 'wireless.wifi-iface.encryption'
384         option value 'none'
385         option title 'No Encryption'
386
387 config enum
388         option variable 'wireless.wifi-iface.encryption'
389         option value 'wep'
390         option title 'WEP'
391
392 config enum
393         option variable 'wireless.wifi-iface.encryption'
394         option value 'psk'
395         option title 'WPA-PSK'
396
397 config enum
398         option variable 'wireless.wifi-iface.encryption'
399         option value 'psk2'
400         option title 'WPA2-PSK'
401
402 config enum
403         option variable 'wireless.wifi-iface.encryption'
404         option value 'wpa'
405         option title 'WPA-EAP'
406
407 config enum
408         option variable 'wireless.wifi-iface.encryption'
409         option value 'wpa2i'
410         option title 'WPA2-EAP'
411
412 config variable
413         option name 'server'
414         option section 'wireless.wifi-iface'
415         option title 'RadiusServer'
416         list depends 'encryption=wpa,mode=ap'
417         list depends 'encryption=wpa2i,mode=ap'
418         option datatype host
419
420 config variable
421         option name 'port'
422         option section 'wireless.wifi-iface'
423         option title 'Radius-Port'
424         list depends 'encryption=wpa,mode=ap'
425         list depends 'encryption=wpa2i,mode=ap'
426         option datatype port
427
428 config variable
429         option name 'key'
430         option section 'wireless.wifi-iface'
431         option title 'Key'
432         list depends 'encryption=wep'
433         list depends 'encryption=psk'
434         list depends 'encryption=wpa,mode=ap'
435         list depends 'encryption=psk2'
436         list depends 'encryption=wpa2i,mode=ap'
437
438 config variable
439         option name 'nasid'
440         option section 'wireless.wifi-iface'
441         option title 'NAS ID'
442         list depends 'encryption=wpa,mode=ap'
443         list depends 'encryption=wpa2i,mode=ap'
444
445 config variable
446         option name 'eap_type'
447         option section 'wireless.wifi-iface'
448         option title 'EAP-Method'
449         option type enum
450         list depends 'encryption=wpa,mode=sta'
451         list depends 'encryption=wpa2i,mode=sta'
452
453 config enum
454         option variable 'wireless.wifi-iface.eap_type'
455         option value 'TLS'
456
457 config enum
458         option variable 'wireless.wifi-iface.eap_type'
459         option value 'PEAP'
460
461 config variable
462         option name 'ca_cert'
463         option section 'wireless.wifi-iface'
464         option title 'Path to CA-Certificate'
465         list depends 'encryption=wpa,mode=sta'
466         list depends 'encryption=wpa2i,mode=sta'
467         option datatype file
468
469 config variable
470         option name 'priv_key'
471         option section 'wireless.wifi-iface'
472         option title 'Path to Private Key'
473         list depends 'mode=sta,encryption=wpa2i,eap_type=TLS'
474         list depends 'mode=sta,encryption=wpa,eap_type=TLS'
475         option datatype file
476
477
478 config variable
479         option name 'priv_key_pwd'
480         option section 'wireless.wifi-iface'
481         option title 'Password of Private Key'
482         list depends 'mode=sta,encryption=wpa2i,eap_type=TLS'
483         list depends 'mode=sta,encryption=wpa,eap_type=TLS'
484
485 config variable
486         option name 'auth'
487         option section 'wireless.wifi-iface'
488         option title 'PEAP-Authentication'
489         list depends 'mode=sta,encryption=wpa2i,eap_type=PEAP'
490         list depends 'mode=sta,encryption=wpa,eap_type=PEAP'
491
492 config variable
493         option name 'identity'
494         option section 'wireless.wifi-iface'
495         option title 'PEAP-Identity'
496         list depends 'mode=sta,encryption=wpa2i,eap_type=PEAP'
497         list depends 'mode=sta,encryption=wpa,eap_type=PEAP'
498
499 config variable
500         option name 'password'
501         option section 'wireless.wifi-iface'
502         option title 'PEAP-Password'
503         list depends 'mode=sta,encryption=wpa2i,eap_type=PEAP'
504         list depends 'mode=sta,encryption=wpa,eap_type=PEAP'