libs/core: add txpower() and country() to luci.model.network.wifinet
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 13 Mar 2011 17:09:26 +0000 (17:09 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 13 Mar 2011 17:09:26 +0000 (17:09 +0000)
libs/core/luasrc/model/network.lua

index 0d3a759..128786d 100644 (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()