projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4c7d9b
)
* Fixed a bug in Wifi when no wifi interfaces are available
author
Steven Barth
<steven@midlink.org>
Thu, 3 Apr 2008 09:16:38 +0000
(09:16 +0000)
committer
Steven Barth
<steven@midlink.org>
Thu, 3 Apr 2008 09:16:38 +0000
(09:16 +0000)
src/ffluci/model/cbi/admin_wifi/networks.lua
patch
|
blob
|
history
diff --git
a/src/ffluci/model/cbi/admin_wifi/networks.lua
b/src/ffluci/model/cbi/admin_wifi/networks.lua
index ebc25715e2811dc23f91b427e398020ce911905b..c7a1b407d49e01796de8537337dd1754e7bd82e0 100644
(file)
--- a/
src/ffluci/model/cbi/admin_wifi/networks.lua
+++ b/
src/ffluci/model/cbi/admin_wifi/networks.lua
@@
-8,9
+8,12
@@
s.anonymous = true
s:option(Value, "ssid", "Netzkennung (ESSID)").maxlength = 32
device = s:option(ListValue, "device", "Gerät")
-for k, v in pairs(ffluci.model.uci.show("wireless").wireless) do
- if v[".type"] == "wifi-device" then
- device:value(k)
+local d = ffluci.model.uci.show("wireless").wireless
+if d then
+ for k, v in pairs(d) do
+ if v[".type"] == "wifi-device" then
+ device:value(k)
+ end
end
end