iwinfo: add missing HT modename for HT-None
authorDavid Bauer <mail@david-bauer.net>
Sun, 22 Mar 2020 00:01:26 +0000 (01:01 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sun, 22 Mar 2020 00:13:45 +0000 (01:13 +0100)
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>
iwinfo_lib.c

index fa9bb9f14f4c0177472c850c79e48ed0f62a889d..7a33a35a34e62a6c0a39d5ba2932153c73312d49 100644 (file)
@@ -65,6 +65,7 @@ const char *IWINFO_HTMODE_NAMES[] = {
        "VHT80",
        "VHT80+80",
        "VHT160",
+       "NOHT"
 };