diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-08-25 20:57:32 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-08-26 09:56:36 +0200 |
commit | abd27d063c2e85e45ffc4390247abf47e5b55997 (patch) | |
tree | cdc8ab5edbba5c4c2f3f6bdcd71291b2b0a1629a /net/mac80211/util.c | |
parent | wifi: cfg80211: Add link_id to cfg80211_ch_switch_started_notify() (diff) | |
download | linux-abd27d063c2e85e45ffc4390247abf47e5b55997.tar.xz linux-abd27d063c2e85e45ffc4390247abf47e5b55997.zip |
wifi: mac80211: correct SMPS mode in HE 6 GHz capability
If we add 6 GHz capability in MLO, we cannot use the SMPS
mode from the deflink. Pass it separately instead since on
a second link we don't even have a link data struct yet.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 37324a22371a..a292e63377c3 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -3084,6 +3084,7 @@ end: } void ieee80211_ie_build_he_6ghz_cap(struct ieee80211_sub_if_data *sdata, + enum ieee80211_smps_mode smps_mode, struct sk_buff *skb) { struct ieee80211_supported_band *sband; @@ -3110,7 +3111,7 @@ void ieee80211_ie_build_he_6ghz_cap(struct ieee80211_sub_if_data *sdata, cap = le16_to_cpu(iftd->he_6ghz_capa.capa); cap &= ~IEEE80211_HE_6GHZ_CAP_SM_PS; - switch (sdata->deflink.smps_mode) { + switch (smps_mode) { case IEEE80211_SMPS_AUTOMATIC: case IEEE80211_SMPS_NUM_MODES: WARN_ON(1); |