Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp313212pxb; Fri, 15 Jan 2021 04:05:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwW22tzzUmUPXdUzopAGp4bLjqZ3X1UbWjZXHsSZziEvI7REfOGxVE9EeC9dS0RYHcZEuON X-Received: by 2002:a17:906:32d6:: with SMTP id k22mr8564550ejk.457.1610712344457; Fri, 15 Jan 2021 04:05:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610712344; cv=none; d=google.com; s=arc-20160816; b=QVoyeUDLuQ7tZXYuLLBXhKSPGcvhNXVkyiD120WIMoRpEwBunY4evqqhKqf3gDEu4D TON7gMandyZ9XH8ASi1JYqGkvJuiQqVEu/tN/qAa6tsTp2KU8Q0Te64Dh96spKyY8pbn UvI3bYaKV2yJJiRGZwfcsGIZZx2xv5L+EZP9BpC+CUmq3ruls6Ib2kz6yBi6+pkIwIQh uhdNTT5uR/JTgu98G8iah0Ju+AbkgoGg6q+T2iZ7bNycylShEZxc/JuxhiXLjsG5hyFJ ur38fCsENY6pirDQRjb6B7NyL8onVtJVJFD7+zasaMQ2gefjLgviFN09M19YaScuafZw THGQ== 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=pP0MquxMR5cAsIhCAYKLP3jzL6TZCHnX7CweazmA/aE=; b=ynqf0PKPE25uWnKcTqUqrPSz8bW5Mqqm/LvWoe4edEXiOPKD3j0qdHF8I9poHn/PiB bE3c/xpIlK3PJsidgEIVzj6XSdN11EUKoR/1+fnDHdtWzt0RGwb7vw/30grs1luAaYUm BKm8r0ipNr9QMgu2teelp1mIi7SYb42cemOv36wNbqxGCoERI/eW7jLnPjyQjt1jzUSw y8WW3ZIfTsr5+p8AuXWGgIldncJu/RG9POxLRJis85YNDCaJ+xmC0ApBoI0RiA7z6a/b 9USxnHGyOq84guV7UsXvrRu6xm365ts8NoSuJx+7642C+JCVEi+e8z15l6YtTSOXNXg6 YkkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=TxEwWvQZ; 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 v3si3538814eje.650.2021.01.15.04.05.20; Fri, 15 Jan 2021 04:05:44 -0800 (PST) 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=TxEwWvQZ; 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 S1730515AbhAOMDo (ORCPT + 99 others); Fri, 15 Jan 2021 07:03:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730480AbhAOMDn (ORCPT ); Fri, 15 Jan 2021 07:03:43 -0500 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8531EC061793 for ; Fri, 15 Jan 2021 04:02:48 -0800 (PST) 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=pP0MquxMR5cAsIhCAYKLP3jzL6TZCHnX7CweazmA/aE=; b=TxEwWvQZiPCmP0YNSwQcp+OKC9 i7R1elyoBPw6ee/pnIjFwwVPDjRGEtUzesNEFLsLqD/PQrdoXZEfFk7ULHfK6esM5YhqDUZlZsGdH qsLPT3TZ276nJxGq3gsiJvX4fWBrh2MlUMT/M/RtrXbIHNedH1858vTC6K8pSHRwrLWE=; Received: from p54ae91f2.dip0.t-ipconnect.de ([84.174.145.242] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.89) (envelope-from ) id 1l0NoT-0006Y0-Ao; Fri, 15 Jan 2021 13:02:45 +0100 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net Subject: [PATCH v3 0/9] replace minstrel with minstrel_ht Date: Fri, 15 Jan 2021 13:02:33 +0100 Message-Id: <20210115120242.89616-1-nbd@nbd.name> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The legacy minstrel code is essentially unmaintained and receives only very little testing. In order to bring the significant algorithm improvements from minstrel_ht to legacy clients, this patch adds support for OFDM rates to minstrel_ht and removes the fallback to the legacy codepath. This also makes it work much better on hardware with rate selection constraints, e.g. mt76. Changes in v3: - add cover letter - fix uninitialized stack variable - add extra patch to fix significant rounding error in tpt calculation Changes in v2: - fix using legacy-rates overhead in tpt calculation Felix Fietkau (9): mac80211: minstrel_ht: clean up CCK code mac80211: minstrel_ht: add support for OFDM rates on non-HT clients mac80211: remove legacy minstrel rate control mac80211: minstrel_ht: remove old ewma based rate average code mac80211: minstrel_ht: improve ampdu length estimation mac80211: minstrel_ht: improve sample rate selection mac80211: minstrel_ht: fix max probability rate selection mac80211: minstrel_ht: increase stats update interval mac80211: minstrel_ht: fix rounding error in throughput calculation net/mac80211/Makefile | 2 - net/mac80211/rc80211_minstrel.c | 574 --------------------- net/mac80211/rc80211_minstrel.h | 184 ------- net/mac80211/rc80211_minstrel_debugfs.c | 172 ------ net/mac80211/rc80211_minstrel_ht.c | 560 +++++++++++++------- net/mac80211/rc80211_minstrel_ht.h | 96 +++- net/mac80211/rc80211_minstrel_ht_debugfs.c | 57 +- 7 files changed, 482 insertions(+), 1163 deletions(-) delete mode 100644 net/mac80211/rc80211_minstrel.c delete mode 100644 net/mac80211/rc80211_minstrel.h delete mode 100644 net/mac80211/rc80211_minstrel_debugfs.c -- 2.28.0