diff options
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 613319bfc3..63c23441e9 100644 --- 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) |