diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-10 13:33:00 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-10 13:33:00 +0000 |
commit | 9d1cfdd35993fae618cdfe3b7a8d88b362d74cdd (patch) | |
tree | 22744d678f2a46fa522f25f97b91f8574aa5325f /libs/iwinfo/src/dummy.lua | |
parent | fdef7c57b1ad8955add04fbfb4505d488f51d46d (diff) |
libs/iwinfo: add dummy module for the sdk, use dummy on Darwin
Diffstat (limited to 'libs/iwinfo/src/dummy.lua')
-rw-r--r-- | libs/iwinfo/src/dummy.lua | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/libs/iwinfo/src/dummy.lua b/libs/iwinfo/src/dummy.lua new file mode 100644 index 000000000..519989357 --- /dev/null +++ b/libs/iwinfo/src/dummy.lua @@ -0,0 +1,55 @@ +module "iwinfo" + +function type() + return "dummy" +end + +dummy = {} + +function dummy.channel() + return 1 +end + +function dummy.frequency() + return 2412 +end + +function dummy.bitrate() + return 36 +end + +function dummy.signal() + return -53 +end + +function dummy.noise() + return -96 +end + +function dummy.quality() + return 11 +end + +function dummy.quality_max() + return 70 +end + +function dummy.mode() + return "Master" +end + +function dummy.ssid() + return "OpenWrt" +end + +function dummy.bssid() + return "00:11:22:33:44:55" +end + +function dummy.enctype() + return "WPA2 PSK (CCMP)" +end + +function dummy.assoclist() + return {} +end |