From patchwork Wed May 19 12:20:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Borgers X-Patchwork-Id: 12267157 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09A66C433B4 for ; Wed, 19 May 2021 12:20:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D2A606135B for ; Wed, 19 May 2021 12:20:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346225AbhESMVz (ORCPT ); Wed, 19 May 2021 08:21:55 -0400 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:33023 "EHLO outpost1.zedat.fu-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346175AbhESMVz (ORCPT ); Wed, 19 May 2021 08:21:55 -0400 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1ljLBi-00037C-Ik; Wed, 19 May 2021 14:20:34 +0200 Received: from a36t-ffs1.berlin.freifunk.net ([77.87.51.11] helo=mi.fu-berlin.de) by inpost2.zedat.fu-berlin.de (Exim 4.94) with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1ljLBh-000PJl-DI; Wed, 19 May 2021 14:20:34 +0200 Received: by mi.fu-berlin.de (sSMTP sendmail emulation); Wed, 19 May 2021 14:20:33 +0200 From: Philipp Borgers To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Philipp Borgers Subject: [PATCH v2 0/3] mac80211: do not use low data rates for data frames with no ack flag Date: Wed, 19 May 2021 14:20:16 +0200 Message-Id: <20210519122019.92359-1-borgers@mi.fu-berlin.de> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Original-Sender: borgers@mi.fu-berlin.de X-Originating-IP: 77.87.51.11 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Version 2 of this patch set adds a helper function that checks if a frame is a data frame taking hardware encapsulation into account. Suggested by Johannes Berg and Felix Fietkau. The refactoring of the rc_no_data_or_no_ack_use_min function makes use of this new function too. I added a comment about the refactoring too. Suggested by Kalle Valo. Best Regards Philipp Borgers Philipp Borgers (3): mac80211: add ieee80211_is_tx_data helper function mac80211: do not use low data rates for data frames with no ack flag mac80211: refactor rc_no_data_or_no_ack_use_min function include/net/mac80211.h | 18 ++++++++++++++++++ net/mac80211/rate.c | 10 +++++----- 2 files changed, 23 insertions(+), 5 deletions(-)