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