Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp52476ybn; Thu, 3 Oct 2019 01:14:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqySbQdMVC1neVmmXFgTz724soSJ9bTmw96UQVpGJeW6RnpYABQWnXAdGJ40pp1DzKv5V9Uo X-Received: by 2002:aa7:c306:: with SMTP id l6mr8186255edq.78.1570090468344; Thu, 03 Oct 2019 01:14:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1570090468; cv=pass; d=google.com; s=arc-20160816; b=IJs1Nu2qoFjXr5YLT0sU3CQJmvMiv4SP8P0zKnxMPw1BzRCtPQk2tVsy42CAE2mO3P 6NAAfYbxOiP5yMPnLF85tMLtMIfYVJKj/ELn9aq2r2ALGtOvXeiTQ70k7ZITEsZdM4g6 hPMIdBM8aN00nx0si4s3kcbxoZE2XLJyLyTjdd/1jMHY8j2C8KUed+fpxs9dwRJZHgoT kJ+ANlR7zCe1P1QW3727q3AM3O4j43aYlg/y5lVXWKIM45S5Pg50Yp22QhoOiD1gFSH1 NnCaUlNaYDMtwby802PN4aGElsdx1nai7wvBqrbG3PbxX9zuTV5lO/TH5isDFX8sRTF1 jcJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Vsyf800x72H9+ETQ0ssLBSEpyhKde32bLKSDWhKzhB4=; b=wp7zdwn30arcMLuabI+pqtvZc7TWlnmiHHFG8G57EDpiZGzul3zpyvBxYIFQg1kFMZ vrLsNvARQxGJdQbfwbjsvySVhIZ4kSvrGscSCeMgj2jeR9tW0tJByEqgoBiwhLhd7MPC RsmwXTHkNE1GMF5Hyg5XteW1++ftqO7m7PqPQLT9luE/52LomzH1gxcPjxc3FGGzsupA Nz4lr36kheAufqrXFrEcR3kzq4lXJKJez7Q1nbrcjx4k9pEVsqR3KSqJ6zKTQsT2t8oG bOpSu2keWBfd5g3ulLNx3grGo5jtYIbDCTy9c3/BGQz7tRA2ssaFEtAecHyiLsB5QHW5 5ipA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tandemg.com header.s=selector2 header.b=CL+OZuY9; arc=pass (i=1 spf=pass spfdomain=tandemg.com dkim=pass dkdomain=tandemg.com dmarc=pass fromdomain=tandemg.com); 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k9si796918ejc.310.2019.10.03.01.13.45; Thu, 03 Oct 2019 01:14:28 -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=@tandemg.com header.s=selector2 header.b=CL+OZuY9; arc=pass (i=1 spf=pass spfdomain=tandemg.com dkim=pass dkdomain=tandemg.com dmarc=pass fromdomain=tandemg.com); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727207AbfJCINn (ORCPT + 99 others); Thu, 3 Oct 2019 04:13:43 -0400 Received: from mail-eopbgr00097.outbound.protection.outlook.com ([40.107.0.97]:56898 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725879AbfJCINn (ORCPT ); Thu, 3 Oct 2019 04:13:43 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nUMyl8/wGVSj5UWGCxwqM6/8Bz+Fnzr0ZUP9kBoiTwFGzPJ2L1c6pa/S0Anmbg93WnGxcsOoXqKQxc/8qQ+O1/p3S4+GH8uU9R9FbDKv9f65ZGgiAu4kgPCise60ziT4FI98gx3c1qGUyg4zTrjJrqaI/dZuT3wAOcFcxTx9DeauRSvxMZxRKFoLV/ig2flS4TLWYvyNriDC0nDJdE9bTmPz9/mtPtbxh2oqg3pomk/tuNRdlzu8Ebzkyx3BHQgLF8wlu9B89QqvjWz2wUPkEdl4X5l387ArPHFyBnB22DbGLgvMa/e0OP/e7Eo2ruUVMzX26YMU+YThQVyWakUrOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Vsyf800x72H9+ETQ0ssLBSEpyhKde32bLKSDWhKzhB4=; b=UyfpD14apwKNM3TPd2ncwfWJ8YNpbjOvgVEi2rZH4/GtjK0yYWhz4+BXDYkIZysfDy3P8dgGx2ggSjPYEFbWl+bsE/h+PNtvqIH50Id7gQzPcKrMpM2AJhQ3KOrzMnDOfBGBTRqM/T/In+PsTbPb1VVfoFjBQWhkAzTh+WZNiGAdUcGP/b2CBwE1szHdzMKwtYtqBeVAQ+V1QkMEx5+85/UQ81L6NZaF1ZuDN7/uGOFfh+JgZohG1v0lOGGzxmJmxj/StefvDpEh2KKbLhTrRxq2KVHQupssJufm0/MWedhyHHb/j+ZY/DI6SfhUEwnlA0sbZ5ECvstjHx0V8eDyrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=tandemg.com; dmarc=pass action=none header.from=tandemg.com; dkim=pass header.d=tandemg.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tandemg.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Vsyf800x72H9+ETQ0ssLBSEpyhKde32bLKSDWhKzhB4=; b=CL+OZuY9/efSQXLJ19sUXJfWK+FiH+GQ+yG593uG0PbwOaDxVRS9GatNFFGJEIuUMt2r3sdmvZggS6R45ux8tjnafVVOtHaa6Va2KUnkb//lrVedJgWx2zn7rCWCuU2Peg3Bgx+nIOZCD1UaBCvYHKUTlRrtLWyHEn7zsqJwilU= Received: from DB7PR02MB4314.eurprd02.prod.outlook.com (20.176.239.11) by DB7PR02MB4619.eurprd02.prod.outlook.com (20.178.42.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.20; Thu, 3 Oct 2019 08:13:38 +0000 Received: from DB7PR02MB4314.eurprd02.prod.outlook.com ([fe80::f978:a0d8:4042:92b]) by DB7PR02MB4314.eurprd02.prod.outlook.com ([fe80::f978:a0d8:4042:92b%5]) with mapi id 15.20.2305.023; Thu, 3 Oct 2019 08:13:38 +0000 From: Aaron Komisar To: "peter.oh@eero.com" CC: "linux-wireless@vger.kernel.org" Subject: [PATCH v3] mac80211: fix scan blocked on DFS channels in ETSI domains Thread-Topic: [PATCH v3] mac80211: fix scan blocked on DFS channels in ETSI domains Thread-Index: AQHVeSmOSAENpyhoVE6RI/+qs7ypzKdHoGQAgADyMIA= Date: Thu, 3 Oct 2019 08:13:38 +0000 Message-ID: <1570090415-28671-1-git-send-email-aaron.komisar@tandemg.com> References: <02f58201-4b92-0a1e-d237-6838543a3513@eero.com> In-Reply-To: <02f58201-4b92-0a1e-d237-6838543a3513@eero.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR01CA0046.eurprd01.prod.exchangelabs.com (2603:10a6:208:e6::23) To DB7PR02MB4314.eurprd02.prod.outlook.com (2603:10a6:10:44::11) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aaron.komisar@tandemg.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [84.95.243.50] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 24602111-8b1a-4fb6-ee7d-08d747d997d5 x-ms-traffictypediagnostic: DB7PR02MB4619: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 01792087B6 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39830400003)(346002)(376002)(396003)(366004)(136003)(199004)(189003)(51444003)(446003)(14454004)(2616005)(11346002)(6486002)(476003)(44832011)(15650500001)(66066001)(102836004)(26005)(186003)(316002)(76176011)(2906002)(66476007)(6436002)(486006)(5640700003)(99286004)(8676002)(3846002)(6116002)(6916009)(6512007)(2351001)(71190400001)(508600001)(71200400001)(52116002)(66446008)(66556008)(66946007)(64756008)(8936002)(305945005)(7736002)(5660300002)(53546011)(6506007)(386003)(25786009)(50226002)(36756003)(14444005)(81166006)(81156014)(256004)(2501003)(4326008)(86362001);DIR:OUT;SFP:1102;SCL:1;SRVR:DB7PR02MB4619;H:DB7PR02MB4314.eurprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: tandemg.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OblGzlFDNYC2UzdY/cTvzpHzMfg0Xx/zku04X3qJAMfwgqgeotoukaP/Sz+0Dd4n5lUiEOSjs8Do2dURg17zezW57IXG5Q1TrHhv8N4afhAqdHxDh1yFAOQs+6gPfRwuIK+26Zkamt9zTb7hTip1qfLAuS05o5w/4VdjGbgwdo9/XN8F5/yO75r7/0UNIdU9TydjjtV1C8lz01PP3v3+FRJ2zXBMzcZCcRZ51fhbjxm0givTkxANTz6kgLLd16cXRUqgxQUCy3CiF0rP9I/W8s2lRRoZpoUXj6P7cMbT9zZKQ5gM+x2VN2Xv1rFsOYJx2Co7otNs7M4sGCT84z+qdiqWp5ZKtw1BncNN8uVSRazQf63KO6OpGo6mif76x/0i5ZdLkvFTrBT4TIE7LVdd2zEoerP4hFy3FHn6t9iWyyA= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: tandemg.com X-MS-Exchange-CrossTenant-Network-Message-Id: 24602111-8b1a-4fb6-ee7d-08d747d997d5 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Oct 2019 08:13:38.0717 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d690b55a-f04a-454b-9f62-fb1e25467a25 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: F/GI6lAXu+3fu3XgDdhn8qmx3XRSSinT15hMgFDct3fTT7eoDf/Eod3oiKRkNCS7sjsZozf2e753INqQCZfseG92aDnn1Jpmmn+SOivo9e4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR02MB4619 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 10/2/19 5:46 PM, Peter Oh wrote: >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 chan= nel. >> 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. The problem is that scan request is blocked in ETSI reg domains. In non-ETS= I reg domains the behavior is fine. cfg80211 blocks scan in non-ETSI reg domains and allows leaving the channel in ETSI reg domains. I think that if we add a function in mac80211, which checks if we can leave the operating channel this function should also take into account the reg domain for completeness. > >So to solve the issue, the right approach should be "check if DFS >channels and check if CAC is done". We can't scan while CAC is in progress but why must we verify that CAC was = done in order to perform a scan operation? > >You may refer how "cfg80211_reg_can_beacon()" is doing for that. > > >Thanks, > >Peter Thanks, Aaron