fix -Wreturn-type warning
[project/iwinfo.git] / iwinfo_lib.c
index 7a33a35a34e62a6c0a39d5ba2932153c73312d49..e91448498f3fbffc6819b469bb0677ca4a35a079 100644 (file)
@@ -31,12 +31,17 @@ const char *IWINFO_CIPHER_NAMES[] = {
        "WEP104",
        "AES-OCB",
        "CKIP",
+       "GCMP",
+       "CCMP-256",
+       "GCMP-256",
 };
 
 const char *IWINFO_KMGMT_NAMES[] = {
        "NONE",
        "802.1X",
        "PSK",
+       "SAE",
+       "OWE",
 };
 
 const char *IWINFO_AUTH_NAMES[] = {
@@ -65,9 +70,32 @@ const char *IWINFO_HTMODE_NAMES[] = {
        "VHT80",
        "VHT80+80",
        "VHT160",
-       "NOHT"
+       "NOHT",
+       "HE20",
+       "HE40",
+       "HE80",
+       "HE80+80",
+       "HE160"
 };
 
+const char * const ht_secondary_offset[4] = {
+       "no secondary",
+       "above",
+       "[reserved!]",
+       "below",
+};
+
+const uint16_t ht_chan_width[2] = {
+       20,
+       2040,
+};
+
+const uint16_t vht_chan_width[4] = {
+       40, /* 40 MHz or lower (refer to ht to a more precise width) */
+       80, /* 80 MHz */
+       160, /* 160 MHz */
+       8080, /* 80+80 MHz */
+};
 
 /*
  * ISO3166 country labels
@@ -334,7 +362,9 @@ static const struct iwinfo_ops *backends[] = {
 #ifdef USE_WL
        &wl_ops,
 #endif
+#ifdef USE_WEXT
        &wext_ops,
+#endif
 };
 
 const char * iwinfo_type(const char *ifname)