diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-09 17:55:24 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-09 17:55:24 +0000 |
commit | 64600a27ee42298c44867e9af67ac69797e7b5e1 (patch) | |
tree | 0029e6a8fb1a43a882d5fc0a7bdcd30ed25a5c64 /libs/luanet/src/test.lua | |
parent | 011a89028cb83544d2224359f5a20543cf39e4d0 (diff) |
libs/luanet: add wifi channel enumeration
Diffstat (limited to 'libs/luanet/src/test.lua')
-rwxr-xr-x | libs/luanet/src/test.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/luanet/src/test.lua b/libs/luanet/src/test.lua index 713836b55a..23429aea9b 100755 --- a/libs/luanet/src/test.lua +++ b/libs/luanet/src/test.lua @@ -93,6 +93,15 @@ if scan then end end end +local freq = luanet.iwc_frequencies("wlan0") +print("\nfrequencies on wlan0") +if freq then + for _,f in ipairs(freq) do + print(" channel -> "..f[1]) + print(" frequency -> "..f[2]) + print("") + end +end print("\n\n---vlan---\n") |