Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3397649rwe; Sun, 16 Apr 2023 19:21:13 -0700 (PDT) X-Google-Smtp-Source: AKy350aXS+mqA6C0kNMB+Ge+Yf8QlSv+uzd4PO1SyJ8Ht8vMLoovX2joKXrxK2lwUHTMrtOZ/mUb X-Received: by 2002:a05:6a20:1606:b0:ef:4944:21d4 with SMTP id l6-20020a056a20160600b000ef494421d4mr5767041pzj.16.1681698073254; Sun, 16 Apr 2023 19:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681698073; cv=none; d=google.com; s=arc-20160816; b=T8NEjuFtT4GJdyTXGbmwklecuJEQ0VhbhEEQ32A+Epu3uKl6Y/XltvzTARD8TBhNBd k63bG1QzZ0FVD5T+WRSKpptmTWEkVefuqGIcbuwVDuk5DiInejS+zc9nvF3t3HZ7mbry H9Lv9/LWEp70de0GWZY16dTdAiOzPgXAWbvxk/8JZ9U15s1R5OBQhWIUEJw4iCg6e8hT leY6Uv5FsOX/SFeP5Ws67BZ4XQ9UC7Mii2rY8TnkwtvT+Nuu+x15+uZ5+QhBWl3buJo9 E4Y9yLGBlZmzEYj2x/SsX0pTFfMmlgDTw13OUgOte+EfyPQ6syuGlbDf/L69Fyb0fp9+ ER8A== 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=zNggZaVoacCIfT1smBREnn+wPlAvL94mSAb58CnMHlA=; b=vMYUQqWXNjbyOIeceuqg77BT94lMGdOP5WpjcC9J3O1TjzE/kr2IFg/2nmdLyznHRm TL1OUIpOLgeKmMT/ZSYi9Gjj85PNNCftPxcRuTDYZAtNH9VLcr7nH6L/yCyUOzAXJqhv d/u/swz/AHKXEv0dAUseyNwRiz3/6ved/+pjxjOMWx9oM6Moml1NzVjK2QDvv1/oLka5 yhdb+v38tLgV1w6GVFGRqXEMWwkui41dydeYiCJc8zTXmdT94gChN2/tJRoDS5cohCf6 XftZ6kEz7eptOri0NXrBRQwMsdMli8jOp2t1YM0VI2sD8Z/pspHNC8oSQzCX7EmdUVXI OhQA== 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 j15-20020a654d4f000000b0050c164c8e99si10359330pgt.436.2023.04.16.19.20.59; Sun, 16 Apr 2023 19:21:13 -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 S229647AbjDQCRj (ORCPT + 63 others); Sun, 16 Apr 2023 22:17:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjDQCRj (ORCPT ); Sun, 16 Apr 2023 22:17:39 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B94722136 for ; Sun, 16 Apr 2023 19:17:36 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 33H2GxNM2027319, 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.81/5.90) with ESMTPS id 33H2GxNM2027319 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Mon, 17 Apr 2023 10:16:59 +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; Mon, 17 Apr 2023 10:17:23 +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; Mon, 17 Apr 2023 10:17:22 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 0/7] wifi: rtw89: support antenna diversity Date: Mon, 17 Apr 2023 10:17:00 +0800 Message-ID: <20230417021707.16369-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-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. Eric Huang (3): wifi: rtw89: initialize antenna for antenna diveristy 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 insted 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