diff options
author | Ben Greear <greearb@candelatech.com> | 2021-02-04 17:46:10 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2021-02-12 11:33:34 +0300 |
commit | b6db0f899a16a23f5a9ea6c8b0fafc7bbd38e03d (patch) | |
tree | 5fe68a9517d3d8f1b4ed8270e5060d850a3d5305 /net/mac80211 | |
parent | 549fdd34b5f2dfa63e10855f20796c13a036707b (diff) | |
download | linux-b6db0f899a16a23f5a9ea6c8b0fafc7bbd38e03d.tar.xz |
cfg80211/mac80211: Support disabling HE mode
Allow user to disable HE mode, similar to how VHT and HT
can be disabled. Useful for testing.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Link: https://lore.kernel.org/r/20210204144610.25971-1-greearb@candelatech.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/mlme.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 0e4d950cf907..2e33a1263518 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -5754,6 +5754,9 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, if (req->flags & ASSOC_REQ_DISABLE_VHT) ifmgd->flags |= IEEE80211_STA_DISABLE_VHT; + if (req->flags & ASSOC_REQ_DISABLE_HE) + ifmgd->flags |= IEEE80211_STA_DISABLE_HE; + err = ieee80211_prep_connection(sdata, req->bss, true, override); if (err) goto err_clear; |