Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1100546ybn; Wed, 2 Oct 2019 10:51:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzY4C3Cag6xosS4UBxu2ynfA9DHwLcz6gSiWCCfNka/Aa+SkpgnYco6+M6AJngkep7irCm1 X-Received: by 2002:a17:906:9604:: with SMTP id s4mr4245740ejx.38.1570038674235; Wed, 02 Oct 2019 10:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570038674; cv=none; d=google.com; s=arc-20160816; b=dxJ7+bvYWpXpIY6HTrtBeU02nQddDBmvcOQgJVtgjuJBv6/OPha5WvjS/+Zje636au NnUc+F4lkjchgDGOqGwhdhoHQsRy49BZxUO26YTw83qBFO5zONV+2vhQ+5DNHgjcZLZa gyGQ1ZDrFO4/P8Mfne8x6fGZv+nOZm5/XSMK40nJGQb15FkvU2H8Q9EGT63KtU6ZCRj7 N51jQEIjwDLRFo37LiBc/8GW8qKQy/6xpErF7a7ppWjaqglWlTRSj6WE0PtptQG1o7jN mhsyVhjRqSOHeh1FqWD+U8vUjNNUknoqHDj5MD7fET3wrGGSuPfH/2VnC+SB5ezq8pyD v9Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=toF6A8tWgh1ccfZbQy+x0axxQ4r9Y7TXsgXbVDoMnL0=; b=Xs+bYFXXMnMo07ehGcLgfSTOYMY6i0bH9R0x+MQH7FisBsRDhLKDQP1IfP6EHdAOTo x1vaGgQ4aWWEhjmTlC3wyHG/mkNPzXBECOC/zmjnwXig8ohTwIZ6DvcE3ltBoLzxT6X3 963renyd1e4LJw5NDQodP5NJXmD+fuKNhbrPVS94vu9PtmOuk5giqSE9uSdXUEonrX0N 6JAXWRhH3iyS5j6V9lDJh0PAYvoniDwSfm9dzMSIeKLhWPFH2Ocg4cQXUaFBZFfYw+gk jNf9TNcqif8RP7g/+uTdR90JkqhpBrJl+4GTy/RdqB1Yg8Lu6AlPETTFXWiWc1uJELHf 7Fvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eero.com header.s=google header.b=T08zyqNz; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=eero.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g21si11780089edq.289.2019.10.02.10.50.37; Wed, 02 Oct 2019 10:51:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@eero.com header.s=google header.b=T08zyqNz; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=eero.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728255AbfJBRu1 (ORCPT + 99 others); Wed, 2 Oct 2019 13:50:27 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:37630 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727685AbfJBRu1 (ORCPT ); Wed, 2 Oct 2019 13:50:27 -0400 Received: by mail-pl1-f193.google.com with SMTP id u20so67286plq.4 for ; Wed, 02 Oct 2019 10:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eero.com; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=toF6A8tWgh1ccfZbQy+x0axxQ4r9Y7TXsgXbVDoMnL0=; b=T08zyqNz+oj7U1SMjHXhBPdRWLtSEn+ED9FWIHFnhapLQ6wvIeTmTu9W3j+UTRmjUz EhO+yU6QA/Z4LGnqv3+/+ekzwLaVNYhYHmQpCWzPh0quZ+LwlXON0DrttlaK4D+rSDaV mi1kXus5syPhy6y5hYmeDrtYaCpr65n9EoJgI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=toF6A8tWgh1ccfZbQy+x0axxQ4r9Y7TXsgXbVDoMnL0=; b=hG2WdJfu4L/4EJ54DaW3e1fXqAV3vbkesDPMdDHozAfkFmMGw1T8u+uIUUxBaoDCFV GvqqWL2r+3KAqFawx+inAlbzFmQLBMkbBUrwI5zlxqSwxP78gKxHnfMCpR72Q7vSy+SR RVUkKWRuCzVyA5mbEgMD3SXvwoiUHaQog2SWG3LzHh3PwqQnfUz0CjJQZELkp7HfgSU9 ngXZuix8Y+KqlymSxRVBPp+qsNUq2RaGsIiUPV7xOc78opXOb7L9gqgQ29Ke2JzwQk24 HBNIeLf4v3kImuoVPjfYuwMqztVNaobnS4+mW6mQNaxTMsBpu+P7sLuBjriLcqdYA3PI VvAg== X-Gm-Message-State: APjAAAV1g1zMTV2J+hY89yKraqiNwxcGiT4RSNmSJlGqwxhHRaNAOWP9 Rjj9GBud22Ma2rUBRpc8f2D+I6VD7gA= X-Received: by 2002:a17:902:ff12:: with SMTP id f18mr5127974plj.266.1570038626271; Wed, 02 Oct 2019 10:50:26 -0700 (PDT) Received: from [10.0.2.15] (96-64-208-121-static.hfc.comcastbusiness.net. [96.64.208.121]) by smtp.gmail.com with ESMTPSA id c26sm73820pfo.173.2019.10.02.10.50.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Oct 2019 10:50:25 -0700 (PDT) Subject: Re: [PATCH v3] mac80211: fix scan blocked on DFS channels in ETSI domains To: Aaron Komisar , "linux-wireless@vger.kernel.org" References: <1570024728-17284-1-git-send-email-aaron.komisar@tandemg.com> From: Peter Oh Message-ID: <02f58201-4b92-0a1e-d237-6838543a3513@eero.com> Date: Wed, 2 Oct 2019 10:46:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1570024728-17284-1-git-send-email-aaron.komisar@tandemg.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 10/2/19 6:59 AM, Aaron Komisar wrote: > In non-ETSI reg domains scan is blocked when operating channel is a DFS ch. > For ETSI domains, however, once DFS channel is marked as available afer > the CAC, this channel will remain available even after leaving this channel. > Therefore a new CAC will not be required when scan is done. > > In cfg80211 scan is not blocked for ETSI reg domains. > This patch enables scan in mac80211 as well when operating channel is a radar > channel for ETSI reg domains (unless CAC is in progress). > This is not the right approach to solve the problem. The real reason of scan failure is because mac80211 checks if it's DFS channel, but it doesn't check if CAC is done or not. So to solve the issue, the right approach should be "check if DFS channels and check if CAC is done". You may refer how "cfg80211_reg_can_beacon()" is doing for that. Thanks, Peter