libs/iwinfo: add dummy.txpwrlist()
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 19 Aug 2009 15:40:58 +0000 (15:40 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 19 Aug 2009 15:40:58 +0000 (15:40 +0000)
libs/iwinfo/src/dummy.lua

index 4e47f18..9c81748 100644 (file)
@@ -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