Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2634518pxb; Mon, 6 Sep 2021 01:37:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF+nelpabg3dmdrxUoZ+6o6/OWircFFkAY42LTqcZLJa3JiIxvZ4fPMsYewAeYOGRcQAsO X-Received: by 2002:a17:907:77d0:: with SMTP id kz16mr12507491ejc.334.1630917422215; Mon, 06 Sep 2021 01:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630917422; cv=none; d=google.com; s=arc-20160816; b=u5YjIaILXITw5YOhwcl5Hy5eAsv6CmHK/jQoHBtelt5EhfoMMXCwFESckY2uWLAjHr 15V9JKbCzSs8aotGttYcTCOiGvUtm7Rb17XlR0KjrPg1LZH3THQl3luECpSBQZWmXtQ5 E2u+q+sl20U2bV1KJU5VSXbt53ONj5RduHlsFcD8t6Duh/yFlANibi1qeXALpe5m6YBc sb0Inm9FyrcmRcFKJScfbaFSYS7lRJygSzmcdSuD5swbHUcnDpqU3vpJMAvr5Znmrc8D th4bSQvukIpLHGZpjdiw9LPop+z2ebpXKqjdHt1aPPvtlSAoXQHfPFwKUDFF9MhsLli3 fAFw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=T1HzOaR/qo+2dPtlAtB/kb5FO7LzIPRj4r+bznF/YY8=; b=HUHLNhtDjQbYiMrKv8BRvWqyjmlPzSFJRKkzPLeIA5CMsYjFpL9QVuy9rm8q0y2zb0 RjiecPTRbbM3XeE5+7beXgR+2ONPLqjpgXa3NfgMZprZAycyOAaRb3CUvcZxiHJXzt+K AtKy2miUYT40H3lChrWUsrBYOlPMTb8a86dxb3ErJO86oe411ay69tB0+tBGFCyMfsD9 zBbVHNDuby0K/LzlP14AIKAC/vu18SKzdTVqrCEhBL6kqvWGMRIxrnXPVDKaYw5nhJ50 qzMFyBYjRkuljk2lwDnr7RU85+xj5cvGKbfixicS8agM7LQQGASYxzutirjdYvyBCDMM RBFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=lom1tIDd; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si7741612ejn.780.2021.09.06.01.36.32; Mon, 06 Sep 2021 01:37:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=lom1tIDd; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240877AbhIFIhI (ORCPT + 99 others); Mon, 6 Sep 2021 04:37:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240795AbhIFIhI (ORCPT ); Mon, 6 Sep 2021 04:37:08 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D872FC061575 for ; Mon, 6 Sep 2021 01:36:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=T1HzOaR/qo+2dPtlAtB/kb5FO7LzIPRj4r+bznF/YY8=; b=lom1tIDdLZ7112sZU2i+pVUjfq MMxYTyXUOPQpyYVdQEATal63XCPfYieM1uFJjeewujhpkUpH1vNnKnPhtD4XLQjNCckBgZcZS+ZpP +56zECD3f4qgVH1O2b9W37EaqCpApydDgMsiUQO4ocyz0ekCVuWyU5Axpvanqb6IWoN4=; Received: from p4ff13206.dip0.t-ipconnect.de ([79.241.50.6] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1mNA6j-0007BF-Ct; Mon, 06 Sep 2021 10:36:01 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, Philipp Borgers Subject: [PATCH] Revert "mac80211: do not use low data rates for data frames with no ack flag" Date: Mon, 6 Sep 2021 10:35:59 +0200 Message-Id: <20210906083559.9109-1-nbd@nbd.name> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 --- 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