Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp372772rdb; Fri, 6 Oct 2023 06:14:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyOVNgq+NdELU/ejkKp4vhIdrg3jlg3jhjZhyrKusuZADH/lYI7wAPbXxKXF9yne6msfZh X-Received: by 2002:a05:6a00:1d89:b0:68f:c6f8:144a with SMTP id z9-20020a056a001d8900b0068fc6f8144amr7352631pfw.22.1696598062024; Fri, 06 Oct 2023 06:14:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696598062; cv=none; d=google.com; s=arc-20160816; b=exHK14C98WUzl4tyXfjkH0lC25r2Km306r3Bj4CefAJh7cdX17e6rMOfFyZ3kHy3Wb 37Op3cAPwWyF978qGRTLQb+GZeiBiRgtGInvzOODPA5IvS8jj+qEcIdkiZ0QXSunk5nY IKMgU0QrrCHbnJRpzVxG6GaZBQTU8AEMIw0UEjwkcwV6cwj8r2kMpJ4QWeJgorwk03xb lGBNHBY5E8vqKXfKas/4CyxkEOqMwiVslF0fazc2BAtqwVROIzK31/tHZIhMtvlhaeHY +grg9hbWWI4luhYrc9IL/hfGFbdquy0m5kJrsOdpl3W+ca54DgxryXPoz8DL3nK8Ul5J j7wQ== 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=ARZEQ6W6q4/9DCE0T1s0RrqsHU0SUjMRxxzTvabG6q4=; fh=HazNXdIX0AV/SunPhS44scAMfyv5oAksttxwN9EpOFc=; b=wTQmMRI1CeH7IeZEDuqw4AyDT4aiRyQAjnsIRclrvxFPlP50ZSkPeTzGnD8y5nNgnP MFYsyMg50ZcjZaLxvdc2NjIxZlzqW8zNfHMZQRJ5bZlk62g+PdEQ+MS7OhMnF+RBabPo OjE/FWXyBbQysoW4eR5g4j1qqlZEknP3fFUsa/f5kKUZ96VtqZDFLHIZ3vn2Xjx5Ht1u ysIOrUtzSVMl24O9YMwHjk52NdqTUs9YaScNN5oXFE1xL7g1d4PICh7+c30eMxnVQWlW aXNF5V9Pfm+Df+8aSJ/HV7J7cCi0prX2SdGoahvhf/PE8cx0DpKLfIxYhpqEBRVZTgyi Vjag== 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 t22-20020a056a00139600b00690daa48517si1522105pfg.200.2023.10.06.06.14.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 06:14:22 -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 0D1F182385E0; Fri, 6 Oct 2023 06:14:20 -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 S232262AbjJFNOI (ORCPT + 52 others); Fri, 6 Oct 2023 09:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231705AbjJFNOH (ORCPT ); Fri, 6 Oct 2023 09:14:07 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB3E49F for ; Fri, 6 Oct 2023 06:14:05 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 396DDmkO61891442, 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 396DDmkO61891442 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 6 Oct 2023 21:13:48 +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, 6 Oct 2023 21:13:48 +0800 Received: from [127.0.1.1] (172.16.16.139) 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, 6 Oct 2023 21:13:48 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 0/6] wifi: rtw89: handle EHT rate Date: Fri, 6 Oct 2023 21:13:21 +0800 Message-ID: <20231006131327.16806-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.16.16.139] 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]); Fri, 06 Oct 2023 06:14:20 -0700 (PDT) X-Spam-Level: ** We have parsed new formats used by WiFi 7 chips before, and this patchset is to handle EHT rate. The handlers contain - RX rate * from RX descriptor, which is also used to find corresponding PPDU status packet - TX rate * RA (Rate adaptive) mask to tell firmware selectable rates * RA report tells driver the rate selected by firmware - debugfs * show TX/RX rate above - monitor mode * add enumerators of radiotap bandwidth of EHT U-SIG * add EHT radiotap if working on monitor mode Ping-Ke Shih (6): wifi: rtw89: parse EHT information from RX descriptor and PPDU status packet wifi: rtw89: Add EHT rate mask as parameters of RA H2C command wifi: rtw89: parse TX EHT rate selected by firmware from RA C2H report wifi: rtw89: show EHT rate in debugfs wifi: radiotap: add bandwidth definition of EHT U-SIG wifi: rtw89: add EHT radiotap in monitor mode drivers/net/wireless/realtek/rtw89/core.c | 125 ++++++++++++++++++--- drivers/net/wireless/realtek/rtw89/core.h | 11 +- drivers/net/wireless/realtek/rtw89/debug.c | 14 +++ drivers/net/wireless/realtek/rtw89/phy.c | 70 +++++++++++- drivers/net/wireless/realtek/rtw89/phy.h | 5 + include/net/ieee80211_radiotap.h | 6 + 6 files changed, 214 insertions(+), 17 deletions(-) -- 2.25.1