Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp22782rdg; Wed, 11 Oct 2023 19:15:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFGZSfVNkm81fpcoMEjMRVWbM3oI4MnET7c0HBY85mqOKGjvqyEA26IjCQEcHvxJtK/V4e/ X-Received: by 2002:a17:90a:f495:b0:277:3afc:f27 with SMTP id bx21-20020a17090af49500b002773afc0f27mr28642293pjb.1.1697076939439; Wed, 11 Oct 2023 19:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697076939; cv=none; d=google.com; s=arc-20160816; b=b8QpH0T2yg3TeJbdDurSRmQrsYlK5ZOGUFYGmwXAfm8YTWvAIeazjDyg6zaDLyWC5a 4vz1cCDJR1nOplUflQfQkp8ZubdYUBUXZLH84PZRWdP2nwJFRSLyNdkCmBgfHKGqbHtN eJpCB0bCMzoPj8MwtOlk+6+vlBJXVeEOq4pftSZuP7rVvbK021W9GQdeMmV+1wMbMs6i ww97/2GGHMTThJlN1/E09MU7yZdLIdkI3twbW/IDx7v6tWkGS9k1o1Os/VE2tBZ9yqS2 gLoxmAdvpPwoVVjJ3DsUzHGX6FXfn8KHKcX7B+FYbdv4FmoPNCx4VRezpEmWoVj7IahF 86hQ== 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; bh=C63X5mQ64/Cp+CdW2iL5ryXXSMdXvppdnxnC2B/ESpU=; fh=TSuyMlfOTyCx0zt3ucDyTttlN37QPvmvgk5pf20rBgY=; b=dKKYxUJaNSeCaJ1NrHFiC1o6ytYiBiwD2h0Q8FkXBJXQiZqBzIt51uRry92/DWfcx4 O6DovAYS/uC9V311gyMP2GjNbpXIBWR/V9ST2pWshLMwTlrf0/0FTNaRgnoMaIrP+WMR AnpcuJe5bxAODJFXXVochUoNdzRE05S9KUOYBLCUJOxXr/WgruJrhGkCiZ6DDqfSC/wd A8Fpybb3PEJk8QdC+FWG1iX+zgdiCroqtP26l+Va5x7MnVU3+Io8/w+2PiMSfhH8NRuR zkjGr3E2s+McNYg43UeYxJHnXonbPYTDrb6XxcdClBBULj8EgC2/tv0k63gLtyfy5o1f EFbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id pc14-20020a17090b3b8e00b0027d094597c3si1311836pjb.83.2023.10.11.19.15.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 19:15:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 15218818B82B; Wed, 11 Oct 2023 19:15:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233989AbjJLCP3 (ORCPT + 52 others); Wed, 11 Oct 2023 22:15:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231898AbjJLCP2 (ORCPT ); Wed, 11 Oct 2023 22:15:28 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A38898 for ; Wed, 11 Oct 2023 19:15:26 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 39C2FJiG4627629, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.92/5.92) with ESMTPS id 39C2FJiG4627629 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Oct 2023 10:15:19 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Thu, 12 Oct 2023 10:15:19 +0800 Received: from [127.0.1.1] (172.21.69.25) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 12 Oct 2023 10:15:19 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH v2 0/6] wifi: rtw89: generalize MAC registers to support WiFi 7 chips Date: Thu, 12 Oct 2023 10:14:49 +0800 Message-ID: <20231012021455.19816-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.69.25] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 11 Oct 2023 19:15:30 -0700 (PDT) X-Spam-Level: ** WiFi 7 registers of RTS, MU-EDCA and beamforming are different from existing chips, but we can still possibly reuse most of existing code. The initial beamformee code when associated is largely different, so make them as individual functions. v2: - correct commit message of patch 5/6 Ping-Ke Shih (1): wifi: rtw89: mac: add registers of MU-EDCA parameters for WiFi 7 chips Zong-Zhe Yang (5): wifi: rtw89: mac: update RTS threshold according to chip gen wifi: rtw89: mac: generalize register of MU-EDCA switch according to chip gen wifi: rtw89: mac: set bfee_ctrl() according to chip gen wifi: rtw89: mac: set bf_assoc capabilities according to chip gen wifi: rtw89: mac: do bf_monitor only if WiFi 6 chips drivers/net/wireless/realtek/rtw89/mac.c | 57 ++++-- drivers/net/wireless/realtek/rtw89/mac.h | 22 ++- drivers/net/wireless/realtek/rtw89/mac80211.c | 16 +- drivers/net/wireless/realtek/rtw89/mac_be.c | 174 ++++++++++++++++++ drivers/net/wireless/realtek/rtw89/reg.h | 79 ++++++++ 5 files changed, 322 insertions(+), 26 deletions(-) -- 2.25.1