Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3028858pxb; Sun, 29 Aug 2021 10:57:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0+bA4YLXnAPt8hHqwoS3LOKICULamWjGRFeQQNZY2xhMpe9gCEyikkyc3r0bN0s94OL7j X-Received: by 2002:a92:6803:: with SMTP id d3mr13065526ilc.145.1630259845225; Sun, 29 Aug 2021 10:57:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630259845; cv=none; d=google.com; s=arc-20160816; b=XcSlErA6+XGsm1WIwbgaH229myh/irnXKIEfsrV3u44/Kocprq1THBSiTJcU0OCjKw 9wmeNDev+6uboPjZ22EJoAt3oZnuwVOizbnCJ2uHZp0CZ7Ul2k2S3sG57N4dkjZPC3j+ Dbvja76R9gA6wnKsJGg+KHtxr7Vjvxe3WEKHdKtIYHjuiTQAUon3oM9c4YfVsjOpN7AE c6cg259gHjPymRCbZVRkxzSh/34sijc7S8T8Fp3JutceiBfaWpHgRqUPM7LhjwbANWRT Qsb+Cc++JWPWYpaKD1W3HkmZ01EQo2SCMjlQwPNcrplZwm48URC7qd0otg9YH0+3X0GI p1UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=P1Y80Vw8sw5liCLYQx1o6b086zpBifZuJM9UGKAOns8=; b=Fn43qn1FuMmAolAqzlAZFeKH1JQWU22xIHf8CLh/l0DriTFVKgf7aLy2I4Qw8AH8s1 L7jNz9ZPZtwhQytHMOyMFrXpEaVIjwBpzriS1HG98na/acQy/5AtpwpLjk3g0umvcVle fB8Mow1RjuyF5KR/2cJhOvrAxRYHzXrG5h+SvbP9Amoo3XMf7G/gZbW930N9Q5WnSyP5 7C6yk6JfV6Ej75lARxvG4c0o/qhXxQYSjVx/lwbCFN0LUDDrHwOhmZnkGKoAmywAdYcD OMM9WIPgmPqdW7t9ZE96XCIImELsrD8hlvD05o7t0TcMciDwdbMVKb1SVX4GF5t8+/ja 273Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sxmComzQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si12664771ilt.132.2021.08.29.10.56.42; Sun, 29 Aug 2021 10:57:25 -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=@gmail.com header.s=20161025 header.b=sxmComzQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230100AbhH2R51 (ORCPT + 99 others); Sun, 29 Aug 2021 13:57:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbhH2R50 (ORCPT ); Sun, 29 Aug 2021 13:57:26 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14BD9C061575 for ; Sun, 29 Aug 2021 10:56:34 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id f2so21749937ljn.1 for ; Sun, 29 Aug 2021 10:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=P1Y80Vw8sw5liCLYQx1o6b086zpBifZuJM9UGKAOns8=; b=sxmComzQ6uhH27beJgztFWBAq9CGMSvsnBxyhmT2NG+nzoISSuz+w3UFlX6MZz3kgI SLDUNbNSOaV5dFZWp6sjesd2yW9cJ42aU98Q1okuHWfnRvCW8DcO2qaAo8axoaNCIblX aaKE4/kAtc/QCjnwxQEw10nJB4mi9BUcg00Lxuc5wl8tvTRdHFkPlggCF0I/vRcPJ+3l IEmN+Z6QOS2BdS+JhSiXSdA96qFjAPoChob4u4MYVp93F/GYLeSW45Mg3Sxht7LEEDU5 hw7ue3FrM8n3wZnp9E/oTnPgiMrffDICfRdA8vAEFWzmpeV6GQtW5U8d7s0VtTl+JkEb tWNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=P1Y80Vw8sw5liCLYQx1o6b086zpBifZuJM9UGKAOns8=; b=GjPB4kJYl4sxsazleNWy1cczgIW81pfa8vnYIQWFjt9WZcTR5qUAbLPAHCDSf+yYyQ /rwcfFRbKqmvKia0CMewOp6mcoJI6DNyEXsUqyVE8Ner0yXM8syIXfVxKr25C9vfUKEJ WRUue/DgqpEbCw4ShRJFuNZxbogONNMFvnZ3ykaA2dWXpI0nqyE8W9PP4JQkfq98+aV+ hTkIOm3HjJ4OjYTHBohPdIk/r+rc10cpuW7WLKK5eDAMO2hkFgzJpiXuYM/BBqyQhODX DDanf+Gp/T1oWJXDWVHDEBLWqrTGZv39XgO27KD8PzHIHiRphyJ6CI/+JhzPv6GguxPC ZkDg== X-Gm-Message-State: AOAM530DqWcMu8TyEW8YeQ0Xz4ni/k5+PIaLN4GHeE3zIzWioGxLv9TO c9Hsn4Tu4gkXkT7iM0tE7nZwa2du4IWuiLt48MXYkN0N X-Received: by 2002:a2e:3914:: with SMTP id g20mr17095204lja.88.1630259792468; Sun, 29 Aug 2021 10:56:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Janusz Dziedzic Date: Sun, 29 Aug 2021 19:56:20 +0200 Message-ID: Subject: Re: CAC question: DFS -> non-dfs -> DFS To: Ben Greear Cc: "linux-wireless@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org pt., 20 sie 2021 o 18:45 Ben Greear napisa=C5=82(= a): > > Hello, > > While poking at the MTK driver and trying to fix some CAC bugs in it, > I noticed the following: > > Select ch 100, which enables DFS CAC logic. Wait for that to finish. > Then select CH 36 (disable DFS) > Then select ch 100 again, and the chandef->chan->dfs_state is set back to= 0 > which I think means we must do CAC again. > > I was expecting in this case that the DFS state would be set to NL80211_D= FS_AVAILABLE > instead, since CAC just passed a few minutes prior? > This depends on DFS region (country). EU allow preCAC - once you pass CAC then you can switch to other channel and - the old one will be DFS_AVAILABLE - no need to do CAC again. All other regions don't allow preCAC - so each channel switch will clear DFS_AVAILABLE and require CAC again. BR Janusz