From: Jo-Philipp Wich Date: Wed, 19 Aug 2009 15:40:58 +0000 (+0000) Subject: libs/iwinfo: add dummy.txpwrlist() X-Git-Tag: 0.10.0~1171 X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=7f6538004335d2a09180817a88bd61745d59732a;p=project%2Fluci.git libs/iwinfo: add dummy.txpwrlist() --- diff --git a/libs/iwinfo/src/dummy.lua b/libs/iwinfo/src/dummy.lua index 4e47f1834..9c8174881 100644 --- a/libs/iwinfo/src/dummy.lua +++ b/libs/iwinfo/src/dummy.lua @@ -54,6 +54,19 @@ function dummy.assoclist() return {} end +function dummy.txpwrlist() + return { + { dbm = 0, mw = 1 }, + { dbm = 6, mw = 3 }, + { dbm = 8, mw = 6 }, + { dbm = 10, mw = 10 }, + { dbm = 12, mw = 15 }, + { dbm = 14, mw = 25 }, + { dbm = 16, mw = 39 }, + { dbm = 18, mw = 63 } + } +end + function dummy.mbssid_support() return 1 end