Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4023414rwr; Mon, 8 May 2023 01:26:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5viAhilemq6tw4w7Any9YgoNvjT18ESmzAOc3hbOQEPafjcSVtVKcAoAhqv2Nbj86KOkOR X-Received: by 2002:a17:90a:eac2:b0:246:8497:37c5 with SMTP id ev2-20020a17090aeac200b00246849737c5mr9408578pjb.46.1683534395885; Mon, 08 May 2023 01:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683534395; cv=none; d=google.com; s=arc-20160816; b=cxyZWOyiw19nL5aM9cpY1Ecosn5VMuumRwn1pdqa8ryorvuQDxkCT6bZmPhvfthj1n WhAbn9xfkWgDD+/lsuJ5j+44d0cQRO5PBSPZR/iwWXsk07zVE+tYn3miUS2e1XlViFb6 AY+pcfc8D2XRDn5xznlGb/xEJoQvyFYmx0SnAZUEK8DfhPtIaOakoRecp3ZVoTkM+1lh aYhX5qVuJSSnOqGzhDnpvm39mElwGw5Hkahn6Z0OnuIvJICq0dqkys3aUAiye3W9ld1c Hc0uLMEYkvYhRGNFLAWk7rQmlmhbP+Z9TGRiMOSOOYnP9Q3hZt1Spn+xKh/0z1NTNwGr WZKA== 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=6MiBq9KvNtB+ZtBxgaXvoZEaAkR4BNsHGmAa7Y9wR/A=; b=ITmhabhW/mi6U/8UkvT2PzSe/FnQlorM+T+w4vNKln/viOeOAS0TQImCwZHm//NT+y cg01mSE5aFE8hshttYoYMc589lSj4SB12Gq01AIcrRnyna5HlEqmSjM7N7ARGNY5trj3 8rZDFv4O8TDZ6KWANdTFcyreXOBxgVkVQprl2w4n70KDBO726Pab//XXrgOTQIgUJxyw TsiIvosW2YFjs5/paBXfsLJ+E08zGhaSkCMhs18H6rGrVlL+vzJXvhxuX2UhY2XS51Sq dtV1LOfTffdMZacxppAQyItqCRxH3iMHrXlpAh2neSOLS7lBgqmJYxmi6v1oQ3MW+vfv +YZw== 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 a3-20020a63e843000000b0052ca3209fccsi8231130pgk.650.2023.05.08.01.26.28; Mon, 08 May 2023 01:26:35 -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 S233291AbjEHIMq (ORCPT + 61 others); Mon, 8 May 2023 04:12:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233207AbjEHIMp (ORCPT ); Mon, 8 May 2023 04:12:45 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51EF83C34 for ; Mon, 8 May 2023 01:12:40 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 3488CLYP0006032, 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 3488CLYP0006032 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Mon, 8 May 2023 16:12:22 +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; Mon, 8 May 2023 16:12:27 +0800 Received: from [127.0.1.1] (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, 8 May 2023 16:12:27 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 0/3] wifi: rtw89: support U-NII-4 5.9GHz channels Date: Mon, 8 May 2023 16:12:08 +0800 Message-ID: <20230508081211.38760-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 8852B, 8852C and upcoming 8851B can support U-NII-4, so add this patchset to enable this feature. However, we can't turn it on unconditionally, because hardware may not get certification in certain platforms, so add a flag in BIOS ACPI to determine if we should disable these channels. Zong-Zhe Yang (3): wifi: rtw89: introduce realtek ACPI DSM method wifi: rtw89: regd: judge UNII-4 according to BIOS and chip wifi: rtw89: support U-NII-4 channels on 5GHz band drivers/net/wireless/realtek/rtw89/Makefile | 3 +- drivers/net/wireless/realtek/rtw89/acpi.c | 52 ++++++++++++++++ drivers/net/wireless/realtek/rtw89/acpi.h | 21 +++++++ drivers/net/wireless/realtek/rtw89/core.c | 10 ++- drivers/net/wireless/realtek/rtw89/core.h | 2 + drivers/net/wireless/realtek/rtw89/regd.c | 61 +++++++++++++++++++ drivers/net/wireless/realtek/rtw89/rtw8851b.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8852a.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8852b.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8852c.c | 1 + 10 files changed, 151 insertions(+), 2 deletions(-) create mode 100644 drivers/net/wireless/realtek/rtw89/acpi.c create mode 100644 drivers/net/wireless/realtek/rtw89/acpi.h -- 2.25.1