summaryrefslogtreecommitdiffhomepage
path: root/libs/iwinfo
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-11-23 08:11:46 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-11-23 08:11:46 +0000
commit945f8910c1158195f8655858df1ce393ffa630d7 (patch)
treeccdf8ce47b43838bfffa4b5a1148b6be1f81a3d0 /libs/iwinfo
parent5a2e23318e8daddeb251c546c47c485b0abcbb9f (diff)
libs/iwinfo: add freqlist() to dummy backend
Diffstat (limited to 'libs/iwinfo')
-rw-r--r--libs/iwinfo/src/dummy.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/libs/iwinfo/src/dummy.lua b/libs/iwinfo/src/dummy.lua
index 290d0773b..b2a3c1aa7 100644
--- a/libs/iwinfo/src/dummy.lua
+++ b/libs/iwinfo/src/dummy.lua
@@ -70,6 +70,22 @@ function dummy.txpwrlist()
}
end
+function dummy.freqlist()
+ return {
+ {channel = 1, mhz = 2412},
+ {channel = 2, mhz = 2417},
+ {channel = 3, mhz = 2422},
+ {channel = 4, mhz = 2427},
+ {channel = 5, mhz = 2432},
+ {channel = 6, mhz = 2437},
+ {channel = 7, mhz = 2442},
+ {channel = 8, mhz = 2447},
+ {channel = 9, mhz = 2452},
+ {channel = 10, mhz = 2457},
+ {channel = 11, mhz = 2462}
+ }
+end
+
function dummy.scanlist()
return {
{ quality = 23, quality_max = 70, signal = -60,