From: Jo-Philipp Wich Date: Mon, 23 Nov 2009 08:11:46 +0000 (+0000) Subject: libs/iwinfo: add freqlist() to dummy backend X-Git-Tag: 0.10.0~927 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=945f8910c1158195f8655858df1ce393ffa630d7;p=oweals%2Fluci.git libs/iwinfo: add freqlist() to dummy backend --- 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,