Patch "Revert "mac80211: do not use low data rates for data frames with no ack flag"" has been added to the 5.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

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

to the 5.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     revert-mac80211-do-not-use-low-data-rates-for-data-f.patch
and it can be found in the queue-5.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 435860ed31fd37636ac37a7f6eda2033f1d11106
Author: Felix Fietkau <nbd@xxxxxxxx>
Date:   Mon Sep 6 10:35:59 2021 +0200

    Revert "mac80211: do not use low data rates for data frames with no ack flag"
    
    [ Upstream commit 98d46b021f6ee246c7a73f9d490d4cddb4511a3b ]
    
    This reverts commit d333322361e7 ("mac80211: do not use low data rates for
    data frames with no ack flag").
    
    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.
    
    Fixes: d333322361e7 ("mac80211: do not use low data rates for data frames with no ack flag")
    Signed-off-by: Felix Fietkau <nbd@xxxxxxxx>
    Link: https://lore.kernel.org/r/20210906083559.9109-1-nbd@xxxxxxxx
    Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

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);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux