Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4745517rwe; Mon, 17 Apr 2023 18:29:26 -0700 (PDT) X-Google-Smtp-Source: AKy350arfoIdDgTFOOtfOY25uniuCnNgUoTetq857NXBD5wfl8LvEuH91wSRFFm5+KuconD4OP9h X-Received: by 2002:a05:6a20:1601:b0:ef:d242:34f6 with SMTP id l1-20020a056a20160100b000efd24234f6mr6271851pzj.56.1681781365864; Mon, 17 Apr 2023 18:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681781365; cv=none; d=google.com; s=arc-20160816; b=dtzWisIJtQPGS3P+oNbyriyVFvWNrFVrbRlUArRwgyRBnAyZqaaToNg5ucJbbRITmP jxHGwi9TV+MjgDG18aA80C5piByO28Agpmn6GmztHCb/9LLmN351X6DujaC1vocA6u+V XUkvERzt2f/+3OyiNcknY+nOUvsKfux75AXXCdEbcqtexSZrs2/SjHEffU2SKh4Cj0ZG UnKH1hbfJup9Bn0jajPbFT5ntmaK2F/HcDc/IoSqIql1sUC4i6QcgpoP32XRjWj8Kf/q nY3ODfH9BZKg9CzV24QYGR4i3WNWq8U4rKDSUqTcO2iQyucuvY4oR+csontdXv+L8x4/ Snmw== 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:authenticated-by; bh=LAgL9exnEqx2d/our8udx5b4hGDMSPm+fUu0MzjSE5U=; b=mZegjIz7UkjmcTAFF1Qz+jcEoSxPx/RrKqLe3sXuhF6bYcV6FzkoCZryGTyvsc+Z35 t02ZV65dps5U5k31+ffJcOsmYsCZCy4WC8UIHr8JydWC6u0WnAkgOB9Sb4Dd3BX2AtL5 tJ34XuMRXQy1bIJ0ZCxOniW11xunn1oinSbeEduSgrGw0Fy8WfPbpTxkt6VF1+/PR8Qj 0OykXL2eoj+uUeULVjFm+BhSxJ2AXa4JuNCTPeoYGqgVeNdTDuqR2j0GjoNdQI5FVrE8 167hoszlRKb17aeyw/6LxyTWfaPz0UCKh8uYvsHfo4wtG0tjxLccN9OTT2cukcOEXWeC G9rQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u145-20020a627997000000b0063b60063f55si11385232pfc.382.2023.04.17.18.29.17; Mon, 17 Apr 2023 18:29:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229951AbjDRB26 (ORCPT + 63 others); Mon, 17 Apr 2023 21:28:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbjDRB25 (ORCPT ); Mon, 17 Apr 2023 21:28:57 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8509859CA for ; Mon, 17 Apr 2023 18:28:44 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 33I1SaX92015053, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 33I1SaX92015053 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Tue, 18 Apr 2023 09:28:36 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Tue, 18 Apr 2023 09:28:36 +0800 Received: from localhost (172.21.69.188) 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; Tue, 18 Apr 2023 09:28:36 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH v2 0/7] wifi: rtw89: support antenna diversity Date: Tue, 18 Apr 2023 09:28:13 +0800 Message-ID: <20230418012820.5139-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.188] 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-KSE-ServerInfo: RTEXH36505.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=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org We have had path diversity before, and the difference of adding antenna diversity is that uses GPIO to control SPDT or DPDT to switch antenna. The upcoming chip 8851B has two variety hardware modules; one is single one antenna module, the other is two antenna module that needs this mechanism to have benefit. To help verify and debug this feature, patches 3/7 and 4/7 are to add the debug information. The last two patches are to add RSSI and EVM based antenna diversity respectively. v2: - correct wording of subject of patch 1/7 and 5/7 - no change of patch content Eric Huang (3): wifi: rtw89: initialize antenna for antenna diversity wifi: rtw89: add RSSI based antenna diversity wifi: rtw89: add EVM for antenna diversity Ping-Ke Shih (4): wifi: rtw89: use struct rtw89_phy_sts_ie0 instead of macro to access PHY IE0 status wifi: rtw89: set capability of TX antenna diversity wifi: rtw89: add RSSI statistics for the case of antenna diversity to debugfs wifi: rtw89: add EVM and SNR statistics to debugfs drivers/net/wireless/realtek/rtw89/core.c | 75 ++++- drivers/net/wireless/realtek/rtw89/core.h | 34 +++ drivers/net/wireless/realtek/rtw89/debug.c | 24 +- drivers/net/wireless/realtek/rtw89/mac.c | 9 + drivers/net/wireless/realtek/rtw89/mac80211.c | 7 +- drivers/net/wireless/realtek/rtw89/phy.c | 261 ++++++++++++++++++ drivers/net/wireless/realtek/rtw89/phy.h | 12 + drivers/net/wireless/realtek/rtw89/reg.h | 21 +- drivers/net/wireless/realtek/rtw89/txrx.h | 19 +- 9 files changed, 437 insertions(+), 25 deletions(-) -- 2.25.1