diff options
author | Muna Sinada | 2022-03-23 15:46:36 -0700 |
---|---|---|
committer | Johannes Berg | 2022-05-04 22:50:03 +0200 |
commit | 1ca980168669acc361e3e3e984f23e20d8bf99f9 (patch) | |
tree | 3cb0576548fb90f4dcf2a5ebfd371a4ab44a63da /net/mac80211 | |
parent | 36f8423597000bd7d5e48b7b306e1d0958e72359 (diff) |
mac80211: support disabling EHT mode
Allow userspace to disable EHT mode.
This forces EHT capable interfaces to disable during association.
Signed-off-by: Muna Sinada <quic_msinada@quicinc.com>
Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
Link: https://lore.kernel.org/r/20220323224636.20211-2-quic_alokad@quicinc.com
[remove stray message change]
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 b857915881e0..f02137b4cb12 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -6126,6 +6126,9 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, ifmgd->flags |= IEEE80211_STA_DISABLE_EHT; } + if (req->flags & ASSOC_REQ_DISABLE_EHT) + ifmgd->flags |= IEEE80211_STA_DISABLE_EHT; + err = ieee80211_prep_connection(sdata, req->bss, true, override); if (err) goto err_clear; |