diff options
author | Benjamin Berg <benjamin.berg@intel.com> | 2023-03-29 09:05:29 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-03-30 12:08:41 +0200 |
commit | 24dc33cc54e61a7a97049d6f663c5ac92e097d68 (patch) | |
tree | 697dbc8f94dea52d5a4acdb1cb4738cbaef5c7e4 /drivers/net/wireless | |
parent | wifi: iwlwifi: mvm: use appropriate link for rate selection (diff) | |
download | linux-24dc33cc54e61a7a97049d6f663c5ac92e097d68.tar.xz linux-24dc33cc54e61a7a97049d6f663c5ac92e097d68.zip |
wifi: iwlwifi: mvm: initialize max_rc_amsdu_len per-link
Initialize max_rc_amsdu_len per-link both on state change and when a new
link is added.
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230329100039.5bf521fe58b8.I73fe585f0ff75d41b5afd32077e3d6e48c90db2a@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c index 34b85a9a27af..5e382981bfa2 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c @@ -998,6 +998,9 @@ int iwl_mvm_mld_update_sta_links(struct iwl_mvm *mvm, if (WARN_ON(ret)) goto err; + link_sta->agg.max_rc_amsdu_len = 1; + ieee80211_sta_recalc_aggregates(sta); + mvm_sta_link = rcu_dereference_protected(mvm_sta->link[link_id], lockdep_is_held(&mvm->mutex)); |