Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3984879pxb; Mon, 4 Oct 2021 14:26:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAZeMGlbagF8K3M8DjIVNr96Bvx0rEMHFRPr7gtuEQ9yrytxpQTaZMo4vaCg57fcoPHWVo X-Received: by 2002:a63:5453:: with SMTP id e19mr12649255pgm.178.1633382791643; Mon, 04 Oct 2021 14:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633382791; cv=none; d=google.com; s=arc-20160816; b=j6Ci2Nc5ck+cPlUH/tYpGJ6uwn67oYgFCkBpJRh+qRoHk/8lB4aHOELnyckbmtCtHg FgKERYC/Ir1ZlOiUPVoq6GAKSqmx/QsBsQwxpYdLZ5MgfjuKvX9El0hFs8xWl+X+fDDI eSrenBuZp2WbsDnPnAQq9NjV+kGD0RlDDuVrkDM8d15gae7kHhzuCTXBV8GZmiNP69yH e4mooQ9i5+bioVq1Ho51KzYdDrzf09Sivq/1+teinQSnBN3qYhIYvPtjdTII7iRuHAjU 8fxS1rtM3p51W5Y67b4HpetsyGp3uaIq8PP+tV1YmlCSr4ZOZfTbvvRcOZeSSSf2Dwec +Ipg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=p0xD37QJs3PqDITb1hX9BWlCaE6WnO0kapDjpkVOYqA=; b=b/wrTZuU+JBh06dxgsBtSFbMJ87effnHR7qw9pM5KoePA/WqT1sNmVr/d8BZHt3tRN x014zOvBsGPrkvirPIYsPRl6NL4bh0HabNRUkeSopQUbCQs2UAvwopwZ78wVV9GCW7KF MhuHgTVO5p7/pDsdhw+fMvUMQlKHWMES8idXqp4dAfYCi4enLV7oUdQNvfX2u2naGfKY KtbkY7GEMaZt4fXz/4A/Pxtss6RClssZ2GsV30H8LX/hzSc3TrOsRQuzy2kICfs3ncnG 1HX77rBkSS8W8pAfbFB1vdHQxop7zalP1yMpHVxxpQbFTjTTrAtSt+ok0Da/97ZaqYMK t+Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tJ7vL7TG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si21872854plk.427.2021.10.04.14.26.18; Mon, 04 Oct 2021 14:26:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tJ7vL7TG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236218AbhJDNgk (ORCPT + 99 others); Mon, 4 Oct 2021 09:36:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:49924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236582AbhJDNex (ORCPT ); Mon, 4 Oct 2021 09:34:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8B06761881; Mon, 4 Oct 2021 13:15:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633353338; bh=RtU55DnzmwifvM70zL20eJG7d1lJfdM7W4xWz2HvvjQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tJ7vL7TGCvFTS0nHP0QBRloy/6+OFemugSEZPQhpyMH3YzS8Q3XfvZ737CIX05pLA hr0f5/V3GIp+k2CqdU+y6n21t9+Bms2VectdBHqAy8NQeLzhpdbFtJE58+ZPRLg8RW kFA4v75RCYEwhpIK5t4kGnVIl61GVw+BdHLvSGLE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Felix Fietkau , Johannes Berg , Sasha Levin Subject: [PATCH 5.14 088/172] Revert "mac80211: do not use low data rates for data frames with no ack flag" Date: Mon, 4 Oct 2021 14:52:18 +0200 Message-Id: <20211004125047.836891379@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004125044.945314266@linuxfoundation.org> References: <20211004125044.945314266@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Felix Fietkau [ 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 Link: https://lore.kernel.org/r/20210906083559.9109-1-nbd@nbd.name Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- 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.33.0