Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4386825rdh; Tue, 28 Nov 2023 23:02:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6xBYOSXYLOKuuP8ICK85mi4Tdo7M652U2pinf9DAhZlDLcBQGWXv5ZvhjWHd1Vw59THAT X-Received: by 2002:a05:6830:1415:b0:6d6:4c25:5a56 with SMTP id v21-20020a056830141500b006d64c255a56mr19116532otp.12.1701241348802; Tue, 28 Nov 2023 23:02:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701241348; cv=none; d=google.com; s=arc-20160816; b=QAKkKl1j/UVXhxidq1ADQnPeU0Hyikp6WxklL8wglEapSZWQBZgaKC/lftLfaeotTH YnBy61jn3LyNazrGX4CC14KIqMcMFvkduURH2+LB8rnVzVmxwJbWsbMbqhYccVnz+S8I 2jAL/lWdJGUWjGS7+0SSxYFdHD6ho83IAAEjDjcgTRd1tYDVDRELz9IvK8fdWqz70QAB wksDztt2aYbUBavSV5zDlRDrMmogm8fADu5nFO87YuOwUKqJguMkvNjJ/zIRUOMTy3JQ 7IRzIXircE6epuI/bxs/FG9kf67xkKTQWNBMcDbJ2waAYXLuo+Q+pw8M70BB3cGCFFeP izkA== 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=gs8zvZ4wTWiRwOcz6Oj9TZa6uf0CJkrCcTQSKpGb+BU=; fh=2Cp/Gdxi3trmHW/e0czf3mtBmMOgoyiOX6gjn9A+gQc=; b=xHx+t3VZ/mYjTzgmSmMixVrcQTMzSOSmirqRsYwDXs6QHB0vuO8Oby/8kHy9GcwI0i rk01bhOG32dlTrzNtz6C3qhtOgVC6wq/t3DKI8TKDdbChzGtERVdNcai6lxLt4InNwuV 2B9CV7Ms3AVxTUTOgy8PE0zh4unBo871Dr4TXW0ne3MwqpTnLJao6Fv30atfwgL0PsxH 8ehzi1paR9T4MvkcbIB6f+a28B3PRj50qfspaQBqvHmZjiJrSPrTM0N35IICHmOIPIfG uZqg9Q82RJFlq4rp8ewmOHN6Tabh0Qorqfwem/HbkJAnLf37RBgHjY7XUcrlPmOsTyMw FWHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-194-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ca6-20020a056a02068600b005893a7c438esi14909896pgb.689.2023.11.28.23.02.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 23:02:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-194-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2746C282631 for ; Wed, 29 Nov 2023 07:02:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9A2910970; Wed, 29 Nov 2023 07:02:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8943819AD for ; Tue, 28 Nov 2023 23:02:09 -0800 (PST) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3AT71vvoE2598098, 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 3AT71vvoE2598098 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 Nov 2023 15:01:57 +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_128_GCM_SHA256) id 15.1.2507.17; Wed, 29 Nov 2023 15:01:57 +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; Wed, 29 Nov 2023 15:01:57 +0800 From: Ping-Ke Shih To: CC: , , Subject: [PATCH 2/4] wifi: rtw89: Refine active scan behavior in 6 GHz Date: Wed, 29 Nov 2023 15:00:44 +0800 Message-ID: <20231129070046.18443-3-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231129070046.18443-1-pkshih@realtek.com> References: <20231129070046.18443-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 From: Po-Hao Huang The interval between sending each probe request is regulated. Before this patch, some packets are not sent out properly because of our HW limit. Extend the 6 GHz channel dwell time to cope with this. Signed-off-by: Po-Hao Huang Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/fw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/realtek/rtw89/fw.c b/drivers/net/wireless/realtek/rtw89/fw.c index a732c22a2d54..898b3f432d1c 100644 --- a/drivers/net/wireless/realtek/rtw89/fw.c +++ b/drivers/net/wireless/realtek/rtw89/fw.c @@ -3867,6 +3867,8 @@ static void rtw89_hw_scan_add_chan(struct rtw89_dev *rtwdev, int chan_type, if (info->channel_6ghz && ch_info->pri_ch != info->channel_6ghz) continue; + else if (info->channel_6ghz && probe_count != 0) + ch_info->period += RTW89_CHANNEL_TIME_6G; ch_info->pkt_id[probe_count++] = info->id; if (probe_count >= RTW89_SCANOFLD_MAX_SSID) break; -- 2.25.1