Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2296907rwb; Thu, 27 Jul 2023 05:22:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlEdni4SLp37xvTGZeTczZpaQ1QUav5f4PNTCZV++LCGOoIybH+EaX/jYoKxoIqPCTRUqdUv X-Received: by 2002:a17:903:1112:b0:1bb:3d05:764 with SMTP id n18-20020a170903111200b001bb3d050764mr2769535plh.32.1690460568579; Thu, 27 Jul 2023 05:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690460568; cv=none; d=google.com; s=arc-20160816; b=Fyt29dXVCAcU3DDS0GiyPewxJXD8Lggcdx0PjDoapi50zlu5wI1/DItnaSpFnQPLpA zMCfHQaPZ7gpOlCfE3gegTWSFORpHMTZQ1gthrjHipAkk5mK1LQhcbXmgJOACXIEr4yR 5L7KQUDEjiLGVhPMPKrZFrZQvKZFZuOiLCzQEgUq/B3+Z+ggGaNqr3fCDe+o7jLvZ4lF WVCWqBO9bU3C2rVOhaOgBInGofekfpxnpvtlzYU9f1MESVHs7GPJqqxrw/ykUXJOrR6o f52Qe7CBkwskJ1n06spB/gY1uM+mVFQsYhAGm/4u7Ahx6H/34os1wxXClMZyVeazLKbV +NyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6j3u/oOQ2us5i2A4s9YNCLmj+cjL8lOcyodVJizc/wY=; fh=AXbJk5h9s5Gb9/M4ltfrYJA8i3+MajbZFJnAw/VpCrA=; b=Q1xPeUxSNcOsYyKuxTypYgeXZ2vSJLa0ACgoICuatBDhAfCcW8ZxiTUxvN9/lqslQb AIyv325EJvGsX7KqdFueSSitQ/F58J3lF2oCKYwOxLMn9tTUAnW3qcDhJzRQ3+k6bp4A UtREgwg5YDNeZxH0nEyn+D71Kkz5dSRav2ubsFHIAGuTfM37jlJzWnNhsim/ECbSEi+G YiZyD1Ryw3GM9lXBuuI6bPN0/NR7NR1KHsxaUkLFqEpFRs75BM3IoUelOBavBQd1501o N86MDgeD6YPUTCfOmE39+QYSYnVBks6rAjpCVsKKuN91WysS6z93oIJI5pAdh+albOIP LCfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VSb6Houa; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k17-20020a170902c41100b001bb1a270d1asi1384651plk.276.2023.07.27.05.22.39; Thu, 27 Jul 2023 05:22:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VSb6Houa; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232695AbjG0MFm (ORCPT + 58 others); Thu, 27 Jul 2023 08:05:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231221AbjG0MFl (ORCPT ); Thu, 27 Jul 2023 08:05:41 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8230A272C for ; Thu, 27 Jul 2023 05:05:40 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36RBRheG019561; Thu, 27 Jul 2023 12:05:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=6j3u/oOQ2us5i2A4s9YNCLmj+cjL8lOcyodVJizc/wY=; b=VSb6HouaU3EfdrEs6h/Dnx/dDvzwDcPGHBs1r/UndsqoI28jRXbgEr6SyOdnWYwHWiTF pvQlWzykD3YttCBoBtKSrFQZpL1TZSHAESNt5TqOO1TtcRAahJ2xq2DyMInws06TfD3L NNQraOKtg/Zdv5NKIC3DgHSVz0ERuqZRbjq1WAMmRbemn6VLfEjL+nffcnU92GGi7MFB Vlw2/4VaB5InHzylmq4VmZsowTVM2oOTcy6dZm7TQnkvLeOahGiyT9BNOz22cBGSHmnf MSoV90qaZcN91UVDuuz6JAcklLFH7uMpANEi310PGY2ijs7/IZGlpkLpLgnCxUh10Kuu 7w== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s37g0hy6p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 12:05:34 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36RC5WF5005127 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 12:05:32 GMT Received: from [10.201.207.136] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 27 Jul 2023 05:05:31 -0700 Message-ID: <5e45705e-b1d1-a0dc-2c3d-455fb433e93f@quicinc.com> Date: Thu, 27 Jul 2023 17:35:28 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: [PATCH 1/3] wifi: cfg80211: export DFS CAC time and usable state helper functions Content-Language: en-US To: CC: , References: <20230607124647.27682-1-quic_adisi@quicinc.com> <20230607124647.27682-2-quic_adisi@quicinc.com> From: Aditya Kumar Singh In-Reply-To: <20230607124647.27682-2-quic_adisi@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 4UyHquGEFdcdlGMlm1NRtev2jbbZoon7 X-Proofpoint-ORIG-GUID: 4UyHquGEFdcdlGMlm1NRtev2jbbZoon7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-27_06,2023-07-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 spamscore=0 impostorscore=0 mlxlogscore=719 phishscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 clxscore=1015 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307270107 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 6/7/2023 18:16, 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. > > Make these two functions visible to drivers by exporting their symbol > to global list of kernel symbols. > > Lower level drivers can make use of these two functions to be aware > if CAC is required on the given chandef and for how long. For example > drivers which maintains the CAC state internally can make use of these. > > Signed-off-by: Aditya Kumar Singh > --- Hi Johannes, Do you have any comments for this patch? - Aditya