Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1740565lqa; Mon, 29 Apr 2024 19:05:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnd8j7Wqc/JGBNsf4eOSKW4iBoOqTq2IJOnyEPzV8iD3IRmS+oBjnbLqZmp6mzL17U5w4wJ5EmwczSdrjjrE9NI/mXQVe3XNogdWBc+w== X-Google-Smtp-Source: AGHT+IElgp5kF7ekC3zoaId1HofrGPSWpjGOje0vnq9xl+ajAGTe6bQ/1oLMQGo/ZHIGbi6Zzamd X-Received: by 2002:a17:903:1212:b0:1e3:999a:9726 with SMTP id l18-20020a170903121200b001e3999a9726mr14599569plh.29.1714442741815; Mon, 29 Apr 2024 19:05:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714442741; cv=pass; d=google.com; s=arc-20160816; b=tFXa1rjdRzgdXcA5ur0mWr9iZOl0qSRev/HfDiDnb32fDHjUPY0xVlxGQ9M5mqQmPt Ga9b77d2tcMYZvWzQfrh+ZApM3dR4zHlmbTZ/eBANYB5P8Nhp+/ho0kV2qN0RB766WPt Nrj3dc5iVq7fz+20cxBSVkZDcUW+WpgRQhJfe5wWDu3fnbDkBhosI/gf48x9Y9loAMah evXhY1FjSVMcJgd7b4Hrw1H7st3ssDx0Q8COjauW321knTE+DtuuVPl+FRIDSeIVAAZy NJbcWa34PWrS9lX1Kj69FfqeWHdtEgq3DpKR29tHWxTiMYJ6GhvEhuJBPooOg1aTabPl OzTg== 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:to:from; bh=Aj4Mtw1Lv9gsQdpH9LUeynW8BBbrmUnJzh0dBQaKGW8=; fh=i+pR0Y9t94OKZsARqUkLMEmtPQHvmw7bpTYa9QkhXpo=; b=GrqJcRJ/lAhUtNyLe+2p7/FpP5bjsQBBDbjWYBuBiwuJLb8DvPV3Fkzio/wmm9ZeHo VnXySAi1lxfbRfkcs/9Hg/rukjALXEFJcoUq3zs+IZRkbn4r2t3nyTcLFtREjl1Sw3gL CjfL1NpolzUqAk4LvAy1IDlOLYGc4DBL+qT+RjgYNgie+BhD5sbwrozoLnbItafryP5G F49gpgyoGj0gqWVNrUt6VTWvEhLGDezfuJjYH1s2L36DBIgW/ERheMG3mi6FQpCB17o/ v70UufpDBBWnKLvGXSyCOHpXp6NBQPVzDWdBmEMUATPZBcy+vu95PXw3nnrzbawKqdK2 qHWw==; 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-7018-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7018-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u16-20020a17090341d000b001ddbde8f59bsi21327765ple.582.2024.04.29.19.05.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 19:05:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7018-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-7018-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7018-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A5301B20E16 for ; Tue, 30 Apr 2024 02:05:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A9CA8BF0; Tue, 30 Apr 2024 02:05:36 +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 07C238BE0 for ; Tue, 30 Apr 2024 02:05:32 +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=1714442736; cv=none; b=pD0c43/KLJHYiZL0REEMTkmdFhDrBkwT1SkSKLqTcE8kNYP4WTfbO2CpDbe9Rvzkg5dUe3UEMupdZaSJPwXIMfa5ctVfGDGOVZU8bKiWholJCvqTk9JJyc3TPUY6WXkB5qpEWbwCkpf4iknQ37d4tcNFIpljjEdj9FRIQ8G34mw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714442736; c=relaxed/simple; bh=BZaOHqSNkHCxymDnTE8RJmfseMtvPutF9zpNjXvlNA0=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=poqITfwOS4aiMJEucFu+stL76kZ7JZEpFBLLcbaAPmjfEhBo7iyWjEX2kDK1oY+O15MmamLg639RJNV79it7oSIK8cCm4Ph3GObMHwvErPgHr7I+5YUKlynW6DgPwoR+bbh0hGCsAWGKJqYojbDyh5KxFsM+SK3+nXzxjaWfLq0= 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 43U25UYs84079483, 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 43U25UYs84079483 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 30 Apr 2024 10:05:30 +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, 30 Apr 2024 10:05:31 +0800 Received: from [127.0.1.1] (172.21.69.94) 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, 30 Apr 2024 10:05:29 +0800 From: Ping-Ke Shih To: Subject: [PATCH] wifi: rtw89: correct aSIFSTime for 6GHz band Date: Tue, 30 Apr 2024 10:05:15 +0800 Message-ID: <20240430020515.8399-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) aSIFSTime is 10us for 2GHz band and 16us for 5GHz and 6GHz bands. Originally, it doesn't consider 6GHz band and use wrong value, so correct it accordingly. Cc: stable@vger.kernel.org Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/mac80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw89/mac80211.c b/drivers/net/wireless/realtek/rtw89/mac80211.c index 31d1ffb16e83..c4707a036b00 100644 --- a/drivers/net/wireless/realtek/rtw89/mac80211.c +++ b/drivers/net/wireless/realtek/rtw89/mac80211.c @@ -318,7 +318,7 @@ static u8 rtw89_aifsn_to_aifs(struct rtw89_dev *rtwdev, u8 sifs; slot_time = vif->bss_conf.use_short_slot ? 9 : 20; - sifs = chan->band_type == RTW89_BAND_5G ? 16 : 10; + sifs = chan->band_type == RTW89_BAND_2G ? 10 : 16; return aifsn * slot_time + sifs; } -- 2.25.1