Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1200534pxb; Sun, 11 Apr 2021 10:48:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYF190Gkti0M+jzEvjWhnWrUKzaUe9XtnHl6oaNTQadf+ioiTuDyBadBNJl/vvCko9FF2Q X-Received: by 2002:a17:906:86cd:: with SMTP id j13mr16002443ejy.423.1618163319172; Sun, 11 Apr 2021 10:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618163319; cv=none; d=google.com; s=arc-20160816; b=0JVU+myANfftbfyDYSlDR/Hikqyka7aubKsh6nSyacrfhXx1IpNxGCPP/m/xBuXZ9e /PuYWZWh4n2qeJRaMVAQs3vFzfuYRPkbgBflU7Cqu1OgWQoCXQwyFJzXcKC+KM3v8cZ3 d3ZK7LVCrDhjPF3cotNYctx1IRIwyfu+LtxJF4Cocz0tkYNBzxkXCdUdhru1NyzkvAec sflyOtaTojHn3rhgcxtojQFKEv5WVEnuRAXAa5OJtQFKPP45wL11q3zIIMUDKrYXvv3t FnV1OL2VHq/sCx3BtviYF6xqwyD/0p5yxk/x8Kg+mVx/YuQlyBr/1B/qein8nlmw9mYv UdtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature:dkim-filter; bh=pJmch2cHDzYGxW02n5PswBkSkHGTvoD+ED9FTUI3Qq4=; b=GPumx27GOpOI3cXSxXVteekUp71lEgxTqA6gX4N0G0PAE/u0y1POoX9DcO2y5AsENN rzZg8pZh7KmkkriAEBzhdzW0FQMbzECNH0LyDWOAXgE8J8MEppWw1lwGtHaEMHQnqy8r 0oK1zdYkveWdGM+BtJAobl/PyThFbnt8+npdHrpiaRLA/nehvTEOmur8YROhIVjnppoa fmHBLBTTWgy/Ep0eDbFA/nXKEpPaM5p0wgxRj71+a0evhIiYSyvkHo3TokXg5cnSLlt2 5QRG1rUi5FD+fCudjrnQ4cDWpNQognw8HVhlkS9yztUgI1QnK7TZH1H044HQ/SXEIQ/X vbMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=r89SIxld; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b25si5476674edw.431.2021.04.11.10.48.11; Sun, 11 Apr 2021 10:48:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=r89SIxld; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236405AbhDKQWJ (ORCPT + 99 others); Sun, 11 Apr 2021 12:22:09 -0400 Received: from dispatch1-us1.ppe-hosted.com ([67.231.154.183]:56056 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235756AbhDKQWI (ORCPT ); Sun, 11 Apr 2021 12:22:08 -0400 X-Greylist: delayed 400 seconds by postgrey-1.27 at vger.kernel.org; Sun, 11 Apr 2021 12:22:08 EDT Received: from dispatch1-us1.ppe-hosted.com (localhost.localdomain [127.0.0.1]) by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id B16EF24F322 for ; Sun, 11 Apr 2021 16:15:12 +0000 (UTC) Received: from mx1-us1.ppe-hosted.com (unknown [10.110.51.129]) by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 0F0D320061; Sun, 11 Apr 2021 16:15:12 +0000 (UTC) X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.110.51.25]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 4C70AA0061; Sun, 11 Apr 2021 16:15:11 +0000 (UTC) Received: from mail3.candelatech.com (mail2.candelatech.com [208.74.158.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id CAA6AB0006A; Sun, 11 Apr 2021 16:15:10 +0000 (UTC) Received: from [192.168.254.6] (unknown [50.34.172.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id E326E13C2B3; Sun, 11 Apr 2021 09:15:09 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com E326E13C2B3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1618157710; bh=ycS2NdssvmfDMnIxk0K8SpStyNymk7wTurqcARd+v7M=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=r89SIxldXp11E5cSyId1bLaLktYvRUYFSvTLBvTjSxIc7q6v11km9MmZVIuO78i0H zay+qwcD9RwvtZtW6Dzen92KcH3qBDozQxWGM4+bNfTw9RtzOOtGWW6PxHoZ7hJH2/ NkUAISJ5jZD85NrQgXfkZHGx5VBOcWK9QJcDbYio= Subject: Re: [PATCH 06/12] iwlwifi: mvm: Add support for 6GHz passive scan To: "Peer, Ilan" , Luca Coelho , "kvalo@codeaurora.org" Cc: "linux-wireless@vger.kernel.org" References: <20210331091452.543321-1-luca@coelho.fi> From: Ben Greear Organization: Candela Technologies Message-ID: <8dfae5c0-1900-a1fc-ee36-8ceaa9ec0dbe@candelatech.com> Date: Sun, 11 Apr 2021 09:15:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-MW Content-Transfer-Encoding: 7bit X-MDID: 1618157711-JGU2YnKANRn5 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 4/11/21 5:14 AM, Peer, Ilan wrote: > Hi, > >>> This logic enables a special 'passive' scan which is not directly >>> intended for discovery of APs for connection etc. but for discovery of >>> APs with country information in the beacons/probe responses, so the fw >>> could use this information as an input that might allow it to enable 6GHz >> channels (which are supported but are disabled). This special scan is intended >> for cases that the device does not have any other regulatory information that >> allows it to enable the 6GHz channels. >>> Once these channels are enabled, we use passive scan as needed. >>> >>> We generally try to avoid passive scan on all the 6GHz channels as >>> this is a long flow that takes at least 6 seconds (as there are such 64 >> channels) and with the discovery mechanisms defined for the 6GHz is not >> really needed. >> >> If the station comes up and does a 6E passive scan and does not find any AP, >> perhaps because 6Ghz AP was turned on 1 minute after the station tried to >> initially scan, this means that it will take 50 minutes before it can have a >> chance to scan the AP and connect to the Internet? If station cannot connect >> after a relatively short time, then I think it should scan as widely as it can in >> order find some possible way to connect. >> > > The purpose of this heuristic was to handle a very specific corner case where there are > no APs on the 2GHz/5GHz bands and there are only one or more non-collocated APs > on the 6GHz band. Based on our understanding, this is not a very likely situation and thus, > due to other consideration e.g., power KPIs etc., the above conditions were defined. However, > as you can see in the patch, there are options to tune the heuristic to be more aggressive, > and if it would indeed be needed we can change the behavior such cases. Yes, and I can tweak the code myself if needed. But better if upstream driver is already nice as possible. >> And why care about 'at least 4 channels'. If we know the AP channel, and can >> scan exactly there, then your concern about taking a long time is resolved. >> > > The assumption was that while a connection was not established a full scan > is expected, so that's why the above condition was set. However, I'll take this > with my colleagues and see if this condition can be removed or defined > differently. The complexity of the restrictions are going to silently break certain configs that a user can reasonable expect to work I think. > >> How else can we tell the radio that 6E is allowed? I previously tried all sorts of >> things to enable 6E channels so that I could more easily set the radio to sniff >> one of those channels in monitor mode, and I had no luck. >> > > Are you asking specifically for iwlwifi devices? I'm not familiar with a simple > way to do so other the one described here, but I can check if you need it. Yes. ax210 in particular. > >> If all of the 6E channels are marked as passive, what harm is it to enable the >> channels in the regdom from the beginning? >> > > AFAIK, as the 6GHz regulatory is still evolving, we are not yet allowed to do so. But once again, > If you are interested I can further check this our regulatory team. Your patch enables passive scan of 6Ghz when no regulatory specifically allows it. I think just enabling the band as passive is the same thing, but significantly simplifies things. If there are regulatory reasons to not allow even passsive scanning on 6E, then your patch breaks that. If not, then just always allow 6E channels to be available in passive mode. The logic to optimize scanning time and channels belongs up in the supplicant and other higher level code that can take user input/config and make decisions using info that the driver will never have. Thanks, Ben > > Regards, > > Ilan. > -- Ben Greear Candela Technologies Inc http://www.candelatech.com