Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3253834rdb; Wed, 13 Sep 2023 06:55:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOE31y8SZ5ivW8Ww078ha1nf0e3QeqidURVvCqqsex7xJOLbvq43io5q65DbHw3c7PW9jh X-Received: by 2002:a05:6870:46a7:b0:1ba:ddfb:a5b3 with SMTP id a39-20020a05687046a700b001baddfba5b3mr2667452oap.44.1694613355244; Wed, 13 Sep 2023 06:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694613355; cv=none; d=google.com; s=arc-20160816; b=X5uhUEkWV5E6Mt/KFdwco/1t/oHSebkLN1MqnQYlO7jzUK8vOYOYQCoUS6qEGWZuOT sdiN42bOdC6IGA5qUeLOVIgnIu8LJDsCuaYtI8IFXkqhpymIqObp0cYtsGdENFrxI9XF bfL6HE4E494roBfTM5CVJk0zKQhX1OT/pkdbhrLIlWcVICFne/c6Hd1gUyuNwmm30fF4 TZiJiOWbcWXNk+OZ7ze/P4mla0WMItUzgmAfXvGraVtd1RKtY4L27IEXNGYAOsqtPS8o 7+13o/RHkqnoVlXR2durfnMnlsIM57/HTAAWUDh//lNmbbiqZvVNdNQRZTLnMCz3mY0T sD5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=jN+sZKcnCw2xCWfqCVgbNlMkLsTh+etQVh8RXFinems=; fh=JLIlGlAkRj0vOgAY+QqgRyf9xxljzrxWiBcsX8VPQMo=; b=A++sVz7xZd0//VotPM2+5Phw5Q78pWa/JxNDzi7UdPGregWKO78z56QvRAfHBJKs8Z TJOIomb8U+rDeIaJ7313xtN9dkf0L1KbnNrs/s5c+l0vwOIXnlDomgELoj9WVM7JuLEF TnW1QnJcdhaVM60ghUA8LWTk620LzSaZxBQRAz8/rNcnNgNVnsdLCmNf6a+6Q8Z9bUpG iurvtAdFch5LBngqG8PVifWDQNTZjhlXJnR/fITqIL9aFvBqbjFpLiDtpgR0zACFcypR PptqKPOW2xeVLuuRTslNxTlXijaLSknrPjfSb+RVLn4ICp716u4cZgvfWpmM5huZGScS t6yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=jx4WJndD; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id m66-20020a633f45000000b0056b4065299esi10303477pga.621.2023.09.13.06.55.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 06:55:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=jx4WJndD; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 8232081F369B; Wed, 13 Sep 2023 03:17:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239644AbjIMKRq (ORCPT + 56 others); Wed, 13 Sep 2023 06:17:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239615AbjIMKRp (ORCPT ); Wed, 13 Sep 2023 06:17:45 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C89011727 for ; Wed, 13 Sep 2023 03:17:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=jN+sZKcnCw2xCWfqCVgbNlMkLsTh+etQVh8RXFinems=; t=1694600261; x=1695809861; b=jx4WJndDKattdtRhx0L/jorW7/tJoG23Dv25l62DdJex7qx gexGD8xpcMnq2BSy6tA7NCHkZa/UDsdHUw4DWoDPuMXQi4PXzurD/OzXO0YEuWIItbJY0+I6ptQtO PGxrSJCdOxj6o58M/SGhpngyl1K3z8AWA5s5sKHYIRZugYnysX4BURWQyd/zY37f/w22aBntP2GtZ rYTxSjhr2fcIJaaq/UTPZE3bW2R4pfSKcsX9EMcCtQCy8cF2f+yfAAOuyerPsuanmtsvUrFcT6D9e b6b90nz9divAY1M1W9VIhxOTMs5EFMuxs27GmxV/DGFbQrX8gqZK8nVxZ9Pz3WTg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qgMwF-00EmRJ-12; Wed, 13 Sep 2023 12:17:39 +0200 Message-ID: <365caa2a20678c1c1c08c947a2141b40320553c6.camel@sipsolutions.net> Subject: Re: [PATCH v2 1/3] wifi: cfg80211: export DFS CAC time and usable state helper functions From: Johannes Berg To: Aditya Kumar Singh , ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Jeff Johnson Date: Wed, 13 Sep 2023 12:17:38 +0200 In-Reply-To: <511f23be-7b7b-42d9-9c3e-25edfa5d7323@quicinc.com> References: <20230912051857.2284-1-quic_adisi@quicinc.com> <20230912051857.2284-2-quic_adisi@quicinc.com> <511f23be-7b7b-42d9-9c3e-25edfa5d7323@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 13 Sep 2023 03:17:43 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email On Wed, 2023-09-13 at 15:46 +0530, Aditya Kumar Singh wrote: > On 9/13/23 14:58, Johannes Berg wrote: > > On Tue, 2023-09-12 at 10:48 +0530, Aditya Kumar Singh wrote: > > > cfg80211 has cfg80211_chandef_dfs_usable() function to know whether > > > at least one channel in the chandef is in usable state or not. Also, > > > cfg80211_chandef_dfs_cac_time() function is there which tells the CAC > > > time required for the given chandef. > > >=20 > >=20 > > Should we really export the time function just for a debug messages? > > That seems like a waste of space? > >=20 > Yes absolutely. But actually as a follow up of this patch, we have=20 > Background DFS patch in pipeline which requires us to send the CAC time= =20 > to firmware. So its actually needed there. And may be once we do this,= =20 > other drivers also may start using this? OK, fair enough :) johannes