diff options
author | David Bauer <mail@david-bauer.net> | 2022-04-22 23:56:35 +0200 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2022-04-23 11:59:29 +0200 |
commit | 562d01532616b7be095b9e14a407351e71c0a06c (patch) | |
tree | b406a7b24bbdf001dc8b953e4a0dde84b3ba0996 /include | |
parent | 90bfbb9a3ac39e41c59a9802d0730560eb7d0f83 (diff) | |
download | iwinfo-562d01532616b7be095b9e14a407351e71c0a06c.tar.gz |
iwinfo: nl80211: fix hwmode parsing for multi-band NICs
In case a NIC supports multiple frequency bands, the supported
hw-modelist might not contain all valid hwmodes, as B/G/AD hwmodes are
only included based on the last parsed supported frequency.
In case a radio supports multiple bands, this might result in these
hwmodes not being flagged as supported.
Circumvent this by tracking all seen frequency bands using a bitmask
which later determined which HW modes are listed as supported.
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/iwinfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/iwinfo.h b/include/iwinfo.h index 8469ee7..e9b7451 100644 --- a/include/iwinfo.h +++ b/include/iwinfo.h @@ -31,6 +31,11 @@ #define IWINFO_80211_AD (1 << 5) #define IWINFO_80211_AX (1 << 6) +#define IWINFO_BAND_24 (1 << 0) +#define IWINFO_BAND_5 (1 << 1) +#define IWINFO_BAND_6 (1 << 2) +#define IWINFO_BAND_60 (1 << 3) + #define IWINFO_CIPHER_NONE (1 << 0) #define IWINFO_CIPHER_WEP40 (1 << 1) #define IWINFO_CIPHER_TKIP (1 << 2) |