d3256bcebb1c7f514db5b45b9bf3aa7782d89e44
[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 'macpolicy'
285         option section 'wireless.wifi-iface'
286         option title 'MAC-Address Filter (atheros)'
287         option type enum
288
289 config enum
290         option variable 'wireless.wifi-iface.macpolicy'
291         option value 'deny'
292         option title 'Allow listed only'
293
294 config enum
295         option variable 'wireless.wifi-iface.macpolicy'
296         option value 'allow'
297         option title 'Allow all except listed'
298
299 config variable
300         option name 'maclist'
301         option section 'wireless.wifi-iface'
302         option title 'MAC-List (atheros)'
303         list depends 'macpolicy=allow'
304         list depends 'macpolicy=deny'
305         option type lazylist
306         option datatype macaddr
307
308 config variable
309         option name 'rate'
310         option section 'wireless.wifi-iface'
311         option title 'Transmission Rate (atheros)'
312
313 config variable
314         option name 'mcast_rate'
315         option section 'wireless.wifi-iface'
316         option title 'Multicast Rate (atheros)'
317
318 config variable
319         option name 'minrate'
320         option section 'wireless.wifi-iface'
321         option title 'Minimum Rate (atheros)'
322
323 config variable
324         option name 'maxrate'
325         option section 'wireless.wifi-iface'
326         option title 'Maximum Rate (atheros)'
327
328 config variable
329         option name 'compression'
330         option section 'wireless.wifi-iface'
331         option title 'Compression (atheros)'
332         option datatype boolean
333
334 config variable
335         option name 'bursting'
336         option section 'wireless.wifi-iface'
337         option title 'Frame Bursting (atheros)'
338         option datatype boolean
339
340 config variable
341         option name 'turbo'
342         option section 'wireless.wifi-iface'
343         option title 'Turbo Mode (atheros)'
344         option datatype boolean
345
346 config variable
347         option name 'ff'
348         option section 'wireless.wifi-iface'
349         option title 'Fast Frames (atheros)'
350
351 config variable
352         option name 'wmm'
353         option section 'wireless.wifi-iface'
354         option title 'WMM Mode (atheros)'
355         option datatype boolean
356
357 config variable
358         option name 'xr'
359         option section 'wireless.wifi-iface'
360         option title 'XR Support (atheros)'
361         option datatype boolean
362
363 config variable
364         option name 'ar'
365         option section 'wireless.wifi-iface'
366         option title 'AR Support (atheros)'
367         option datatype boolean
368
369 config variable
370         option name 'encryption'
371         option section 'wireless.wifi-iface'
372         option title 'Encryption'
373         option description 'WPA-Encryption requires wpa_supplicant (for client mode) or hostapd (for AP and ad-hoc mode) to be installed.'
374         option type enum
375
376 config enum
377         option variable 'wireless.wifi-iface.encryption'
378         option value 'none'
379         option title 'No Encryption'
380
381 config enum
382         option variable 'wireless.wifi-iface.encryption'
383         option value 'wep'
384         option title 'WEP'
385
386 config enum
387         option variable 'wireless.wifi-iface.encryption'
388         option value 'psk'
389         option title 'WPA-PSK'
390
391 config enum
392         option variable 'wireless.wifi-iface.encryption'
393         option value 'psk2'
394         option title 'WPA2-PSK'
395
396 config enum
397         option variable 'wireless.wifi-iface.encryption'
398         option value 'wpa'
399         option title 'WPA-EAP'
400
401 config enum
402         option variable 'wireless.wifi-iface.encryption'
403         option value 'wpa2i'
404         option title 'WPA2-EAP'
405
406 config variable
407         option name 'server'
408         option section 'wireless.wifi-iface'
409         option title 'RadiusServer'
410         list depends 'encryption=wpa,mode=ap'
411         list depends 'encryption=wpa2i,mode=ap'
412         option datatype host
413
414 config variable
415         option name 'port'
416         option section 'wireless.wifi-iface'
417         option title 'Radius-Port'
418         list depends 'encryption=wpa,mode=ap'
419         list depends 'encryption=wpa2i,mode=ap'
420         option datatype port
421
422 config variable
423         option name 'key'
424         option section 'wireless.wifi-iface'
425         option title 'Key'
426         list depends 'encryption=wep'
427         list depends 'encryption=psk'
428         list depends 'encryption=wpa,mode=ap'
429         list depends 'encryption=psk2'
430         list depends 'encryption=wpa2i,mode=ap'
431
432 config variable
433         option name 'nasid'
434         option section 'wireless.wifi-iface'
435         option title 'NAS ID'
436         list depends 'encryption=wpa,mode=ap'
437         list depends 'encryption=wpa2i,mode=ap'
438
439 config variable
440         option name 'eap_type'
441         option section 'wireless.wifi-iface'
442         option title 'EAP-Method'
443         option type enum
444         list depends 'encryption=wpa,mode=sta'
445         list depends 'encryption=wpa2i,mode=sta'
446
447 config enum
448         option variable 'wireless.wifi-iface.eap_type'
449         option value 'TLS'
450
451 config enum
452         option variable 'wireless.wifi-iface.eap_type'
453         option value 'PEAP'
454
455 config variable
456         option name 'ca_cert'
457         option section 'wireless.wifi-iface'
458         option title 'Path to CA-Certificate'
459         list depends 'encryption=wpa,mode=sta'
460         list depends 'encryption=wpa2i,mode=sta'
461         option datatype file
462
463 config variable
464         option name 'priv_key'
465         option section 'wireless.wifi-iface'
466         option title 'Path to Private Key'
467         list depends 'mode=sta,encryption=wpa2i,eap_type=TLS'
468         list depends 'mode=sta,encryption=wpa,eap_type=TLS'
469         option datatype file
470
471
472 config variable
473         option name 'priv_key_pwd'
474         option section 'wireless.wifi-iface'
475         option title 'Password of Private Key'
476         list depends 'mode=sta,encryption=wpa2i,eap_type=TLS'
477         list depends 'mode=sta,encryption=wpa,eap_type=TLS'
478
479 config variable
480         option name 'auth'
481         option section 'wireless.wifi-iface'
482         option title 'PEAP-Authentication'
483         list depends 'mode=sta,encryption=wpa2i,eap_type=PEAP'
484         list depends 'mode=sta,encryption=wpa,eap_type=PEAP'
485
486 config variable
487         option name 'identity'
488         option section 'wireless.wifi-iface'
489         option title 'PEAP-Identity'
490         list depends 'mode=sta,encryption=wpa2i,eap_type=PEAP'
491         list depends 'mode=sta,encryption=wpa,eap_type=PEAP'
492
493 config variable
494         option name 'password'
495         option section 'wireless.wifi-iface'
496         option title 'PEAP-Password'
497         list depends 'mode=sta,encryption=wpa2i,eap_type=PEAP'
498         list depends 'mode=sta,encryption=wpa,eap_type=PEAP'