libs/core: add txpower() and country() to luci.model.network.wifinet

This commit is contained in:
Jo-Philipp Wich 2011-03-13 17:09:26 +00:00
parent 18677e216b
commit 986d8b00a2

View file

@ -1204,6 +1204,14 @@ function wifinet.noise(self)
return self.iwinfo.noise or 0
end
function wifinet.country(self)
return self.iwinfo.country or "00"
end
function wifinet.txpower(self)
return self.iwinfo.txpower or 0
end
function wifinet.signal_level(self, s, n)
if self:active_bssid() ~= "00:00:00:00:00:00" then
local signal = s or self:signal()