summaryrefslogtreecommitdiff
path: root/iwinfo_lib.c
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2022-11-21 10:11:13 +0100
committerJo-Philipp Wich <jo@mein.io>2022-12-15 23:52:27 +0100
commita5b30de2b8d06caa4d20d4e7af73099bd0b4baae (patch)
tree8aa5b819addab9963defc45dab13cf11cafa2a8c /iwinfo_lib.c
parent9f29e79eea45a266ca29f158c4dfe35485f0eac7 (diff)
downloadiwinfo-a5b30de2b8d06caa4d20d4e7af73099bd0b4baae.tar.gz
lib: add IWINFO_OPMODE_COUNT and use it for IWINFO_OPMODE_NAMES
Match the other string arrays, which allows us to consistently loop over them. Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'iwinfo_lib.c')
-rw-r--r--iwinfo_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iwinfo_lib.c b/iwinfo_lib.c
index 93d4b25..353ecb8 100644
--- a/iwinfo_lib.c
+++ b/iwinfo_lib.c
@@ -49,7 +49,7 @@ const char * const IWINFO_AUTH_NAMES[IWINFO_AUTH_COUNT] = {
"SHARED",
};
-const char * const IWINFO_OPMODE_NAMES[] = {
+const char * const IWINFO_OPMODE_NAMES[IWINFO_OPMODE_COUNT] = {
"Unknown",
"Master",
"Ad-Hoc",