diff options
author | Robert Marko <robimarko@gmail.com> | 2019-03-13 19:19:19 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2019-03-21 16:28:39 +0100 |
commit | a8e827592338d7f10d93b4b93d04f367221465c2 (patch) | |
tree | 44bd51c1eecb423ff37c851b5c4ee13121b4b391 /iwinfo_cli.c | |
parent | ce1814baecca16fc3ba796de7bf9d06dce1f9a02 (diff) | |
download | iwinfo-a8e827592338d7f10d93b4b93d04f367221465c2.tar.gz |
iwinfo: Add support for 802.11ad
This patch adds support for identifying, calculating channels from
frequency and vice versa as well as Lua hwmode for 802.11ad.
Support has been added for channels 1-6.
Signed-off-by: Robert Marko <robimarko@gmail.com>
[Increase buffer size for hwmodes]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'iwinfo_cli.c')
-rw-r--r-- | iwinfo_cli.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/iwinfo_cli.c b/iwinfo_cli.c index 49c9035..dba7529 100644 --- a/iwinfo_cli.c +++ b/iwinfo_cli.c @@ -263,17 +263,18 @@ static char * format_encryption(struct iwinfo_crypto_entry *c) static char * format_hwmodes(int modes) { - static char buf[12]; + static char buf[15]; if (modes <= 0) snprintf(buf, sizeof(buf), "unknown"); else - snprintf(buf, sizeof(buf), "802.11%s%s%s%s%s", + snprintf(buf, sizeof(buf), "802.11%s%s%s%s%s%s", (modes & IWINFO_80211_A) ? "a" : "", (modes & IWINFO_80211_B) ? "b" : "", (modes & IWINFO_80211_G) ? "g" : "", (modes & IWINFO_80211_N) ? "n" : "", - (modes & IWINFO_80211_AC) ? "ac" : ""); + (modes & IWINFO_80211_AC) ? "ac" : "", + (modes & IWINFO_80211_AD) ? "ad" : ""); return buf; } |