lib: add IWINFO_OPMODE_COUNT and use it for IWINFO_OPMODE_NAMES
authorAndre Heider <a.heider@gmail.com>
Mon, 21 Nov 2022 09:11:13 +0000 (10:11 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 15 Dec 2022 22:52:27 +0000 (23:52 +0100)
commita5b30de2b8d06caa4d20d4e7af73099bd0b4baae
tree8aa5b819addab9963defc45dab13cf11cafa2a8c
parent9f29e79eea45a266ca29f158c4dfe35485f0eac7
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>
include/iwinfo.h
iwinfo_lib.c