Skip to content

Commit 622ebe9

Browse files
Moshe Benjijmberg-intel
Moshe Benji
authored andcommitted
iwlwifi: fix rate control regression
Since driver does not use control.rates[0].count, we have never set that variable. But currently, after rate control API rewrite, this is required by mac80211. Otherwise legacy rates control does not work and we transmit always at 1Mbit/s on pre 11n networks. [same fix as for iwlegacy, thanks Stanislaw!] Signed-off-by: Moshe Benji <[email protected]> Reviewed-by: Emmanuel Grumbach <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
1 parent 2edc6ec commit 622ebe9

File tree

2 files changed

+2
-1
lines changed
  • drivers/net/wireless/iwlwifi

2 files changed

+2
-1
lines changed

drivers/net/wireless/iwlwifi/dvm/rs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2799,7 +2799,7 @@ static void rs_get_rate(void *priv_r, struct ieee80211_sta *sta, void *priv_sta,
27992799
info->control.rates[0].flags = 0;
28002800
}
28012801
info->control.rates[0].idx = rate_idx;
2802-
2802+
info->control.rates[0].count = 1;
28032803
}
28042804

28052805
static void *rs_alloc_sta(void *priv_rate, struct ieee80211_sta *sta,

drivers/net/wireless/iwlwifi/mvm/rs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2546,6 +2546,7 @@ static void rs_get_rate(void *mvm_r, struct ieee80211_sta *sta, void *mvm_sta,
25462546
info->control.rates[0].flags = 0;
25472547
}
25482548
info->control.rates[0].idx = rate_idx;
2549+
info->control.rates[0].count = 1;
25492550
}
25502551

25512552
static void *rs_alloc_sta(void *mvm_rate, struct ieee80211_sta *sta,

0 commit comments

Comments
 (0)