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:
parent
f36b72b00d
commit
8f86dd69f7
1 changed files with 1 additions and 1 deletions
|
@ -814,7 +814,7 @@ static void print_htmodelist(const struct iwinfo_ops *iw, const char *ifname)
|
|||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(IWINFO_HTMODE_NAMES); i++)
|
||||
for (i = 0; i < IWINFO_HTMODE_COUNT; i++)
|
||||
if (htmodes & (1 << i))
|
||||
printf("%s ", IWINFO_HTMODE_NAMES[i]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue