diff options
Diffstat (limited to 'net/mac80211/rc80211_minstrel.c')
-rw-r--r-- | net/mac80211/rc80211_minstrel.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/mac80211/rc80211_minstrel.c b/net/mac80211/rc80211_minstrel.c index 58a89554b788..b39dda523f39 100644 --- a/net/mac80211/rc80211_minstrel.c +++ b/net/mac80211/rc80211_minstrel.c | |||
@@ -334,8 +334,8 @@ minstrel_get_rate(void *priv, struct ieee80211_sta *sta, | |||
334 | 334 | ||
335 | 335 | ||
336 | static void | 336 | static void |
337 | calc_rate_durations(struct minstrel_sta_info *mi, struct ieee80211_local *local, | 337 | calc_rate_durations(struct ieee80211_local *local, struct minstrel_rate *d, |
338 | struct minstrel_rate *d, struct ieee80211_rate *rate) | 338 | struct ieee80211_rate *rate) |
339 | { | 339 | { |
340 | int erp = !!(rate->flags & IEEE80211_RATE_ERP_G); | 340 | int erp = !!(rate->flags & IEEE80211_RATE_ERP_G); |
341 | 341 | ||
@@ -402,8 +402,7 @@ minstrel_rate_init(void *priv, struct ieee80211_supported_band *sband, | |||
402 | 402 | ||
403 | mr->rix = i; | 403 | mr->rix = i; |
404 | mr->bitrate = sband->bitrates[i].bitrate / 5; | 404 | mr->bitrate = sband->bitrates[i].bitrate / 5; |
405 | calc_rate_durations(mi, local, mr, | 405 | calc_rate_durations(local, mr, &sband->bitrates[i]); |
406 | &sband->bitrates[i]); | ||
407 | 406 | ||
408 | /* calculate maximum number of retransmissions before | 407 | /* calculate maximum number of retransmissions before |
409 | * fallback (based on maximum segment size) */ | 408 | * fallback (based on maximum segment size) */ |