mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 19:31:53 +00:00
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>
This commit is contained in:
parent
f5ae2f932e
commit
dcfe3b103d
@ -3258,6 +3258,13 @@ static void iwl_mvm_sta_rc_update(struct ieee80211_hw *hw,
|
|||||||
struct ieee80211_sta *sta, u32 changed)
|
struct ieee80211_sta *sta, u32 changed)
|
||||||
{
|
{
|
||||||
struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw);
|
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 &&
|
if (vif->type == NL80211_IFTYPE_STATION &&
|
||||||
changed & IEEE80211_RC_NSS_CHANGED)
|
changed & IEEE80211_RC_NSS_CHANGED)
|
||||||
|
Loading…
Reference in New Issue
Block a user