summaryrefslogtreecommitdiff
path: root/iwinfo_lua.c
diff options
context:
space:
mode:
authorRobert Marko <robimarko@gmail.com>2019-03-13 19:19:19 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2019-03-21 16:28:39 +0100
commita8e827592338d7f10d93b4b93d04f367221465c2 (patch)
tree44bd51c1eecb423ff37c851b5c4ee13121b4b391 /iwinfo_lua.c
parentce1814baecca16fc3ba796de7bf9d06dce1f9a02 (diff)
downloadiwinfo-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_lua.c')
-rw-r--r--iwinfo_lua.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/iwinfo_lua.c b/iwinfo_lua.c
index eebab8e..bb43438 100644
--- a/iwinfo_lua.c
+++ b/iwinfo_lua.c
@@ -518,6 +518,9 @@ static int iwinfo_L_hwmodelist(lua_State *L, int (*func)(const char *, int *))
lua_pushboolean(L, hwmodes & IWINFO_80211_AC);
lua_setfield(L, -2, "ac");
+ lua_pushboolean(L, hwmodes & IWINFO_80211_AD);
+ lua_setfield(L, -2, "ad");
+
return 1;
}