Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7275246rwl; Mon, 9 Jan 2023 21:25:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXtbydMgI5TH4RYucZh4LTAkYCWTAILc7SDmP6kuVz7dcORLZY68yBHTVS6NrlXRwH2fP580 X-Received: by 2002:a17:906:2849:b0:7b8:882d:43ef with SMTP id s9-20020a170906284900b007b8882d43efmr57352439ejc.0.1673328307178; Mon, 09 Jan 2023 21:25:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673328307; cv=none; d=google.com; s=arc-20160816; b=u+rE4UkS5bZKbyLpD/zYVk2XvNL/v4fQ+iJhKPHjlO3bg7VtgTWYdH+G7R3XgS1NvV +vNU8dvtVtKnjprY1bkWyh2eFBUz8vRjpPnKZXXCB4lTo8MzHPd1xymotGcwNx1Ofgh0 R6mcHW6PQeYbhMxU8gbSkLZM4PO9BKctGAcSkebOGFMjP6W8fxGJ/XqiKAEBazG2XahB 059FZE6EjbkKcOq54Pab4T0XLjoCzcBo2+5NIsK5lXvTzawL1iyIwfnLRMnsCdRRt7X1 zXw4d4AnQvX0JUmroEEO59Mpv+QE8Ae2TX3FUZeq46qA6E7ui9NaKVSG8Yjw7nqSDTTH Os3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3gqZAOAujEYkFiUKx/24Z83ZKWFv0qHC4gnwhRZhOc4=; b=DzTwkG8RSOkn8zt4Wg2x62T73fmdy3OXvVZg0tgKq3q1VpNCGqYOm8QjExfPX0XVFG Qr//DP01M3LdUQYKc80QvxeXsTwVIYd2Esi6kmDT58bP/fwd0qC9Dj+tYHGUIH1iHKME t8153pKZsKVoafRNgfo6JrlS+GPPUzQ1CRlR1Fr8EQlXRzOmUlLJDLXRSW6NKANdWfQX kncqRI37YA+3eE/Ff+N734lhtIZiprR0sOO5724OUilVLGvJkhNenhbTiekcvNCsCKg7 us13FqEaM6JcxH/inUGHqANdGMGwqm6Ww4vCKOK7dH/ywfPBrjQAnZcnkyQyt/FGVHHX Q0Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="hxk/tYAF"; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs19-20020a170906dc9300b007c14e98e3a1si11547548ejc.752.2023.01.09.21.24.46; Mon, 09 Jan 2023 21:25:07 -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; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="hxk/tYAF"; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229719AbjAJFUE (ORCPT + 65 others); Tue, 10 Jan 2023 00:20:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbjAJFUD (ORCPT ); Tue, 10 Jan 2023 00:20:03 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3A067678 for ; Mon, 9 Jan 2023 21:20:01 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30A5FUFd021053; Tue, 10 Jan 2023 05:19:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=3gqZAOAujEYkFiUKx/24Z83ZKWFv0qHC4gnwhRZhOc4=; b=hxk/tYAFE4/SfP6JC6pHzg0unAxRFg86c6xdNeURlXMEqlj0VfcNqzjgWXpcO1bGKRUb A/rR4mv91rx/O9Oe2AcCIg6AgVTx7dskCYQc1MOBjDSdEpZCh7qRwoYQUymYkCjKmyLt uovVlsXcXM23LvNk8P9/9QqXcqPgCg5xHyoyuMTTE2VU9InRuXKSW2xUVTqSbIcfjyZt QrXcNwYfiMO55DgDDXTBesoRFzO2UZnmlsQe8qThVlK8B1TLmdaOpFkEOi37jb6TybpD PZmD5r+f4ItskZ7yR5ep4xRKRbOI+A8wsqYBypwVnRK0Xf9IxRqDPcu4DEwDnuHM18Dn lg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n0q6es5nv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Jan 2023 05:19:52 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30A5JpK5001401 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Jan 2023 05:19:51 GMT Received: from [10.216.51.52] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 9 Jan 2023 21:19:49 -0800 Message-ID: <0b06dea9-d5be-1edc-62ca-576398d1bcd8@quicinc.com> Date: Tue, 10 Jan 2023 10:49:46 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH] wifi: ath11k: Optimize 6 GHz scan time Content-Language: en-US To: James Prestwood , Marcel Holtmann CC: , References: <20221220043823.20382-1-quic_mpubbise@quicinc.com> <5DAEA8B2-2B44-4A91-9E57-12B6C6B6C1FC@holtmann.org> <2861463e-a097-7efe-bc75-f13c8faf9547@quicinc.com> <378a1d63b3752ace7384c44d6f5184753fa7795d.camel@gmail.com> From: Manikanta Pubbisetty In-Reply-To: <378a1d63b3752ace7384c44d6f5184753fa7795d.camel@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: y_Aa44rV7LHfrgpiK6cllbkIQJ-faya1 X-Proofpoint-ORIG-GUID: y_Aa44rV7LHfrgpiK6cllbkIQJ-faya1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-09_16,2023-01-09_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=806 clxscore=1011 impostorscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 bulkscore=0 spamscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301100033 X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 On 12/29/2022 2:52 AM, James Prestwood wrote: > Hi Manikanta, >> By the way, userspace itself selects the frequencies to scan, not the >> driver. >> >> If we see the split scan implementation in cfg80211, this is the how >> it >> is implemented. If NL80211_SCAN_FLAG_COLOCATED_6GHZ is set, it >> selects >> all PSC channels and those non-PSC channels where RNR IE information >> is >> found in the legacy scan results. If this flag is not set, all >> channels >> in 6 GHz are included in the scan freq list. It is upto userspace to >> decide what it wants. > > > This isn't your problem, but it needs to be said: > > The nl80211 docs need and update to reflect this behavior (or remove > the PSC logic). IMO this is really weird that the kernel selects PSC's > based on the co-located flag. The docs don't describe this behavior and > the flag's name is misleading (its not > SCAN_FLAG_COLOCATED_AND_PSC_6GHZ) :) > Sorry for the late reply, I was on vacation. What you said make sense. The existing flag should not add PSC channels according to the flag description. We can add another flag something like you pointed out SCAN_FLAG_COLOCATED_AND_PSC_6GHZ and include PSC channels if this flag is set. What do you say? > If userspace doesn't specify a channel list then the kernel can do > whatever it wants, but otherwise it should stick to the requested > channels and scan only for co-located APs if the flag was set, not > PSC's too. > > This basically adds ~3x the time to IWD's quick scan's for 6GHz capable > cards regardless if there are any co-located AP's. ugh. True. Thanks, Manikanta