git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
64b6f98
)
modules/admin-full: prevent crash in wifi model if no tx power list is available
author
Jo-Philipp Wich
<redacted>
Sat, 26 Sep 2009 18:53:01 +0000
(18:53 +0000)
committer
Jo-Philipp Wich
<redacted>
Sat, 26 Sep 2009 18:53:01 +0000
(18:53 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
patch
|
blob
|
history
diff --git
a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
index 613319bfc383429f641ffd08165251bd982277d8..63c23441e93eae8372ac8f00c752ec0d8dd6d3e5 100644
(file)
--- a/
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@
-25,8
+25,8
@@
local tx_powers = nil
m.uci:foreach("wireless", "wifi-iface",
function(s)
- if s.device == arg[1] and
s.ifname and
not iw then
- iw = luci.sys.wifi.getiwinfo(s.ifname)
+ if s.device == arg[1] and not iw then
+ iw = luci.sys.wifi.getiwinfo(s.ifname
or s.device
)
tx_powers = iw.txpwrlist or { }
end
end)
git clone https://git.99rst.org/PROJECT