Skip to contentSkip to conversation

Revert "mac80211: do not use low data rates for data frames with no ack flag"

PATCH In review Felix Fietkau 2 participants 2 messages Sep 6, 2021 – Sep 25, 2021 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "mac80211: do not use low data rates for data frames with no ack flag"

This reverts commit d333322361e7a099dc74df2498d3fa5fde5c4fa7. Returning false early in rate_control_send_low breaks sending broadcast packets, since rate control will not select a rate for it.
Before re-introducing a fixed version of this patch, we should probably also make some changes to rate control to be more conservative in selecting rates for no-ack packets and also prevent using probing rates on them, since we won't get any feedback.

---
 net/mac80211/rate.c | 4 ----
 1 file changed, 4 deletions(-)
net/mac80211/rate.c +0 -4
index e5935e3d7a07..8c6416129d5b 100644
@@ -392,10 +392,6 @@ static bool rate_control_send_low(struct ieee80211_sta *pubsta,
 	int mcast_rate;
 	bool use_basicrate = false;
 
-	if (ieee80211_is_tx_data(txrc->skb) &&
-	    info->flags & IEEE80211_TX_CTL_NO_ACK)
-		return false;
-
 	if (!pubsta || rc_no_data_or_no_ack_use_min(txrc)) {
 		__rate_control_send_low(txrc->hw, sband, pubsta, info,
 					txrc->rate_idx_mask);
Signature · 1 line
2.30.1
#1 lore raw

I confirm the revert fixes sending multicast frames on my ath9k device.

-- Petr