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