summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/iwinfo/src/iwinfo.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-23 01:37:05 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-23 01:37:05 +0000
commit50bd4a979be2f56e9872f3a4dcd3c17fc4334957 (patch)
tree34355eb9f505dafe186d2ad26858ce7ace544ac8 /contrib/package/iwinfo/src/iwinfo.lua
parentb64f2d60797392dba7ce62b7a435643295062143 (diff)
libiwinfo: probe for vap availability in mbssid_support(), fix return type, fix description string for no crypto
Diffstat (limited to 'contrib/package/iwinfo/src/iwinfo.lua')
-rwxr-xr-xcontrib/package/iwinfo/src/iwinfo.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/package/iwinfo/src/iwinfo.lua b/contrib/package/iwinfo/src/iwinfo.lua
index 1de43faafe..4a982dd994 100755
--- a/contrib/package/iwinfo/src/iwinfo.lua
+++ b/contrib/package/iwinfo/src/iwinfo.lua
@@ -62,7 +62,10 @@ function print_info(api, dev)
n(iw.bitrate(dev)) / 1000)
printf(" Encryption: %s",
- s(enc and enc.description))
+ s(enc and enc.description or "None"))
+
+ printf(" Supports VAPs: %s",
+ iw.mbssid_support(dev) and "yes" or "no")
print("")
end
@@ -85,7 +88,7 @@ function print_scan(api, dev)
s(se.signal), n(se.quality), n(se.quality_max))
printf(" Encryption: %s",
- s(se.encryption.description))
+ s(se.encryption.description or "None"))
print("")
end