* Fixed a bug in Wifi when no wifi interfaces are available
This commit is contained in:
parent
e4c7d9b596
commit
7815fbedcd
1 changed files with 6 additions and 3 deletions
|
@ -8,10 +8,13 @@ s.anonymous = true
|
||||||
s:option(Value, "ssid", "Netzkennung (ESSID)").maxlength = 32
|
s:option(Value, "ssid", "Netzkennung (ESSID)").maxlength = 32
|
||||||
|
|
||||||
device = s:option(ListValue, "device", "Gerät")
|
device = s:option(ListValue, "device", "Gerät")
|
||||||
for k, v in pairs(ffluci.model.uci.show("wireless").wireless) do
|
local d = ffluci.model.uci.show("wireless").wireless
|
||||||
|
if d then
|
||||||
|
for k, v in pairs(d) do
|
||||||
if v[".type"] == "wifi-device" then
|
if v[".type"] == "wifi-device" then
|
||||||
device:value(k)
|
device:value(k)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
network = s:option(ListValue, "network", "Netzwerk")
|
network = s:option(ListValue, "network", "Netzwerk")
|
||||||
|
|
Loading…
Reference in a new issue