1 -- ToDo: Translate, Add descriptions and help texts
2 m = Map("wireless", translate("devices", "Geräte"), translate("a_w_devices1",
3 "An dieser Stelle können eingebaute WLAN-Geräte konfiguriert werden."))
5 s = m:section(TypedSection, "wifi-device", "")
8 en = s:option(Flag, "disabled", translate("enable", "Aktivieren"))
12 t = s:option(ListValue, "type", translate("type", "Typ"))
19 local c = ". /etc/functions.sh;for i in /lib/wifi/*;do . $i;done;echo $DRIVERS"
20 for driver in luci.sys.execl(c)[1]:gmatch("[^ ]+") do
25 mode = s:option(ListValue, "mode", translate("mode", "Modus"))
26 mode:value("", "standard")
27 mode:value("11b", "802.11b")
28 mode:value("11g", "802.11g")
29 mode:value("11a", "802.11a")
30 mode:value("11bg", "802.11b+g")
33 s:option(Value, "channel", translate("a_w_channel", "Funkkanal"))
35 s:option(Value, "txantenna", translate("a_w_txantenna", "Sendeantenne")).rmempty = true
37 s:option(Value, "rxantenna", translate("a_w_rxantenna", "Empfangsantenne")).rmempty = true
39 s:option(Value, "distance", translate("distance", "Distanz"),
40 translate("a_w_distance1", "Distanz zum am weitesten entfernten Funkpartner (m)")).rmempty = true
42 s:option(Value, "diversity", translate("a_w_diversity", "Diversität")):depends("type", "atheros")
44 country = s:option(Value, "country", translate("a_w_countrycode", "Ländercode"))
45 country.optional = true
46 country:depends("type", "broadcom")
48 maxassoc = s:option(Value, "maxassoc", translate("a_w_connlimit", "Verbindungslimit"))
49 maxassoc:depends("type", "broadcom")
50 maxassoc.optional = true