cli: use IWINFO_HTMODE_COUNT

ARRAY_SIZE works too, but just the sake of consistency.

Signed-off-by: Andre Heider <a.heider@gmail.com>
This commit is contained in:
Andre Heider 2022-11-21 10:58:14 +01:00 committed by Jo-Philipp Wich
parent f36b72b00d
commit 8f86dd69f7

View file

@ -814,7 +814,7 @@ static void print_htmodelist(const struct iwinfo_ops *iw, const char *ifname)
return; return;
} }
for (i = 0; i < ARRAY_SIZE(IWINFO_HTMODE_NAMES); i++) for (i = 0; i < IWINFO_HTMODE_COUNT; i++)
if (htmodes & (1 << i)) if (htmodes & (1 << i))
printf("%s ", IWINFO_HTMODE_NAMES[i]); printf("%s ", IWINFO_HTMODE_NAMES[i]);