1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
-- ToDo: Translate, Add descriptions and help texts
m = Map("wireless", "Geräte")
s = m:section(TypedSection, "wifi-device")
--s.addremove = true
en = s:option(Flag, "disabled", "Aktivieren")
en.enabled = "0"
en.disabled = "1"
t = s:option(ListValue, "type", "Typ")
t:value("broadcom")
t:value("atheros")
t:value("mac80211")
t:value("prism2")
--[[
require("ffluci.sys")
local c = ". /etc/functions.sh;for i in /lib/wifi/*;do . $i;done;echo $DRIVERS"
for driver in ffluci.sys.execl(c)[1]:gmatch("[^ ]+") do
t:value(driver)
end
]]--
mode = s:option(ListValue, "mode", "Modus")
mode:value("", "standard")
mode:value("11b", "802.11b")
mode:value("11g", "802.11g")
mode:value("11a", "802.11a")
mode:value("11bg", "802.11b+g")
mode.rmempty = true
s:option(Value, "channel", "Funkkanal")
s:option(Value, "txantenna", "Sendeantenne").rmempty = true
s:option(Value, "rxantenna", "Empfangsantenne").rmempty = true
s:option(Value, "distance", "Distanz",
"Distanz zum am weitesten entfernten Funkpartner (m)").rmempty = true
s:option(Value, "diversity", "Diversität"):depends("type", "atheros")
country = s:option(Value, "country", "Ländercode")
country.optional = true
country:depends("type", "broadcom")
maxassoc = s:option(Value, "maxassoc", "Verbindungslimit")
maxassoc:depends("type", "broadcom")
maxassoc.optional = true
return m
|