]> www.infradead.org Git - users/willy/xarray.git/commit
wifi: iwlwifi: mvm: properly set the rates in link cmd
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Sun, 1 Sep 2024 04:17:57 +0000 (07:17 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 3 Sep 2024 09:55:27 +0000 (11:55 +0200)
commita032b5fc24fc1ddff0dce662b2e2d367cc73f040
tree4343300a22cfdfef6fe0d012b9bd09ae8a173dd8
parent36dc21bce962a56f748eb3711f5f4e2c70544d06
wifi: iwlwifi: mvm: properly set the rates in link cmd

When a channel ctx is assigned to a link, we set the
LINK_CONTEXT_MODIFY_RATES_INFO to indicate that the rate fields are now
valid. But then we always take the rates of 2.4 GHz regardless of actual
used band.
This is because we are getting the band from bss_conf->chanctx_conf, but
this is assigned only after drv_assign_vif_chanctx returns, so we take
the bands of 2.4 GHz.
Fix it by taking the band from the iwl_mvm_link_info::phy_ctxt instead,
as this has already assigned in this point.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://patch.msgid.link/20240901071542.11c2d3609609.I8fa59e29b6bb38e5d06f3536d54dfb2c5d5bab11@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/link.c
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h