Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp713328rwl; Wed, 12 Apr 2023 03:05:34 -0700 (PDT) X-Google-Smtp-Source: AKy350YiemWYliBhZJyPkBgcaMTGJuLtlAGZ0oMvdsqX1rK2sGLm+I8JGXM1dutyTaO8QYRIxkSK X-Received: by 2002:a17:906:4406:b0:933:4dc8:972d with SMTP id x6-20020a170906440600b009334dc8972dmr13339156ejo.20.1681293934506; Wed, 12 Apr 2023 03:05:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681293934; cv=none; d=google.com; s=arc-20160816; b=auGT2uXiZuMPTTLC0rlObWbjogPEg4qyLIlCuVHlCrAnQBEUNcGgigTffYpBP+R9K9 kap189lLssoWhwwOFuhtDaYG2p0tlvMhHgJ+5e2gsaK/KqIhuliJe9cPruY5fYwh/fdW jRLNodvNoNPyKIzuqITUPoBRaWsX9N20FTcCGwrrIJmMs37G+3LDhxuNX1U0rYkwfjDy 1XQuOXLl/htNE4YIaEqJps+ORBMoPEdvwZ63wD4w9qEJzh7jMNF4C3CZ8FkvpcHs+kih Ave4qtLeVg9sDkPitoFOsIFHGPZmoFiRAQj0xRagetQdFgA+QsLvkLILMzGyx2B6d7j+ wqRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=Y8lRqeyBJ1AJRj7zx5MwqAUXVAxGTb3SeV8F7ImRteo=; b=JC+Pgw1AOv5TKJJXCBRcL9ovZ+xYqBys3ajtHPm4H5WV8CuTVfH3uf7CuLl3OirrKz QrBjjdpaNSKM6HtYbDRmPkpcN/jZ72wvj1kKTt2s8dSGhnO1u5W4OkRnU2e6UsqeXbul K7PkaUFSHwyaJNciEaJVaUvx4B0EPxWCKobGj/HbmrSwwmAmvvC5HvRFnryN8T6VQ3sQ okISFv1G8jYCcWrHdT+myYdu5/JtSLJIZIpsmWIIpZlTKsrqEgXtZ0WnpW0oLpcijeT2 7LofpRpVXpN4CLV5onggGVgmCnTZH3RR/Es4CEykF+5UUVrvUgNa3XbVK1GE1DoVDmar 1PJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WtvrHIJL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a1709064b4d00b0094e0e97608dsi3757123ejv.436.2023.04.12.03.05.18; Wed, 12 Apr 2023 03:05:34 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WtvrHIJL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229792AbjDLJ5i (ORCPT + 61 others); Wed, 12 Apr 2023 05:57:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbjDLJ5h (ORCPT ); Wed, 12 Apr 2023 05:57:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4535072A4 for ; Wed, 12 Apr 2023 02:57:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BC6F962D39 for ; Wed, 12 Apr 2023 09:57:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C3E3C433EF; Wed, 12 Apr 2023 09:57:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681293455; bh=hE4La5t8yB1HoZ0gdw/pM5HDZGdI4D6Kb1y56YSkmco=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=WtvrHIJLg/LM826Jb+72eYripZIsNMHF+Oc9LSJaWvgJBd50zIwi9X3GUNM1wWwqZ Ah3xxRN8ip/5UxHisiitHuWfvgR1X6RdzvhEn3AGcBwjTMFR4api3LIVaGUXxXT6Jp 4U/F6glSB1A+3bnsWCPR4pxqidKm7C4Mt6gD7Mh8NbN+dUAb4n8ztR/PK3vimDtb+O kBSx7GCK4Hyg8gpvo0RWb+QsHHLhMCM+uqgSLG+PoQ2jvkVribuZa/PoBB0R06xfkd OnyGXWVhqCAOQ+zaNfvmkfXBIgOgg06aQxdmfmBg35/65x94GtQPio0EEKk2DdYRGn eKTbKdTzITknQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v4] wifi: ath11k: Optimize 6 GHz scan time From: Kalle Valo In-Reply-To: <20230323060913.10097-1-quic_mpubbise@quicinc.com> References: <20230323060913.10097-1-quic_mpubbise@quicinc.com> To: Manikanta Pubbisetty Cc: , , Manikanta Pubbisetty User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <168129345224.14673.5339592403399193751.kvalo@kernel.org> Date: Wed, 12 Apr 2023 09:57:34 +0000 (UTC) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Manikanta Pubbisetty wrote: > Currently, time taken to scan all supported channels on WCN6750 > is ~8 seconds and connection time is almost 10 seconds. WCN6750 > supports three Wi-Fi bands (i.e., 2.4/5/6 GHz) and the numbers of > channels for scan come around ~100 channels (default case). > Since the chip doesn't have support for DBS (Dual Band Simultaneous), > scans cannot be parallelized resulting in longer scan times. > > Among the 100 odd channels, ~60 channels are in 6 GHz band. Therefore, > optimizing the scan for 6 GHz channels will bring down the overall > scan time. > > WCN6750 firmware has support to scan a 6 GHz channel based on co-located > AP information i.e., RNR IE which is found in the legacy 2.4/5 GHz scan > results. When a scan request with all supported channel list is enqueued > to the firmware, then based on WMI_SCAN_CHAN_FLAG_SCAN_ONLY_IF_RNR_FOUND > scan channel flag, firmware will scan only those 6 GHz channels for which > RNR IEs are found in the legacy scan results. > > In the proposed design, based on NL80211_SCAN_FLAG_COLOCATED_6GHZ scan > flag, driver will set the WMI_SCAN_CHAN_FLAG_SCAN_ONLY_IF_RNR_FOUND flag > for non-PSC channels. Since there is high probability to find 6 GHz APs > on PSC channels, these channels are always scanned. Only non-PSC channels > are selectively scanned based on cached RNR information from the legacy > scan results. > > If NL80211_SCAN_FLAG_COLOCATED_6GHZ is not set in the scan flags, > then scan will happen on all supported channels (default behavior). > > With these optimizations, scan time is improved by 1.5-1.8 seconds on > WCN6750. Similar savings have been observed on WCN6855. > > Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1 > Tested-on: WCN6855 hw2.1 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.16 > > Signed-off-by: Manikanta Pubbisetty > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 8b4d2f080afb wifi: ath11k: Optimize 6 GHz scan time -- https://patchwork.kernel.org/project/linux-wireless/patch/20230323060913.10097-1-quic_mpubbise@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches