Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp852251rdb; Fri, 19 Jan 2024 00:16:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFe/nRIClWPfeRHdduk0LogahA5lqtXoKB7GY9wvuahdUlJOtrofLGFm3uWTW6SbX7Fscfi X-Received: by 2002:ae9:f113:0:b0:783:25d4:621b with SMTP id k19-20020ae9f113000000b0078325d4621bmr995635qkg.80.1705652180606; Fri, 19 Jan 2024 00:16:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705652180; cv=pass; d=google.com; s=arc-20160816; b=KliwQKsI8g8axbGhAfU5uaKJn7RTEgVtTyPlAlUWb425WjBjmxhrG2/p6Mg+h3UrvH 3wIyrLWkmsC7Tc35TpGx63ZZgRQtn/DoD1l08OrQ/2d7wwpbf+HO/MV0pcS5XpU7tNGf eTLeVcDcKPGCH5cx13zSypeuh2UC9QWGiOsdfBDTTuxgSS6yDjEJnjfj5Zt/9Yi3X35i 7c83jSy1WZi/xVzT8eblloX2xtSvbMRpSoHaujkz36HH6P2hUKMQAkAd40pQeJ5EWFWh Wiea9Wl8JAZt6NiV6d2DzZAR1e6jXDxmy/9P3Si1CqSF7dx3E+jv52fRzzT2NaE9ZrXZ wvCg== 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:references:in-reply-to:message-id :date:subject:cc:to:from; bh=d4OgB9WqkJ5+jpmNUr02n0Z/eeIaxkHhMyAtj1f+UDg=; fh=2Cp/Gdxi3trmHW/e0czf3mtBmMOgoyiOX6gjn9A+gQc=; b=qVnz81NFdTekZeRuggSESlI/wJddDht2eKZ3qB0wRDhATdQxhUNc/O/dEuAf/fYIEx 8n9BxjzdJaV2c6zzmzr2mlppxj70PE9flvE5AyGNq+GNnfiJURVAyjP/B+i2Ac0zbJDw mQ2bEGJtXU/q0/wJnzEPMg0O0puCgaRFrVtSzSda7+xgCR4rF2o4H1e73AyMoRTwgzKr A/9x8fH9JVlT/RXNypnc5gHFt+d3ERz0acbN4ggyeh+K55rLuVrnLSaPAvTaEM+1d6cN 6d1B0lfqcl/9Y/NpGTiNNX3A1zoBibJ75joI1Ho+wm/gUQ90YNmjqlNCMhNDp94hxjBz g8PQ== 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-2232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2232-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 pi38-20020a05620a37a600b00783525554c5si11665052qkn.330.2024.01.19.00.16.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 00:16:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2232-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-2232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2232-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 5BFC31C224FA for ; Fri, 19 Jan 2024 08:16:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9684DDAE; Fri, 19 Jan 2024 08:16:07 +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 3558D2D61E for ; Fri, 19 Jan 2024 08:16:04 +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=1705652167; cv=none; b=luER/TOA7lna0dYKggSo5pZtE4F5GG4SNAwShmIIcbeR0hxt+8XF5nzaR+q2FxVzrQYjfItTbimy21FDpDVAsqYlweV6TT8zUgB4I/T+07eY1g0aUgTjhJnZ/f9hhaSQ5D3oW80vPBYOf8rGk2oysXd6wKaj99igd5QzSjc7MP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705652167; c=relaxed/simple; bh=UuLoHeP3J32ll8ZmqvYSQhdQcmgLnErGtadG4dUBfiY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nu3kWhkZllMvWpppIjzGCK5XT+XLDUDhCkucF30TwnIU6tTEKvPywKpb1kI+08ovxvUZqb5YEFFICILw0U5axNaisHHzvQd6NmV86qAOcH6cjnB/ZSLp+eKnK/OSdxkVTCIujULPGYP/SqD52cm9kmQLUfXcK4uUEbX0YbG8TUI= 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 40J8Fx7622212502, 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.95/5.92) with ESMTPS id 40J8Fx7622212502 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Jan 2024 16:15:59 +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_256_GCM_SHA384) id 15.1.2375.32; Fri, 19 Jan 2024 16:16:00 +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; Fri, 19 Jan 2024 16:15:59 +0800 From: Ping-Ke Shih To: CC: , , Subject: [PATCH 8/8] wifi: rtw89: fix disabling concurrent mode TX hang issue Date: Fri, 19 Jan 2024 16:15:01 +0800 Message-ID: <20240119081501.25223-9-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240119081501.25223-1-pkshih@realtek.com> References: <20240119081501.25223-1-pkshih@realtek.com> 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) 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 From: Chih-Kang Chang When disabling concurrent mode and switching to a single interface, the TX might stuck. The reason is TBTT prohibit area circuit still enable to block TX. To disable tbtt prohibit area circuit need to delay 2ms to make it effective. However, we only delay 2us in original code. So we fix it. Signed-off-by: Chih-Kang Chang Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw89/mac.c b/drivers/net/wireless/realtek/rtw89/mac.c index b224d06e5f3c..eb94e832e154 100644 --- a/drivers/net/wireless/realtek/rtw89/mac.c +++ b/drivers/net/wireless/realtek/rtw89/mac.c @@ -4072,7 +4072,7 @@ static void rtw89_mac_bcn_drop(struct rtw89_dev *rtwdev, struct rtw89_vif *rtwvi rtw89_write32_clr(rtwdev, R_AX_BCN_DROP_ALL0, BIT(rtwvif->port)); rtw89_write32_port_clr(rtwdev, rtwvif, p->port_cfg, B_AX_TBTT_PROHIB_EN); - fsleep(2); + fsleep(2000); } #define BCN_INTERVAL 100 -- 2.25.1