summaryrefslogtreecommitdiff
path: root/iwinfo_lib.c
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2022-11-23 14:11:58 +0100
committerJo-Philipp Wich <jo@mein.io>2022-12-15 20:07:49 +0100
commit462b6797161ead37dfcc85995d8286f9c4d5eb18 (patch)
tree9f8956e9a57bfc55bd70e0b514e5cdc9ff33277d /iwinfo_lib.c
parentccaabb4ea4b11382bffd9fb05558c390c1eb70c4 (diff)
downloadiwinfo-462b6797161ead37dfcc85995d8286f9c4d5eb18.tar.gz
fix -Wduplicate-decl-specifier warnings
include/iwinfo.h:209:19: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] 209 | static const char const *ht_secondary_offset[4] = { | ^~~~~ Constify and move the offenders out of the header. Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'iwinfo_lib.c')
-rw-r--r--iwinfo_lib.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/iwinfo_lib.c b/iwinfo_lib.c
index 22571f0..e914484 100644
--- a/iwinfo_lib.c
+++ b/iwinfo_lib.c
@@ -78,6 +78,24 @@ const char *IWINFO_HTMODE_NAMES[] = {
"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