diff options
author | Andre Heider <a.heider@gmail.com> | 2022-11-23 14:11:58 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-12-15 20:07:49 +0100 |
commit | 462b6797161ead37dfcc85995d8286f9c4d5eb18 (patch) | |
tree | 9f8956e9a57bfc55bd70e0b514e5cdc9ff33277d /include | |
parent | ccaabb4ea4b11382bffd9fb05558c390c1eb70c4 (diff) | |
download | iwinfo-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 'include')
-rw-r--r-- | include/iwinfo.h | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/include/iwinfo.h b/include/iwinfo.h index 576632d..f2d6d35 100644 --- a/include/iwinfo.h +++ b/include/iwinfo.h @@ -199,25 +199,15 @@ struct iwinfo_scanlist_vht_chan_entry { uint8_t center_chan_2; }; -static const char *ht_secondary_offset[4] = { - "no secondary", - "above", - "[reserved!]", - "below", -}; - - -static uint16_t ht_chan_width[2] = { - 20, /* 20 MHz */ - 2040, /* 40 MHz or higher (refer to vht if supported) */ -}; - -static uint16_t vht_chan_width[] = { - [0] = 40, /* 40 MHz or lower (refer to ht to a more precise width) */ - [1] = 80, /* 80 MHz */ - [3] = 8080, /* 80+80 MHz */ - [2] = 160, /* 160 MHz */ -}; +extern const char * const ht_secondary_offset[4]; +/* 0 = 20 MHz + 1 = 40 MHz or higher (refer to vht if supported) */ +extern const uint16_t ht_chan_width[2]; +/* 0 = 40 MHz or lower (refer to ht to a more precise width) + 1 = 80 MHz + 2 = 160 MHz + 3 = 80+80 MHz */ +extern const uint16_t vht_chan_width[4]; struct iwinfo_scanlist_entry { uint8_t mac[6]; |