From a5b30de2b8d06caa4d20d4e7af73099bd0b4baae Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Mon, 21 Nov 2022 10:11:13 +0100 Subject: 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 --- include/iwinfo.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/iwinfo.h b/include/iwinfo.h index 90e5906..71fadab 100644 --- a/include/iwinfo.h +++ b/include/iwinfo.h @@ -84,9 +84,11 @@ enum iwinfo_opmode { IWINFO_OPMODE_MESHPOINT = 7, IWINFO_OPMODE_P2P_CLIENT = 8, IWINFO_OPMODE_P2P_GO = 9, + + IWINFO_OPMODE_COUNT = 10, }; -extern const char * const IWINFO_OPMODE_NAMES[]; +extern const char * const IWINFO_OPMODE_NAMES[IWINFO_OPMODE_COUNT]; enum iwinfo_htmode { -- cgit v1.2.1