Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3354772rdb; Wed, 13 Sep 2023 09:29:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHfzoOEaaGdd0LxPxOtOD+OFpUkivNdfPsO6t4/29BjVK0e0HYOweyVfYsbPV7nJkoEwtXk X-Received: by 2002:a05:6808:148a:b0:3a7:6f16:b549 with SMTP id e10-20020a056808148a00b003a76f16b549mr4006745oiw.49.1694622563081; Wed, 13 Sep 2023 09:29:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694622563; cv=none; d=google.com; s=arc-20160816; b=Gy7KwHYH/QFbEXvqghQjSSabe+PzqM1vnItICVQG40gSRvt9fl41lBWe6IenFvrFt/ +Hl5gBBlcmJxjY+1RCOvD3wKe6ic6dznd2EHd3+FYAqc42uXDFY9QQJdNpUK2ZQyvY5X wI9WXsHPt287VXWyi2VZkaa8L+yTU5UaPhSktfvAWHqotcvdpwrTrPJ3Mw0+i7nJuESf dMjr/k0YP+dr+2MZ3I9a7RntOYP6S8XyC6gg2IdcMiKlwrEuuDOnvgION6TyTsc8EMyu nN+OWZgukGqj1YrAUuxUU9mHox3qqs1H0LmVLuQTM2ZpSQkJYl9phqKyO4Wfsi9HvYsN gZVg== 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=yZ0BE6MohAnvKX5DaJTlrPeT7/w+Jsstcw3KSFKWUH0=; fh=HNEfiow5aIDtnUkYYiB/tbonwaEcG8+i6SMa583BOko=; b=US9z5O4Cd/YacGQEity5QA9eL20jMeVi70+Q0awvSJ0MDN1Ras4Jrez8wKT1sFO212 ogfwQ5+9j8yiu8G1h5LTnvCUM00qBHWkvxM8ccICmpu+i6m5zJCU1MvFmYZ7ahaI+WSw UDORnsxf0pxKjcdOQ59aljJqzJgc/xMQSqmcOshQEJWIAQMisFA8sYoK+mfKY39/NED6 y6h+jdhxIRNINtHdsCCfd8cUQYB8jMRnltqENoATBfvjEO8tLfeR1Tgn3wNgDRBi9x3f QPVo3rG8t0HJwNL3OUitaTr1SC8J53hiOGlL1yZb5Rz6QkwYJBnM+eiZ/dTUKFs27UXe KheA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=L3UbSwLn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id k8-20020a628408000000b0068a49a550b9si10268422pfd.139.2023.09.13.09.29.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 09:29:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=L3UbSwLn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 3502D807664F; Wed, 13 Sep 2023 06:25:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239435AbjIMNZR (ORCPT + 56 others); Wed, 13 Sep 2023 09:25:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234046AbjIMNZQ (ORCPT ); Wed, 13 Sep 2023 09:25:16 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0207E19B1 for ; Wed, 13 Sep 2023 06:25:11 -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 38DDLKUM029806; Wed, 13 Sep 2023 13:25:07 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=yZ0BE6MohAnvKX5DaJTlrPeT7/w+Jsstcw3KSFKWUH0=; b=L3UbSwLne86ahhDydmacOsVDt9n7fc7/C5dNk7J3jF88HhIo/YWyOudTrB0YVEHlli1/ LYzDyeV6wVTlFswq1AwrD7idMrUMkernIt/13WY8c+smnTm1vfq6Aq8EeHQETTSiuxhw ji4wp69GheHZNK1S1uTXuwRgQF209WJ3KADprnqaOrPZGNfTEcPg098JuPsPb57eazxi 2PYHirF5xs3yYqTKCw+tb9Tw9x4u5+rMjJRm2PApoq3CHk+lrbi/3VOrWgueFuGtYSay 8FiJRtFGPp5shKCfeiwT9Gkffv5TYLsAZa/9vlYyKtdEyYrW/EN2usgAlzRYicKIgoLB 0A== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t2y8q1mfm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Sep 2023 13:25:07 +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 38DDP6uJ027069 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Sep 2023 13:25:06 GMT Received: from [10.50.29.197] (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.36; Wed, 13 Sep 2023 06:25:05 -0700 Message-ID: Date: Wed, 13 Sep 2023 18:55:02 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] wifi: ath11k: fix CAC running state during virtual interface start Content-Language: en-US To: CC: References: <20230607124647.27682-1-quic_adisi@quicinc.com> <20230607124647.27682-3-quic_adisi@quicinc.com> From: Aditya Kumar Singh In-Reply-To: <20230607124647.27682-3-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-ORIG-GUID: mGM1EPuANFZVM3BwvdGh_UbZU7Uo6jmZ X-Proofpoint-GUID: mGM1EPuANFZVM3BwvdGh_UbZU7Uo6jmZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-13_07,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 adultscore=0 phishscore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309130108 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 (groat.vger.email [0.0.0.0]); Wed, 13 Sep 2023 06:25:14 -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 groat.vger.email On 6/7/23 18:16, Aditya Kumar Singh wrote: > Currently channel definition's primary channel's DFS CAC time > as well as primary channel's state i.e usable are used to set > the CAC_RUNNING flag for the ath11k radio structure. However, > this is wrong since certain channel definition are possbile > where primary channel may not be a DFS channel but, secondary > channel is a DFS channel. For example - channel 36 with 160 MHz > bandwidth. > In such cases, the flag will not be set which is wrong. > > Fix this issue by using cfg80211_chandef_dfs_usable() function > from cfg80211 which return trues if at least one channel is in > usable state. > > While at it, modify the CAC running debug log message to print > the CAC time as well in milli-seconds. > > Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Aditya Kumar Singh Hi Kalle, The upstream dependency got merged today. I have sent [v2] of this series which was just rebased on latest ToT and the [PATCH v2 1/3] got merged. With this, [PATCH v2 2/3] and [PATCH v2 3/3] are unblocked now. - Aditya