lib: add IWINFO_FREQ_FLAG_NAMES
authorAndre Heider <a.heider@gmail.com>
Wed, 11 Jan 2023 10:39:32 +0000 (11:39 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 20 Jan 2023 16:26:59 +0000 (17:26 +0100)
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>
include/iwinfo.h
iwinfo_lib.c

index c76aab706d2071c9f7014b1b387cb95a7cff6e6c..b9a482ca45342f347105355369677be401bcc9ba 100644 (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,
index 9f787ac1d6adf97b815637a2907228a336b991c0..579efc4e8792921c3d94606635ea79967cb05b40 100644 (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",