a_w_apisolation = "AP-Isolation"
a_w_apisolation1 = "Prevents Client to Client communication"
a_w_hideessid = "Hide ESSID"
+a_w_ap = "Access Point"
+a_w_adhoc = "Ad-Hoc"
+a_w_client = "Client"
+a_w_wds = "WDS"
dhcp_desc = "Dnsmasq is a combined DHCP-Server and DNS-Forwarder for NAT firewalls"
dhcp_dnsmasq_domainneeded = "Domain required"
a_n_r_netmask1 = "if target is a network"
m_n_local = "Local Network"
-m_n_inet = "Internet Connection"
\ No newline at end of file
+m_n_inet = "Internet Connection"
+m_n_route = "Route"
+m_n_brdige = "Bridge"
+
+m_w_ap = "Provide (Access Point)"
+m_w_adhoc = "Independent (Ad-Hoc)"
+m_w_client = "Join (Client)"
+m_w_wds = "Distributed (WDS)"
+m_w_clientmode = "Clientmode"
\ No newline at end of file
mehreren Netzwerken gleichzeitig auf einem Gerät.]]
a_w_wifi3 = [[Es werden Managed, Client, Ad-Hoc und WDS-Modus unterstützt sowie WPA und WPA2-Verschlüsselung zur gesicherten
Kommunikation.]]
+a_w_ap = "Access Point"
+a_w_adhoc = "Ad-Hoc"
+a_w_client = "Client"
+a_w_wds = "WDS"
accept = [[Annehmen]]
aliases = [[Aliasse]]
bitrate = [[Bitrate]]
uci_reverted = [[Die folgenden Änderungen wurden verworfen]]
m_n_local = "Lokales Netz"
-m_n_inet = "Internetverbindung"
\ No newline at end of file
+m_n_inet = "Internetverbindung"
+m_n_route = "Weiterleiten"
+m_n_bridge = "Überbrücken"
+
+m_w_ap = "Anbieten (Access Point)"
+m_w_adhoc = "Unabhängig (Ad-Hoc)"
+m_w_client = "Einklinken (Client)"
+m_w_wds = "Verteilen (WDS)"
+m_w_clientmode = "Verbindungsmodus"
\ No newline at end of file
end)
mode = s:option(ListValue, "mode", translate("mode"))
-mode:value("ap", "Access Point")
-mode:value("adhoc", "Ad-Hoc")
-mode:value("sta", "Client")
-mode:value("wds", "WDS")
+mode:value("ap", translate("a_w_ap"))
+mode:value("adhoc", translate("a_w_adhoc"))
+mode:value("sta", translate("a_w_client"))
+mode:value("wds", translate("a_w_wds"))
s:option(Value, "bssid", "BSSID").optional = true
end
mode = s:option(ListValue, "mode", translate("mode"))
-mode:value("ap", "Access Point")
-mode:value("adhoc", "Ad-Hoc")
-mode:value("sta", "Client")
+mode:value("ap", translate("m_w_ap"))
+mode:value("adhoc", translate("m_w_adhoc"))
+mode:value("sta", translate("m_w_client"))
function mode.write(self, section, value)
if value == "sta" then
+ -- ToDo: Move this away
+ if not luci.model.uci.get("network", "wan") then
+ luci.model.uci.set("network", "wan", "interface")
+ luci.model.uci.set("network", "wan", "proto", "none")
+ end
+
luci.model.uci.set("network", "wan", "type", "bridge")
- luci.model.uci.set("wireless", section, "network", "wan")
+ luci.model.uci.save("network")
+
+ self.map:set(section, "network", "wan")
else
- luci.model.uci.delete("network", "wan", "type")
- luci.model.uci.set("wireless", section, "network", "lan")
+ self.map:set(section, "network", "lan")
end
- luci.model.uci.save("network")
+
return ListValue.write(self, section, value)
end