Fixed a typo for broadcom maclist, Improved general maclist handling
[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
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 (atheros)'
87         option datatype uint
88         list depends type=atheros
89
90 config variable
91         option name 'rxantenna'
92         option section 'wireless.wifi-device'
93         option title 'Receiver Antenna (atheros)'
94         option datatype uint
95         list depends type=atheros
96
97 config variable
98         option name 'distance'
99         option section 'wireless.wifi-device'
100         option title 'Distance Optimization (atheros, broadcom)'
101         option description 'Distance to farthest network member in meters.'
102         option datatype uint
103         list depends type=atheros
104         list depends type=broadcom
105
106 config variable
107         option name 'macfilter'
108         option section 'wireless.wifi-device'
109         option title 'MAC-Address Filter (broadcom)'
110         option type enum
111         list depends type=broadcom
112
113 config enum
114         option variable 'wireless.wifi-device.macfilter'
115         option value 'deny'
116         option title 'Allow listed only'
117
118 config enum
119         option variable 'wireless.wifi-device.macfilter'
120         option value 'allow'
121         option title 'Allow all except listed'
122
123 config variable
124         option name 'maclist'
125         option section 'wireless.wifi-device'
126         option title 'MAC-List (broadcom)'
127         list depends 'type=broadcom, macfilter=allow'
128         list depends 'type=broadcom, macfilter=deny'
129         option type lazylist
130         option datatype macaddr
131
132 config variable
133         option name 'txant'
134         option section 'wireless.wifi-device'
135         option title 'Transmitter Antenna (broadcom)'
136         option datatype uint
137         list depends 'type=broadcom'
138
139 config variable
140         option name 'rxant'
141         option section 'wireless.wifi-device'
142         option title 'Receiver Antenna (broadcom)'
143         option datatype uint
144         list depends 'type=broadcom'
145
146 config variable
147         option name 'frameburst'
148         option section 'wireless.wifi-device'
149         option title 'Frame Bursting (broadcom)'
150         option datatype boolean
151         list depends 'type=broadcom'
152
153 config variable
154         option name 'country'
155         option section 'wireless.wifi-device'
156         option title 'Country Code (broadcom)'
157         list depends 'type=broadcom'
158
159 config variable
160         option name 'maxassoc'
161         option section 'wireless.wifi-device'
162         option title 'Connection Limit (broadcom)'
163         option datatype uint
164         list depends 'type=broadcom'
165
166
167 config section
168         option name 'wifi-iface'
169         option package 'wireless'
170         option title 'Interfaces'
171
172 config variable
173         option name 'ssid'
174         option section 'wireless.wifi-iface'
175         option title 'ESSID'
176
177 config variable
178         option name 'network'
179         option section 'wireless.wifi-iface'
180         option title 'Network'
181         option description 'Add the Wifi network to physical network'
182         option type reference
183         list valueof network.interface
184
185 config variable
186         option name 'mode'
187         option section 'wireless.wifi-iface'
188         option title 'Mode'
189         option required true
190         option type enum
191
192 config enum
193         option variable 'wireless.wifi-iface.mode'
194         option value 'ap'
195         option title 'Access Point'
196
197 config enum
198         option variable 'wireless.wifi-iface.mode'
199         option value 'adhoc'
200         option title 'Ad-Hoc'
201
202 config enum
203         option variable 'wireless.wifi-iface.mode'
204         option value 'sta'
205         option title 'Client'
206
207 config enum
208         option variable 'wireless.wifi-iface.mode'
209         option value 'monitor'
210         option title 'Monitor'
211
212 config enum
213         option variable 'wireless.wifi-iface.mode'
214         option value 'ahdemo'
215         option title 'Pseudo Ad-Hoc (ahdemo)'
216
217 config enum
218         option variable 'wireless.wifi-iface.mode'
219         option value 'wds'
220         option title 'WDS'
221
222 config variable
223         option name 'bssid'
224         option section 'wireless.wifi-iface'
225         option title BSSID
226
227 config variable
228         option name 'txpower'
229         option section 'wireless.wifi-iface'
230         option title 'Transmit Power (mac80211, atheros)'
231         option description 'dbm'
232         option datatype uint
233
234 config variable
235         option name 'frag'
236         option section 'wireless.wifi-iface'
237         option title 'Fragmentation Threshold (mac80211, atheros)'
238         option datatype uint
239
240 config variable
241         option name 'rts'
242         option section 'wireless.wifi-iface'
243         option title 'RTS/CTS Threshold (mac80211, atheros)'
244         option datatype uint
245
246 config variable
247         option name 'wds'
248         option section 'wireless.wifi-iface'
249         option title 'WDS (atheros)'
250         option datatype boolean
251         list depends 'mode=ap'
252         list depends 'mode=sta'
253
254 config variable
255         option name 'wdssep'
256         option section 'wireless.wifi-iface'
257         option title 'Separate WDS (atheros)'
258         option datatype boolean
259         list depends 'wds=1,mode=ap'
260
261 config variable
262         option name 'doth'
263         option section 'wireless.wifi-iface'
264         option title '802.11h (atheros)'
265         option datatype boolean
266
267 config variable
268         option name 'hidden'
269         option section 'wireless.wifi-iface'
270         option title 'Hide ESSID (atheros, broadcom)'
271         option datatype boolean
272         list depends 'mode=ap'
273         list depends 'mode=adhoc'
274         list depends 'mode=wds'
275
276 config variable
277         option name 'isolate'
278         option section 'wireless.wifi-iface'
279         option title 'isolate (atheros, broadcom)'
280         option datatype boolean
281         list depends 'mode=ap'
282
283 config variable
284         option name 'bgscan'
285         option section 'wireless.wifi-iface'
286         option title 'Background Scan (atheros)'
287         option datatype boolean
288
289 config variable
290         option name 'macpolicy'
291         option section 'wireless.wifi-iface'
292         option title 'MAC-Address Filter (atheros)'
293         option type enum
294
295 config enum
296         option variable 'wireless.wifi-iface.macpolicy'
297         option value 'deny'
298         option title 'Allow listed only'
299
300 config enum
301         option variable 'wireless.wifi-iface.macpolicy'
302         option value 'allow'
303         option title 'Allow all except listed'
304
305 config variable
306         option name 'maclist'
307         option section 'wireless.wifi-iface'
308         option title 'MAC-List (atheros)'
309         list depends 'macpolicy=allow'
310         list depends 'macpolicy=deny'
311         option type lazylist
312         option datatype macaddr
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'