diff options
-rw-r--r-- | net/mac80211/tx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 21951bac1ef7..541e3e64493d 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -563,8 +563,8 @@ ieee80211_tx_h_rate_ctrl(struct ieee80211_tx_data *tx) | |||
563 | IEEE80211_TX_RC_USE_RTS_CTS; | 563 | IEEE80211_TX_RC_USE_RTS_CTS; |
564 | 564 | ||
565 | /* RC is busted */ | 565 | /* RC is busted */ |
566 | if (WARN_ON(info->control.rates[i].idx >= | 566 | if (WARN_ON_ONCE(info->control.rates[i].idx >= |
567 | sband->n_bitrates)) { | 567 | sband->n_bitrates)) { |
568 | info->control.rates[i].idx = -1; | 568 | info->control.rates[i].idx = -1; |
569 | continue; | 569 | continue; |
570 | } | 570 | } |