From patchwork Fri Oct 27 01:50:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ping-Ke Shih X-Patchwork-Id: 13438037 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 641E1C25B6B for ; Fri, 27 Oct 2023 01:56:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345118AbjJ0B4o (ORCPT ); Thu, 26 Oct 2023 21:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345102AbjJ0B4m (ORCPT ); Thu, 26 Oct 2023 21:56:42 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7638AB for ; Thu, 26 Oct 2023 18:56:40 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 39R1uWl153466053, 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.93/5.92) with ESMTPS id 39R1uWl153466053 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Oct 2023 09:56:32 +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; Fri, 27 Oct 2023 09:55:13 +0800 Received: from [127.0.1.1] (172.21.69.94) 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; Fri, 27 Oct 2023 09:51:35 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH v2 0/4] wifi: rtw89: update address CAM size and PPDU parser to support WiFi 7 chips Date: Fri, 27 Oct 2023 09:50:55 +0800 Message-ID: <20231027015059.10032-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [172.21.69.94] 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 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Patch 1/3 is to fill various entry size of address CAM accordingly, because hardware designer shrinks size for new chips. Patch 2/4 ~ 3/4 aim to adjust parser of RX PPDU status, the logic is almost the same as existing, but size and fields are changed a little. The PPDU packet looks like +---------------------------+ | RX WD | (RX WD is fixed length basically) | type = PDDU satus | | | +---------------------------+ | PPDU status - MAC part | | * basic info (8 bytes) | (basic info indicates if following fields | - usr_num | are existing) | - with_rx_info | | - plcp_len | | * usrs[usr_num] | | * rx info(128 bytes opt.) | | * plcp[plcp_len] | +---------------------------+ | PPDU status - PHY part | | * basic info (8 bytes) | | - total length | | * IEs[] | (iterate all IEs within total length) +---------------------------+ v2: correct typo of subject prefix of patch 3/4 Ping-Ke Shih (3): wifi: rtw89: set entry size of address CAM to H2C field by chip wifi: rtw89: consider RX info for WiFi 7 chips wifi: rtw89: extend PHY status parser to support WiFi 7 chips Zong-Zhe Yang (1): wifi: rtw89: configure PPDU max user by chip drivers/net/wireless/realtek/rtw89/cam.c | 16 +++- drivers/net/wireless/realtek/rtw89/core.c | 86 ++++++++++++++++--- drivers/net/wireless/realtek/rtw89/core.h | 3 +- drivers/net/wireless/realtek/rtw89/mac.h | 1 + drivers/net/wireless/realtek/rtw89/rtw8851b.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8852a.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8852b.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8852c.c | 1 + drivers/net/wireless/realtek/rtw89/txrx.h | 4 + 9 files changed, 99 insertions(+), 15 deletions(-)