Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5978394rwl; Wed, 22 Mar 2023 05:06:00 -0700 (PDT) X-Google-Smtp-Source: AK7set9D1nDzHOijtQi+TyTYyPZetRV6L0qCNoWecsW533E15egLzYDjGAsIaai7Xcw79gnk334G X-Received: by 2002:a17:902:c408:b0:1a1:b9e0:fa1c with SMTP id k8-20020a170902c40800b001a1b9e0fa1cmr3627193plk.0.1679486760230; Wed, 22 Mar 2023 05:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679486760; cv=none; d=google.com; s=arc-20160816; b=v9JvY0tY/bR6g31FVY2OE13fdb9dZ5A/5JUpMouZksPRvmNRxF+D8nT2Bt95kD0i/H WDCyrPeVMRm2l2TE2ucV3mjIusXNOcIahEBJkwW9VsvNYADZleunAqEAJHyo8T8GzciJ L4kF5z1ukGjaiXH3ZRiVDAWlzvakIbObtVHEdzda/Xy5Pn07xgUfI5V3TO6wuS0RxIsR RhIRiFFGFHhaNNIOcBeokTxLO6pqrC777h4VWVsSyNX3h/F7xJOOosHgSSeOFI5d414k K6T/WJzcmuoXA+DEAfyWTXJ0gOYpJc1wfDEVMg8aRfmh7utRy7M7xo1uykaI4kiUzTzn lmog== 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=WhHGQ0NPT/REBKCkCVuJ/zRwjMVkP+cOYu4gZyofSJ8=; b=PxyU7v6XU1zENckxp2ZXlwul7tAOBHirhsF8Df2fJg24RlL9e+9vJFUHZpZ28S0JpW OQ/QvsicptFRI46n7JrChW0pmBmBmBxK4CfZ6cfqODKiACDMZL8s6uR1Z4IjVm+PCIzW E5lGvYgAKLIhVD9Z6yb8l1L+lGDTNZLPf98EqYbAbMBqf7z0IDPglbBuG/DTaBjXKBVm 0Mr3NDnUqpblHkWUZtksSXS1UY9gZnqlKlPkF0MR9CPuPb1b2NzVEXT0l/gQEgLCpZxe u22vuplhUINImktdP/pVWakZl8kbHS7GJ5B08G9UkZ4Ay/uUupfYKAAIb+MCC5dEa1Pe s2fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EsXBPEI8; 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 b11-20020a63eb4b000000b005033552517bsi14517889pgk.281.2023.03.22.05.05.41; Wed, 22 Mar 2023 05:06:00 -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=EsXBPEI8; 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 S230182AbjCVLzf (ORCPT + 60 others); Wed, 22 Mar 2023 07:55:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229839AbjCVLzf (ORCPT ); Wed, 22 Mar 2023 07:55:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E0994BE8A for ; Wed, 22 Mar 2023 04:55:34 -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 ams.source.kernel.org (Postfix) with ESMTPS id 9E196B81A12 for ; Wed, 22 Mar 2023 11:55:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22A90C433EF; Wed, 22 Mar 2023 11:55:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679486131; bh=n2WahzwgiovV5cbRnKKc02LtrVaWlWcnMCVFq52JbH8=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=EsXBPEI8D1ajdQ6EzJd1houYkDZVWvO8RVfu7ofCF6PuI5gYvsHgq78tep0zOXNUl cFrsnalsWwmsvT7TDstbpxTxhraJTNc7OjbDKPtUPCB3fD09OQ7hZYxgN4Mk5Jsh2X 7AszjtUQEEeBbFH1fXZ7Jtz5S44yJwwFASzUOyqMdBjGNBx6jpJunby9DyZV0TNX14 oK4c72wjnbongt7sAiTCPKXg9k0LqihxJfKcWoFadx5SioLiPi61J6JgRTqc4/nSr3 0iyrDoFSldkQQPXBfpPsif4yGAwLCGCOYCEyCc6mPlB2rLJXZIv/6PWMqgi+1QGddC zKPrShR3N6eWg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v3] wifi: ath11k: Optimize 6 GHz scan time From: Kalle Valo In-Reply-To: <20230315112103.18426-1-quic_mpubbise@quicinc.com> References: <20230315112103.18426-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: <167948612507.6445.2579526780286789940.kvalo@kernel.org> Date: Wed, 22 Mar 2023 11:55:29 +0000 (UTC) X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 New warning: drivers/net/wireless/ath/ath11k/mac.c:3827: line length of 91 exceeds 90 columns I couldn't quickly figure out how to fix that, any ideas? -- https://patchwork.kernel.org/project/linux-wireless/patch/20230315112103.18426-1-quic_mpubbise@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches