* Rewrote ffluci.http, ffluci.model.uci
[project/luci.git] / module / admin-core / src / model / cbi / admin_wifi / networks.lua
index feb2c747144eea35a817bd130f19371319a3032d..4a7ad12f6dc68f5a62815fcb3762b644160e3ab2 100644 (file)
@@ -11,7 +11,7 @@ s.anonymous = true
 s:option(Value, "ssid", "Netzkennung (ESSID)").maxlength = 32
 
 device = s:option(ListValue, "device", "Gerät")
-local d = ffluci.model.uci.show("wireless").wireless
+local d = ffluci.model.uci.sections("wireless")
 if d then
        for k, v in pairs(d) do
                if v[".type"] == "wifi-device" then
@@ -22,7 +22,7 @@ end
 
 network = s:option(ListValue, "network", "Netzwerk", "WLAN-Netz zu Netzwerk hinzufügen")
 network:value("")
-for k, v in pairs(ffluci.model.uci.show("network").network) do
+for k, v in pairs(ffluci.model.uci.sections("network")) do
        if v[".type"] == "interface" and k ~= "loopback" then
                network:value(k)
        end