diff --git a/src/utils/common.h b/src/utils/common.h index 399ab7963..ba08cf4d1 100644 --- a/src/utils/common.h +++ b/src/utils/common.h @@ -518,6 +518,8 @@ int freq_range_list_includes(const struct wpa_freq_range_list *list, unsigned int freq); char * freq_range_list_str(const struct wpa_freq_range_list *list); +#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) + /* * gcc 4.4 ends up generating strict-aliasing warnings about some very common