projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18677e2
)
libs/core: add txpower() and country() to luci.model.network.wifinet
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 13 Mar 2011 17:09:26 +0000
(17:09 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 13 Mar 2011 17:09:26 +0000
(17:09 +0000)
libs/core/luasrc/model/network.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/model/network.lua
b/libs/core/luasrc/model/network.lua
index 0d3a75939d2a2582d8b6786d8ddaf7cfbdc447de..128786df98a4d3cf24f9fb3ad498dac336d0c631 100644
(file)
--- 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()