Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2896232lqt; Tue, 23 Apr 2024 05:13:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmKG1BiXswszqQf873M/ia6ol+xePBbpLHw9RJm11fPqHM3gPS6cCSXOsALGWLZgQRvBUZsW43yTl8ZLtPUOt8Ae7FvhsMELHIGObK3w== X-Google-Smtp-Source: AGHT+IH2h22DI694VFdvGkAshKtwLOE+oOYT+GndvQmXAhRuqhWgKQ8/MYCNvjtd3GH0p1U1bIxY X-Received: by 2002:ac8:7fc2:0:b0:439:b718:2769 with SMTP id b2-20020ac87fc2000000b00439b7182769mr5968330qtk.62.1713874402859; Tue, 23 Apr 2024 05:13:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713874402; cv=pass; d=google.com; s=arc-20160816; b=fHXfSfN4ljJGgJjGZ1pHofAUWxHYKh7kzU3zGyTz4F/eJQE90PQYV/vlv+e+UCqsQA 4jY7cXEo3+mCiolqA++OLhKmJqhVqnD1xKx5VfVTqyMX04BF+57GoburGH+pn83WF8qj noUei5lEtqT5eLxPKVEzfJfcVj7HPktGJ6cERUTPkKFYNWhdU+WzZXJB2ispk1CvUGuT QoKGQIZuHxDmiDY4iJtw6Xy1/lgc0zuTRq+qy6vislIAl5axVQ3ZyJCDZmGv4uUs8DmS Cl2f4RUplh+vvKTm04PBhZa7oAJUyY6al+UQImPIUts9Ig4jO351ptFxmmhl6lPn/oNb tbZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=RWVcfkgEr7AzYPOR7TSVKQHYoLkFFL22tl5mCiTrqhw=; fh=nZ4EW4wIR4SOAkMnfyQxvIgBa/rft4E9njpUUoXsYRI=; b=hLP+a0sG97/fuWgvn3gQruZPAbN0dZi7WatePmmDSykdW8uXdqDx5KFaxA2p9JLXO2 ItkMWCt7dQdK06lBSdEO3xaopahdf1B4npbETwYfGlxD04wb2aFSNjC/Y3nY4LKtf0Zz xb3dO9q4CThQxdznrbRfp3/qPVw6j1xCn0S1gF8SnIyKWanZ6UDf98YXMehudxVzfD2T lPbAXXXzJ5v0fnUxpdUw/Qvvjt7hIm5TfPF7gryl8RrF/hL4nYXy5oCe4L4fkCUotZ0r h7lARyVTu5zXS7NFpj8bL9Bc3QmeeT9TZlJgsPFXEApWZtTBPCq/08ia4LstoHvun3PX dZrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-6720-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6720-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bp7-20020a05622a1b8700b00436928ebdefsi10371795qtb.42.2024.04.23.05.13.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 05:13:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6720-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-6720-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6720-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 822A41C2171F for ; Tue, 23 Apr 2024 12:13:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 451AB84A54; Tue, 23 Apr 2024 12:13:20 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10B31537F7 for ; Tue, 23 Apr 2024 12:13:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713874400; cv=none; b=pSMEwaLEa4L6dvhTM19VltV1wsB5o18F1wdSjRJJM1CjlOe+ddITLWwgX9ScBdeu8vjD6bI2J7PyiJEWk3AaYA0aMIFyMxGj7/ijmkCP6Aw97cDXhNMNGRR+fIgRefkkH1HFRIADxjALQSAWF0uDrZpiTbJzO/+1p5Ekzat2ojE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713874400; c=relaxed/simple; bh=A12YzMWqFfUVPDT8assRu9b3Y0ZCvKTIV6kZGukYtXE=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=FZx6a8gMU+WEE0iljHp6kYRnw/FGzJB55gv0lyxlpzkJv6MdgG2MI4lrLb5t3+XeQ6Kfsa+MzMcOXb5toxFSh7vvWd0OhDEYM8TTtL+dyUBHeZXNrV030nszux2SbwmSzEz2W0SiPcuJUcBowBhTRNzO6tOsSB2j4n+PU8DefqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 43NCDFXu81225436, 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.95/5.92) with ESMTPS id 43NCDFXu81225436 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 23 Apr 2024 20:13:15 +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_256_GCM_SHA384) id 15.1.2507.35; Tue, 23 Apr 2024 20:13:16 +0800 Received: from [127.0.1.1] (172.16.20.182) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 23 Apr 2024 20:13:07 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH 1/2] wifi: rtw89: fix CTS transmission issue with center frequency deviation Date: Tue, 23 Apr 2024 20:12:46 +0800 Message-ID: <20240423121247.24714-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) From: Kuan-Chung Chen The CTS cannot be received by the peer due to center frequency deviation. This issue can be solved by correct settings to transmit proper CTS. Signed-off-by: Kuan-Chung Chen Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/mac.c | 5 +++++ drivers/net/wireless/realtek/rtw89/mac_be.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/drivers/net/wireless/realtek/rtw89/mac.c b/drivers/net/wireless/realtek/rtw89/mac.c index 8b34044f7a8a..b78b110ac7b2 100644 --- a/drivers/net/wireless/realtek/rtw89/mac.c +++ b/drivers/net/wireless/realtek/rtw89/mac.c @@ -3644,6 +3644,7 @@ static int set_host_rpr_ax(struct rtw89_dev *rtwdev) static int trx_init_ax(struct rtw89_dev *rtwdev) { + enum rtw89_core_chip_id chip_id = rtwdev->chip->chip_id; enum rtw89_qta_mode qta_mode = rtwdev->mac.qta_mode; int ret; @@ -3687,6 +3688,10 @@ static int trx_init_ax(struct rtw89_dev *rtwdev) return ret; } + if (chip_id == RTL8852C) + rtw89_write32_clr(rtwdev, R_AX_RSP_CHK_SIG, + B_AX_RSP_STATIC_RTS_CHK_SERV_BW_EN); + return 0; } diff --git a/drivers/net/wireless/realtek/rtw89/mac_be.c b/drivers/net/wireless/realtek/rtw89/mac_be.c index f16467377eab..934bdf3b398f 100644 --- a/drivers/net/wireless/realtek/rtw89/mac_be.c +++ b/drivers/net/wireless/realtek/rtw89/mac_be.c @@ -1751,6 +1751,7 @@ static int set_host_rpr_be(struct rtw89_dev *rtwdev) static int trx_init_be(struct rtw89_dev *rtwdev) { + enum rtw89_core_chip_id chip_id = rtwdev->chip->chip_id; enum rtw89_qta_mode qta_mode = rtwdev->mac.qta_mode; int ret; @@ -1794,6 +1795,10 @@ static int trx_init_be(struct rtw89_dev *rtwdev) return ret; } + if (chip_id == RTL8922A) + rtw89_write32_clr(rtwdev, R_BE_RSP_CHK_SIG, + B_BE_RSP_STATIC_RTS_CHK_SERV_BW_EN); + return 0; } -- 2.25.1