diff options
author | Jeremy Erickson <jerickso@cs.unc.edu> | 2014-04-18 17:06:00 -0400 |
---|---|---|
committer | Jeremy Erickson <jerickso@cs.unc.edu> | 2014-04-18 17:06:00 -0400 |
commit | a215aa7b9ab3759c047201199fba64d3042d7f13 (patch) | |
tree | bca37493d9b2233450e6d3ffced1261d0e4f71fe /net/mac80211/rate.c | |
parent | d31199a77ef606f1d06894385f1852181ba6136b (diff) |
Update 2.6.36 to 2.6.36.4wip-dissipation2-jerickso
Diffstat (limited to 'net/mac80211/rate.c')
-rw-r--r-- | net/mac80211/rate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c index be04d46110fe..82d5750a110a 100644 --- a/net/mac80211/rate.c +++ b/net/mac80211/rate.c | |||
@@ -328,6 +328,9 @@ void rate_control_get_rate(struct ieee80211_sub_if_data *sdata, | |||
328 | * if needed. | 328 | * if needed. |
329 | */ | 329 | */ |
330 | for (i = 0; i < IEEE80211_TX_MAX_RATES; i++) { | 330 | for (i = 0; i < IEEE80211_TX_MAX_RATES; i++) { |
331 | /* Skip invalid rates */ | ||
332 | if (info->control.rates[i].idx < 0) | ||
333 | break; | ||
331 | /* Rate masking supports only legacy rates for now */ | 334 | /* Rate masking supports only legacy rates for now */ |
332 | if (info->control.rates[i].flags & IEEE80211_TX_RC_MCS) | 335 | if (info->control.rates[i].flags & IEEE80211_TX_RC_MCS) |
333 | continue; | 336 | continue; |