diff options
author | Johannes Berg <johannes.berg@intel.com> | 2019-03-12 13:22:43 +0100 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2019-04-03 11:13:06 +0300 |
commit | dcfe3b103dd1348706bbdcfb9921c65452a6144e (patch) | |
tree | 15e4a96390c4e25bd8cb57b17eb2906392e1f5fe /drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | |
parent | f5ae2f932e2f8f4f79796f44832ae8fca26f188a (diff) | |
download | linux-stable-dcfe3b103dd1348706bbdcfb9921c65452a6144e.tar.gz linux-stable-dcfe3b103dd1348706bbdcfb9921c65452a6144e.tar.bz2 linux-stable-dcfe3b103dd1348706bbdcfb9921c65452a6144e.zip |
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>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c index eeaeb8475666..6a3b11dd2edf 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c @@ -3258,6 +3258,13 @@ static void iwl_mvm_sta_rc_update(struct ieee80211_hw *hw, struct ieee80211_sta *sta, u32 changed) { struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); + struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); + + if (changed & (IEEE80211_RC_BW_CHANGED | + IEEE80211_RC_SUPP_RATES_CHANGED | + IEEE80211_RC_NSS_CHANGED)) + iwl_mvm_rs_rate_init(mvm, sta, mvmvif->phy_ctxt->channel->band, + true); if (vif->type == NL80211_IFTYPE_STATION && changed & IEEE80211_RC_NSS_CHANGED) |