Skip to content

Commit dcfe3b1

Browse files
jmberg-intellucacoelho
authored andcommitted
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 <[email protected]> Signed-off-by: Luca Coelho <[email protected]>
1 parent f5ae2f9 commit dcfe3b1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3258,6 +3258,13 @@ static void iwl_mvm_sta_rc_update(struct ieee80211_hw *hw,
32583258
struct ieee80211_sta *sta, u32 changed)
32593259
{
32603260
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);
32613268

32623269
if (vif->type == NL80211_IFTYPE_STATION &&
32633270
changed & IEEE80211_RC_NSS_CHANGED)

0 commit comments

Comments
 (0)