Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp75324rdb; Sun, 17 Dec 2023 22:16:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFBjspjU3fubI1IDV4A/1zc3a4GMftBV85CLQnUlvfaJitseYR4zdO0tDSpsyIsmuO9IJTU X-Received: by 2002:a05:6a20:6596:b0:18f:97c:6174 with SMTP id p22-20020a056a20659600b0018f097c6174mr14393552pzh.113.1702880165565; Sun, 17 Dec 2023 22:16:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702880165; cv=none; d=google.com; s=arc-20160816; b=bVYiFUZY1V2C8mi5u79UaVAU2Jbu0Cr6QuMlALHeXynlvXSGQWNqajD6ea60KP2B91 BV35YC7k9fjMNoAsjD2oq5/WIioPocQWQi0Dyshxdp0xl7mlsTLjNDwy2FSVb/gHAa37 uS7L2S1nX1qn98T2o4pxB44I9AYNFUBpgX/21zAkFqKVejVka47NafoIXeonf3ZNYtsr qX7c9r5/cffyEijCvyCixToxDtWQhRsG6ZeZjUdKlUnnNSsbLsL11zhDQ9LCAVxIUwl8 pcnpVpxANVnRVgtWXy+ncUuoyz0qcif3zXvivqHYMEDeLbu4zJUvKUgw9hLq49+Z8XQu oa0g== ARC-Message-Signature: i=1; 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=0Rof6fw4n/0GBrhjYu/Q4BljqKDYmewTW0u7L6twLrc=; fh=4papc12ra5onpkTOe/ePxQsLw2Ob2gsKo8Ya+y1zEDA=; b=n7Es2yYThYVsZrkN9a4In/Bsl2blN8fAvWPufw30tOWxQ+UYPApjWZtQawgBP1IPJc KfH5oWP0uVAlRDpT+QSy+lVQvobQGyiX9EPtj5DTsZ41Ph2scJIQsgGnYfe2fmbN6rtj /iNlJOmUXMnLfj08QOeTVHYb5HeJmSdSpABkyqgtJ3VioSeOFeSaYHU/+IszXAQvJtFp t8EpRVTcGxQastgIRwVQJE8gZwXgBAtGGY22KHGd/JwZUgzwJE0VWKH054VpcfZZZ2UW BDRsbrBjqQ49kQ44XEXhQE0rIJfl/KnvL9lDEEipjmiGAkWuY1qoX6muqR1UNbyEa80D FwTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-888-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z11-20020a170903018b00b001d07d6916f4si10716919plg.592.2023.12.17.22.16.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 22:16:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-888-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 DEB99B212F3 for ; Mon, 18 Dec 2023 06:15:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96FC4D27C; Mon, 18 Dec 2023 06:15: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 31F02C8C1 for ; Mon, 18 Dec 2023 06:15:18 +0000 (UTC) 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 3BI6FE7M03224881, 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 3BI6FE7M03224881 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 18 Dec 2023 14:15:14 +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, 18 Dec 2023 14:15:14 +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_128_GCM_SHA256) id 15.1.2375.7; Mon, 18 Dec 2023 14:15:13 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 07/11] wifi: rtw89: coex: Set Bluetooth scan low-priority when Wi-Fi link/scan Date: Mon, 18 Dec 2023 14:13:37 +0800 Message-ID: <20231218061341.51255-8-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231218061341.51255-1-pkshih@realtek.com> References: <20231218061341.51255-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: 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 From: Ching-Te Ku To avoid Bluetooth reconnecting/pairing fail during Wi-Fi is link/scan, especially the Bluetooth connect event after the platform restart/boot up. Signed-off-by: Ching-Te Ku Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/coex.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/realtek/rtw89/coex.c b/drivers/net/wireless/realtek/rtw89/coex.c index e89af5915657..43a95f9b0868 100644 --- a/drivers/net/wireless/realtek/rtw89/coex.c +++ b/drivers/net/wireless/realtek/rtw89/coex.c @@ -5419,12 +5419,14 @@ void _run_coex(struct rtw89_dev *rtwdev, enum btc_reason_and_action reason) if (mode == BTC_WLINK_NOLINK || mode == BTC_WLINK_2G_STA || mode == BTC_WLINK_5G) { _action_wl_scan(rtwdev); + bt->scan_rx_low_pri = false; goto exit; } } if (wl->status.map.scan) { _action_wl_scan(rtwdev); + bt->scan_rx_low_pri = false; goto exit; } -- 2.25.1