libs/iwinfo: add freqlist() to dummy backend
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 23 Nov 2009 08:11:46 +0000 (08:11 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 23 Nov 2009 08:11:46 +0000 (08:11 +0000)
libs/iwinfo/src/dummy.lua

index 290d0773beb6be8175681bc336e48dd027c15d83..b2a3c1aa728563f090017b291dfc683c3b87c588 100644 (file)
@@ -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,