Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2390792rdh; Wed, 27 Sep 2023 00:40:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKsi2QVYZxs9jPVywlRTLcNiQREnbO3XOEwUh/d+HwAdA6HpyCv9wCwYqO4q8z0B6SkZz+ X-Received: by 2002:a05:6870:968c:b0:1d6:1755:825e with SMTP id o12-20020a056870968c00b001d61755825emr1836499oaq.25.1695800440848; Wed, 27 Sep 2023 00:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695800440; cv=none; d=google.com; s=arc-20160816; b=wXzgitfU9cfjEoW37OblT0Db+7R0cPcK+MgXe/vCEvbKFBb1f1Yc2uC7hiTTY0xCL+ EDbEziwyMfQ0hNE/Zww/VhNGEWOBMkYyoPp3fYfoJfW1hj9+L7p163mNjOklGd+TmPsx qLSSGUagF0kkdfb18/9rnIPEHzSrK7jCS1RgqcJqH8/Lt020Ih1hRmXioUyEyC1UL6XE f0Y/CEnRDbJZszjjSq6vg7RnXM6C5Eb2LjyiWIEzj2nUUjyTInUmDre3czJ2wiYQkUQh R3LvNx52k6AQt4JFOds0mTI15B5GAEXJVCyRL0DxsZ/7xNKp+WFf7D/DR3k2Zs1b35IS sPug== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Ch6gVEcTfL+/Fwc/c9Ekf4ce10PYe8glSvJOwngMwrY=; fh=TSuyMlfOTyCx0zt3ucDyTttlN37QPvmvgk5pf20rBgY=; b=KA1P8Hs0pNNUT66V+OgSZH0hQBj3Tkxv4wrUpwPILsaVM34JkjTbLyYRmK5GuCgQNN VOqGuiKk1bCam6M2RkKIr425zz7kXpXN5kWZ0/+t19WeLuAUNmPTjWmgFVN89vZK9wcs rhDiHN2WfBOhrCx/U0cma6uka9JZTxOFotN1H7He3yEeHn7QWAagElx6nXW234g2fPoN ApzW4Ew9mGq8SAl5TTyPSrnfXOrBYB9s1kcggVjMd9G+W0uz1dEHHkc5PS297B/U6Oa1 Ix2G7ZHPhG6kUP5iuA0sjOeE53le9WwdyB3BBQRzELX3V1U9npNjlPhwG2vkUr5YRnp1 zB/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id az1-20020a056a02004100b00578a56baebesi14728570pgb.674.2023.09.27.00.40.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 00:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 1BB5083E8FD4; Wed, 27 Sep 2023 00:22:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230017AbjI0HWZ (ORCPT + 56 others); Wed, 27 Sep 2023 03:22:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbjI0HWX (ORCPT ); Wed, 27 Sep 2023 03:22:23 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 686091B5 for ; Wed, 27 Sep 2023 00:22:19 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 38R7MC9202061714, 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 38R7MC9202061714 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 27 Sep 2023 15:22:12 +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; Wed, 27 Sep 2023 15:22:12 +0800 Received: from [127.0.1.1] (172.21.69.25) 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; Wed, 27 Sep 2023 15:22:11 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 1/4] wifi: rtw89: regd: configure Thailand in regulation type Date: Wed, 27 Sep 2023 15:21:53 +0800 Message-ID: <20230927072156.26336-2-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230927072156.26336-1-pkshih@realtek.com> References: <20230927072156.26336-1-pkshih@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.69.25] 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, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 27 Sep 2023 00:22:27 -0700 (PDT) From: Zong-Zhe Yang Realtek RFE (RF Front End) parameters can consider Thailand individually now, so we add it into regulation type enum. Then, we map country code TH to RTW89_ETSI/RTW89_THAILAND according to band. The RF TX power tables will add entries for RTW89_THAILAND in the following. Signed-off-by: Zong-Zhe Yang Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/core.h | 1 + drivers/net/wireless/realtek/rtw89/regd.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw89/core.h b/drivers/net/wireless/realtek/rtw89/core.h index ac09785c21a6..1c972f59fa17 100644 --- a/drivers/net/wireless/realtek/rtw89/core.h +++ b/drivers/net/wireless/realtek/rtw89/core.h @@ -709,6 +709,7 @@ enum rtw89_regulation_type { RTW89_CN = 12, RTW89_QATAR = 13, RTW89_UK = 14, + RTW89_THAILAND = 15, RTW89_REGD_NUM, }; diff --git a/drivers/net/wireless/realtek/rtw89/regd.c b/drivers/net/wireless/realtek/rtw89/regd.c index c956a8b971c6..ca99422e600f 100644 --- a/drivers/net/wireless/realtek/rtw89/regd.c +++ b/drivers/net/wireless/realtek/rtw89/regd.c @@ -115,7 +115,7 @@ static const struct rtw89_regd rtw89_regd_map[] = { COUNTRY_REGD("SG", RTW89_ETSI, RTW89_ETSI, RTW89_NA), COUNTRY_REGD("LK", RTW89_ETSI, RTW89_ETSI, RTW89_NA), COUNTRY_REGD("TW", RTW89_FCC, RTW89_FCC, RTW89_NA), - COUNTRY_REGD("TH", RTW89_WW, RTW89_WW, RTW89_WW), + COUNTRY_REGD("TH", RTW89_ETSI, RTW89_ETSI, RTW89_THAILAND), COUNTRY_REGD("VN", RTW89_ETSI, RTW89_ETSI, RTW89_NA), COUNTRY_REGD("AU", RTW89_ACMA, RTW89_ACMA, RTW89_ACMA), COUNTRY_REGD("NZ", RTW89_ACMA, RTW89_ACMA, RTW89_ACMA), -- 2.25.1