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_lua.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_lua.c')
-rw-r--r-- | iwinfo_lua.c | 3 |
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; } |