diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-03-13 17:09:26 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-03-13 17:09:26 +0000 |
commit | 986d8b00a22f6616fd9cb0279ddb75f9acbbee47 (patch) | |
tree | 092750bfa5c12faba9fe09969568c81bf78774a2 /libs | |
parent | 18677e216b26acc148387c5414756a5b94c8a17c (diff) |
libs/core: add txpower() and country() to luci.model.network.wifinet
Diffstat (limited to 'libs')
-rw-r--r-- | libs/core/luasrc/model/network.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/core/luasrc/model/network.lua b/libs/core/luasrc/model/network.lua index 0d3a75939..128786df9 100644 --- a/libs/core/luasrc/model/network.lua +++ b/libs/core/luasrc/model/network.lua @@ -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() |