libs/core: expose txpower offset values in network model
This commit is contained in:
parent
c47e0596dd
commit
fd130ead81
1 changed files with 6 additions and 1 deletions
|
@ -1360,7 +1360,12 @@ function wifinet.country(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
function wifinet.txpower(self)
|
function wifinet.txpower(self)
|
||||||
return self.iwinfo.txpower or 0
|
local pwr = (self.iwinfo.txpower or 0)
|
||||||
|
return pwr + self:txpower_offset()
|
||||||
|
end
|
||||||
|
|
||||||
|
function wifinet.txpower_offset(self)
|
||||||
|
return self.iwinfo.txpower_offset or 0
|
||||||
end
|
end
|
||||||
|
|
||||||
function wifinet.signal_level(self, s, n)
|
function wifinet.signal_level(self, s, n)
|
||||||
|
|
Loading…
Reference in a new issue