Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iwlwifi: mvm: update offloaded rate control on changes

With offloaded rate control, if the station parameters (rates, NSS,
bandwidth) change (sta_rc_update method), call iwl_mvm_rs_rate_init()
to propagate those change to the firmware.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>

authored by

Johannes Berg and committed by
Luca Coelho
dcfe3b10 f5ae2f93

+7
+7
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
··· 3258 3258 struct ieee80211_sta *sta, u32 changed) 3259 3259 { 3260 3260 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); 3261 + struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); 3262 + 3263 + if (changed & (IEEE80211_RC_BW_CHANGED | 3264 + IEEE80211_RC_SUPP_RATES_CHANGED | 3265 + IEEE80211_RC_NSS_CHANGED)) 3266 + iwl_mvm_rs_rate_init(mvm, sta, mvmvif->phy_ctxt->channel->band, 3267 + true); 3261 3268 3262 3269 if (vif->type == NL80211_IFTYPE_STATION && 3263 3270 changed & IEEE80211_RC_NSS_CHANGED)