nl80211: mark frequencies where HE operation in not allowed
Repurpose the IWINFO_FREQ_NO_2160MHZ define for that, which was introduced but never used. nl80211 doesn't have such a flag either. Signed-off-by: Andre Heider <a.heider@gmail.com>
This commit is contained in:
parent
6d50a7cc0b
commit
fddc015704
2 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,7 @@
|
|||
#define IWINFO_FREQ_NO_HT40MINUS (1 << 3)
|
||||
#define IWINFO_FREQ_NO_80MHZ (1 << 4)
|
||||
#define IWINFO_FREQ_NO_160MHZ (1 << 5)
|
||||
#define IWINFO_FREQ_NO_2160MHZ (1 << 6)
|
||||
#define IWINFO_FREQ_NO_HE (1 << 6)
|
||||
|
||||
extern const char *IWINFO_CIPHER_NAMES[IWINFO_CIPHER_COUNT];
|
||||
extern const char *IWINFO_KMGMT_NAMES[IWINFO_KMGMT_COUNT];
|
||||
|
|
|
@ -3029,6 +3029,8 @@ static int nl80211_get_freqlist_cb(struct nl_msg *msg, void *arg)
|
|||
e->flags |= IWINFO_FREQ_NO_20MHZ;
|
||||
if (freqs[NL80211_FREQUENCY_ATTR_NO_10MHZ])
|
||||
e->flags |= IWINFO_FREQ_NO_10MHZ;
|
||||
if (freqs[NL80211_FREQUENCY_ATTR_NO_HE])
|
||||
e->flags |= IWINFO_FREQ_NO_HE;
|
||||
|
||||
e++;
|
||||
arr->count++;
|
||||
|
|
Loading…
Reference in a new issue