summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2020-03-22 01:01:26 +0100
committerDavid Bauer <mail@david-bauer.net>2020-03-22 01:13:45 +0100
commit9f5a7c4f9b78cb2de8fe5dd7af55bf0221706402 (patch)
tree4e691cf9d034b74bd2f44d6068a5d2d69402fb53
parent06a03c9e3b32a409e8307b1abde2cfd7dd969b6d (diff)
downloadiwinfo-9f5a7c4f9b78cb2de8fe5dd7af55bf0221706402.tar.gz
iwinfo: add missing HT modename for HT-None
Commit bf2c1069a7f1 ("nl80211: add htmode to iwinfo_ops") increased IWINFO_HTMODE_COUNT but left the size of the IWINFO_HTMODE_NAMES array untouched, leading to a segmentation fault when trying to get the HT modelist from Lua. Add a dummy NOHT modestring to make the array size fit the size declaration. Fixes: bf2c1069a7f1 ("nl80211: add htmode to iwinfo_ops") Signed-off-by: David Bauer <mail@david-bauer.net>
-rw-r--r--iwinfo_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iwinfo_lib.c b/iwinfo_lib.c
index fa9bb9f..7a33a35 100644
--- a/iwinfo_lib.c
+++ b/iwinfo_lib.c
@@ -65,6 +65,7 @@ const char *IWINFO_HTMODE_NAMES[] = {
"VHT80",
"VHT80+80",
"VHT160",
+ "NOHT"
};