aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/mac80211/tx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 1564a3018cf5..36e8e2de980c 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -558,6 +558,10 @@ ieee80211_tx_h_rate_ctrl(struct ieee80211_tx_data *tx)
558 if (unlikely(!info->control.rates[0].count)) 558 if (unlikely(!info->control.rates[0].count))
559 info->control.rates[0].count = 1; 559 info->control.rates[0].count = 1;
560 560
561 if (WARN_ON_ONCE((info->control.rates[0].count > 1) &&
562 (info->flags & IEEE80211_TX_CTL_NO_ACK)))
563 info->control.rates[0].count = 1;
564
561 if (is_multicast_ether_addr(hdr->addr1)) { 565 if (is_multicast_ether_addr(hdr->addr1)) {
562 /* 566 /*
563 * XXX: verify the rate is in the basic rateset 567 * XXX: verify the rate is in the basic rateset