diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2017-08-15 10:36:18 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2017-08-16 17:15:03 +0200 |
commit | ce51cb81234c0a36ddee8fc5d240a63494a31388 (patch) | |
tree | 253bb09b4dde6917922404343770e05936ecf582 /include | |
parent | 5c10efa2cbadf5a9690efc6fc4f62ceb6d4c664b (diff) | |
download | iwinfo-ce51cb81234c0a36ddee8fc5d240a63494a31388.tar.gz |
Allow storing more info about each frequency
This adds flags field which may be used to mark frequency not available
under some conditions.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'include')
-rw-r--r-- | include/iwinfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/iwinfo.h b/include/iwinfo.h index bb2b20a..a5cafa9 100644 --- a/include/iwinfo.h +++ b/include/iwinfo.h @@ -48,6 +48,13 @@ #define IWINFO_AUTH_SHARED (1 << 1) #define IWINFO_AUTH_COUNT 2 +#define IWINFO_FREQ_NO_10MHZ (1 << 0) +#define IWINFO_FREQ_NO_20MHZ (1 << 1) +#define IWINFO_FREQ_NO_HT40PLUS (1 << 2) +#define IWINFO_FREQ_NO_HT40MINUS (1 << 3) +#define IWINFO_FREQ_NO_80MHZ (1 << 4) +#define IWINFO_FREQ_NO_160MHZ (1 << 5) + extern const char *IWINFO_CIPHER_NAMES[IWINFO_CIPHER_COUNT]; extern const char *IWINFO_KMGMT_NAMES[IWINFO_KMGMT_COUNT]; extern const char *IWINFO_AUTH_NAMES[IWINFO_AUTH_COUNT]; @@ -126,6 +133,7 @@ struct iwinfo_freqlist_entry { uint8_t channel; uint32_t mhz; uint8_t restricted; + uint32_t flags; }; struct iwinfo_crypto_entry { |