summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-18 08:43:48 +0000
committerSteven Barth <steven@midlink.org>2008-08-18 08:43:48 +0000
commit03a6ee9ef0c1d3b08d787639cfdde637d2011389 (patch)
tree08d56ce0db3ae914683b0dcab31f9e49563aa81f /modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
parentec796fc52af126ba66164199f4ce1c8ac80a2132 (diff)
Small bugfixes and improvements
Diffstat (limited to 'modules/admin-mini/luasrc/model/cbi/mini/wifi.lua')
-rw-r--r--modules/admin-mini/luasrc/model/cbi/mini/wifi.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
index 3abceba59a..c293175b6f 100644
--- a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
+++ b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
@@ -60,7 +60,8 @@ end
protocol = s:option(DummyValue, "_mode", translate("protocol"))
function protocol.cfgvalue(self, section)
- return "802." .. wireless[self.map:get(section, "device")].mode
+ local mode = wireless[self.map:get(section, "device")].mode
+ return mode and "802." .. mode
end
mode = s:option(DummyValue, "mode", translate("mode"))