Browse Source

iwinfo: add missing HT modename for HT-None

Commit bf2c1069a7 ("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: bf2c1069a7 ("nl80211: add htmode to iwinfo_ops")

Signed-off-by: David Bauer <mail@david-bauer.net>
master
David Bauer 4 months ago
parent
commit
9f5a7c4f9b
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      iwinfo_lib.c

+ 1
- 0
iwinfo_lib.c View File

@@ -65,6 +65,7 @@ const char *IWINFO_HTMODE_NAMES[] = {
"VHT80",
"VHT80+80",
"VHT160",
"NOHT"
};




Loading…
Cancel
Save