From patchwork Tue Dec 12 07:25:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1874903 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Sq9DG0Qw3z20H7 for ; Tue, 12 Dec 2023 18:27:08 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rCxAJ-0006xw-Ak; Tue, 12 Dec 2023 07:26:51 +0000 Received: from mail-pf1-f182.google.com ([209.85.210.182]) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rCxAE-0006x6-LN for kernel-team@lists.ubuntu.com; Tue, 12 Dec 2023 07:26:46 +0000 Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-6cebbf51742so3697551b3a.1 for ; Mon, 11 Dec 2023 23:26:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702366003; x=1702970803; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tUyAHNQM12S1a3ODUCWPFs5dc6t3bWlgxcR3ZpTEGVU=; b=RhSspio6OXSfPjjBWYIJffzTPVhiTqXIaBeqUjOAmKOKjvv4JHtaFjS9hlX5/ESkVU Y/tnwVfjht6ncxhB04lDohnFQHyW9XhMdYzgra0doNuyebjQHhKZfDLQTJ/YB6oLK4i4 5rJTmsN8k7WUXkWEGtGvRPvUjzXmqxe8ovq4uqe2/kxctcB7Yazjo9mBmgvyjJeKpED9 9yR6YNRFnbwP+LYzuuqCnQvJpI4t7xV8KSwC5Dhb4xGru0oXZkFzob6SpQpuFZ0atvV1 of5g1WG8aCab8pthYzz2mu+WbRVuQWnQb7Icb+VdkgTUuQ48lChVumbF9OFJO/zqKORb 6XkQ== X-Gm-Message-State: AOJu0YyqwYL+fB+EIemmvvTxNi9Z4O62h7B1H5sdprP07ESuaDlgYP2o WsKssuxDXIHEPs0NyRDY1QzOvXBZYd8= X-Google-Smtp-Source: AGHT+IGeQWmYng+1lH73+iS6XYHFB7Df4i7abKctS5MIXbfoJF9CnibX2E7P/ZEwaE4/IXr/itQWpQ== X-Received: by 2002:a05:6a00:21c3:b0:68f:c078:b0c9 with SMTP id t3-20020a056a0021c300b0068fc078b0c9mr5853432pfj.11.1702366002650; Mon, 11 Dec 2023 23:26:42 -0800 (PST) Received: from localhost.localdomain (125-229-129-140.hinet-ip.hinet.net. [125.229.129.140]) by smtp.gmail.com with ESMTPSA id n19-20020aa78a53000000b006ce61c9495bsm7745223pfa.10.2023.12.11.23.26.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 23:26:42 -0800 (PST) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 00/10][Noble] New China SRRC compliance readiness check for Realtek WLAN Date: Tue, 12 Dec 2023 15:25:54 +0800 Message-Id: <20231212072604.2198209-1-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.210.182; envelope-from=vicamo@gmail.com; helo=mail-pf1-f182.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2043964 [Impact] SRRC (State Radio Regulation of China) compliance readiness check for Realtek WLAN. [Fix] Capability for Realtek WiFi TX power tables load and report from RFE (RF front end) parameters is needed. Multiple commits from vanilla kernel. [Test Case] ``` $ sudo iw reg set CN # manually connect to 5G ap : center channel 155 bw 80 M $ sudo cat /sys/kernel/debug/ieee80211/phy0/rtw89/txpwr_table | \ grep -E 'MCS_2TX_80M_0|Regulatory' ``` The expected output s ``` Regulatory: CN MCS_2TX_80M_0 - NON_BF BF | 10, 9, dbm ``` And verification fail output: ``` Regulatory: CN MCS_2TX_80M_0 - NON_BF BF | 15, 10, dbm ``` [Where problems could occur] This updates the behaviors and constraints of radio device power transmission for rtw89 driver, and must be done for regulatory compliance. [Other Info] As needed for oem-6.5/jammy, nominate only for Noble and oem-6.5/jammy. All the patches are in v6.7-rc now. Ping-Ke Shih (1): wifi: rtw89: add subband index of primary channel to struct rtw89_chan Zong-Zhe Yang (9): wifi: rtw89: indicate TX shape table inside RFE parameter wifi: rtw89: indicate TX power by rate table inside RFE parameter wifi: rtw89: load TX power by rate when RFE parms setup wifi: rtw89: phy: refine helpers used for raw TX power wifi: rtw89: phy: extend TX power common stuffs for Wi-Fi 7 chips wifi: rtw89: regd: configure Thailand in regulation type wifi: rtw89: 8852c: update TX power tables to R67 wifi: rtw89: 8852b: update TX power tables to R35 wifi: rtw89: 8851b: update TX power tables to R34 drivers/net/wireless/realtek/rtw89/chan.c | 15 + drivers/net/wireless/realtek/rtw89/core.c | 14 +- drivers/net/wireless/realtek/rtw89/core.h | 63 +- drivers/net/wireless/realtek/rtw89/phy.c | 98 +- drivers/net/wireless/realtek/rtw89/regd.c | 2 +- drivers/net/wireless/realtek/rtw89/rtw8851b.c | 6 +- .../wireless/realtek/rtw89/rtw8851b_table.c | 1337 +++--- .../wireless/realtek/rtw89/rtw8851b_table.h | 3 - drivers/net/wireless/realtek/rtw89/rtw8852a.c | 1 - .../wireless/realtek/rtw89/rtw8852a_table.c | 2 + .../wireless/realtek/rtw89/rtw8852a_table.h | 1 - drivers/net/wireless/realtek/rtw89/rtw8852b.c | 6 +- .../wireless/realtek/rtw89/rtw8852b_table.c | 333 +- .../wireless/realtek/rtw89/rtw8852b_table.h | 3 - drivers/net/wireless/realtek/rtw89/rtw8852c.c | 6 +- .../wireless/realtek/rtw89/rtw8852c_table.c | 3773 +++++++++++++++-- .../wireless/realtek/rtw89/rtw8852c_table.h | 3 - 17 files changed, 4567 insertions(+), 1099 deletions(-) Acked-by: Andrei Gherzan Acked-by: Tim Gardner