Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4642086rwb; Tue, 17 Jan 2023 03:42:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXvLYZOJQehzxIuUT9hLScqRkbh0N6cnceAAodRPV328VbdL9ImNZbL16TB3mo1wfyXcYgJR X-Received: by 2002:a17:902:7209:b0:192:eb8d:4d62 with SMTP id ba9-20020a170902720900b00192eb8d4d62mr3287215plb.13.1673955736971; Tue, 17 Jan 2023 03:42:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673955736; cv=none; d=google.com; s=arc-20160816; b=duyoB4t8OMYk19NaixnujXiSrgnfwvZXYSc1LR7+ABM9h8xQGSLAgAABopwpPxmPwv PLWHv5tJlQ105oE+0rLwyX82ausGH9t5xy7PhEmKN6DlyWw7WKpJxZFQFgrrokaYA21p dsxQLsvObZYsf/CxoYxjQ3E7Z1VvZbfzRkSd+Ym8B07VhToioEcNF7IEWcWbYV+qxxYf nNZqtu4pVMF6IbntXlHiNu7qtuhjAjdCaD4OvUJ9K0YK6Dke02h7eeCczSIoMgIVoOGw Nd696Ux6il06dvx0IsQGhuJIrBG0+Om4h9RP1dUppOwDnP8Uu44zEYM0/bq88SzYp8bY xlnw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :authenticated-by; bh=m9zQfR7vgwE5NCVUb0LM9zOEmwsxzytr65oSVFTNmvY=; b=Gi5owuvz1dEJN3xEY30G5p2xvuXZxKr+yaf04+U2j3NZQcVJvk32g19lrBdACc29uY d/vf8mICYT15GKDFbyX1HO+kCrWsDkXK1rpJPjoSJnrDKTaa3a+O6npSRM8CwEIdwSV7 zN6E0Hwhg9PwMMyB3RQMjdDRptaHGiN3VmyyrJufMgcm9bw7dbc6ONkVgCEAEhs7b/Uf DM+btJiIIX7ir74DiuAtP0s1+M02mhlZBGkFoQx5GIQvudWG/BjcQJ3nH+QCd6P4XWh7 PtKu1MR9NoFrcS0e9sOEKeBp8yRvciifeprd/EyhHdcpnzj6ctRa5ANHja+CZklaBctT MD7A== 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 s12-20020a170902ea0c00b001926d641de9si34731821plg.553.2023.01.17.03.42.09; Tue, 17 Jan 2023 03:42:16 -0800 (PST) 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 S236599AbjAQLmA (ORCPT + 63 others); Tue, 17 Jan 2023 06:42:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236374AbjAQLl5 (ORCPT ); Tue, 17 Jan 2023 06:41:57 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4214E21A28 for ; Tue, 17 Jan 2023 03:41:56 -0800 (PST) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 30HBfl7N3012230, 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 30HBfl7N3012230 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Tue, 17 Jan 2023 19:41:47 +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; Tue, 17 Jan 2023 19:41:48 +0800 Received: from localhost (172.16.17.65) 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; Tue, 17 Jan 2023 19:41:47 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 5/8] wifi: rtw89: coex: Set Bluetooth background scan PTA request priority Date: Tue, 17 Jan 2023 19:41:06 +0800 Message-ID: <20230117114109.4298-6-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230117114109.4298-1-pkshih@realtek.com> References: <20230117114109.4298-1-pkshih@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.16.17.65] 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: trusted connection X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Deterministic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 01/17/2023 11:09:00 X-KSE-AttachmentFiltering-Interceptor-Info: no applicable attachment filtering rules found X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: =?big5?B?Q2xlYW4sIGJhc2VzOiAyMDIzLzEvMTcgpFekyCAwOToxNDowMA==?= X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 From: Ching-Te Ku When Wi-Fi is RX, set Bluetooth background scan to low-priority and not to break Wi-Fi packet. Bluetooth can RX depend on hardware ability even RX request has been rejected. This way can improve Wi-Fi RX throughput performance. 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 33f369e4ff4cf..bfeef1069318c 100644 --- a/drivers/net/wireless/realtek/rtw89/coex.c +++ b/drivers/net/wireless/realtek/rtw89/coex.c @@ -4763,6 +4763,8 @@ void _run_coex(struct rtw89_dev *rtwdev, enum btc_reason_and_action reason) _action_wl_nc(rtwdev); break; case BTC_WLINK_2G_STA: + if (wl->status.map.traffic_dir & BIT(RTW89_TFC_DL)) + bt->scan_rx_low_pri = true; _action_wl_2g_sta(rtwdev); break; case BTC_WLINK_2G_AP: -- 2.25.1