From 9f5a7c4f9b78cb2de8fe5dd7af55bf0221706402 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sun, 22 Mar 2020 01:01:26 +0100 Subject: 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 --- iwinfo_lib.c | 1 + 1 file changed, 1 insertion(+) 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" }; -- cgit v1.2.1