lib: add IWINFO_FREQ_FLAG_NAMES

The same as with the other defines/enums which allow consumers to
iterate over all known ones.

Signed-off-by: Andre Heider <a.heider@gmail.com>
This commit is contained in:
Andre Heider 2023-01-11 11:39:32 +01:00 committed by Christian Marangi
parent 81184d2763
commit 8ee7971c76
No known key found for this signature in database
GPG key ID: AC001D09ADBFEAD7
2 changed files with 14 additions and 0 deletions

View file

@ -153,6 +153,8 @@ enum iwinfo_freq_flag {
#define IWINFO_FREQ_NO_IR (1 << IWINFO_FREQ_NO_IR)
#define IWINFO_FREQ_INDOOR_ONLY (1 << IWINFO_FREQ_INDOOR_ONLY)
extern const char * const IWINFO_FREQ_FLAG_NAMES[IWINFO_FREQ_FLAG_COUNT];
enum iwinfo_opmode {
IWINFO_OPMODE_UNKNOWN = 0,

View file

@ -95,6 +95,18 @@ const char * const IWINFO_HTMODE_NAMES[IWINFO_HTMODE_COUNT] = {
"HE160"
};
const char * const IWINFO_FREQ_FLAG_NAMES[IWINFO_FREQ_FLAG_COUNT] = {
"NO_10MHZ",
"NO_20MHZ",
"NO_HT40+",
"NO_HT40-",
"NO_80MHZ",
"NO_160MHZ",
"NO_HE",
"NO_IR",
"INDOOR_ONLY",
};
const char * const ht_secondary_offset[4] = {
"no secondary",
"above",