linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Revert "mac80211: do not use low data rates for data frames with no ack flag"
@ 2021-09-06  8:35 Felix Fietkau
  2021-09-25  7:15 ` Petr Pisar
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Fietkau @ 2021-09-06  8:35 UTC (permalink / raw)
  To: linux-wireless; +Cc: johannes, Philipp Borgers

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.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 net/mac80211/rate.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c
index e5935e3d7a07..8c6416129d5b 100644
--- a/net/mac80211/rate.c
+++ b/net/mac80211/rate.c
@@ -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);
-- 
2.30.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Revert "mac80211: do not use low data rates for data frames with no ack flag"
  2021-09-06  8:35 [PATCH] Revert "mac80211: do not use low data rates for data frames with no ack flag" Felix Fietkau
@ 2021-09-25  7:15 ` Petr Pisar
  0 siblings, 0 replies; 2+ messages in thread
From: Petr Pisar @ 2021-09-25  7:15 UTC (permalink / raw)
  To: linux-wireless; +Cc: petr.pisar

[-- Attachment #1: Type: text/plain, Size: 81 bytes --]

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

-- Petr

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-25  7:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-06  8:35 [PATCH] Revert "mac80211: do not use low data rates for data frames with no ack flag" Felix Fietkau
2021-09-25  7:15 ` Petr Pisar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).