diff options
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; |