Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp692653rwd; Wed, 7 Jun 2023 05:49:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7LfIkXVXEr1g666niHhRFOPNwBsbh8I9SUqRTyDEBZSPO4vFEXRkcCu8gI8BxlzATt0Cm3 X-Received: by 2002:a17:903:230e:b0:1b0:36ad:fe13 with SMTP id d14-20020a170903230e00b001b036adfe13mr2254956plh.16.1686142188008; Wed, 07 Jun 2023 05:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686142187; cv=none; d=google.com; s=arc-20160816; b=H9hTLp+hCCOL8oWR5iq+nkx6IMsB1BoilAMRUweZzb93vyb9xhNKGGdiC1mdF/rmFt z2KRirZeOJnEUwFvAWnjRVZqrIEwhiDM6hKVA6ViAvdBDvYA+K0GaBWI+Tk4FI00Ae30 J4g0f4nKwa82UT2vVgL5dL76+lDy2tnGycLu6nSgJ0UTtYrH4EJFw6pW2Xfc91kl9oHC IfIqT/pHig3qPBUNjASeW22u1YVTRXDs4tuVX9zKb5HcI38nPdLstLoCWYxrPNCUgsU4 wWphfChLs5Er+OEFtfrSdAjSZO6HsL2QM8+Zyxj8MqSCYFl5cbXnXn/jEHGPz0BPobob R0ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=p8kCR4yZTmd2nVUTUQzqDo5PTw5dfuNA8lg0QyOYiqI=; b=f8+NagJkaNJnMNpEj61r3odmFRA2fSs1Qd5LC77RWmNPPQpm2sT27lD9jwbVaKN72s wOeXxw+ouuOp4c8N2lQDoxnsMc/kVp3LsPA2CKGTvBHs2988uHBqxgPgm7+5DN1Tay03 pdOrzkYezQNfeTuMuaD+i61jwJeA6rl8/NgVELLIzFrrRTpicLJEwX4oC+O1NNJwA9GI q02TehUwp5w0pkS3JSDdNy3hxTXGrBgxPF7/2VpLv/DxdxbuGg5yLTQMx09VxX3PW/ch XYw9/ZjNqb2AVcTXw0rSwJC1YzpEyi4JqhmaSqa0P33LApKRgth3+OH7LLGJvthJwVt3 YMBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=SEPUK0YX; 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 ij1-20020a170902ab4100b001a9b2c782ddsi8659953plb.176.2023.06.07.05.49.37; Wed, 07 Jun 2023 05:49:47 -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=SEPUK0YX; 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 S240413AbjFGMrq (ORCPT + 61 others); Wed, 7 Jun 2023 08:47:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241082AbjFGMr1 (ORCPT ); Wed, 7 Jun 2023 08:47:27 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FB701FE8 for ; Wed, 7 Jun 2023 05:47:14 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 357CaRAS009624; Wed, 7 Jun 2023 12:47:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=p8kCR4yZTmd2nVUTUQzqDo5PTw5dfuNA8lg0QyOYiqI=; b=SEPUK0YX0pYMP+9y99TcBopd20gvwPZ6zfZw5Koq78DI/f9Wk5QhDMca0LDvhmF4pIrZ DjqUNyxdRNOXCtyuVVYQIHy0KCpzeEg7ZqwvMfUINcVYtJ8KPj0b3CQ0h7GVxqH+BLMI 2jgvjt3kzM0VsNuoIgm5xMI996PhLP6FvFMKjExjNcscN1CM0f0MSmCnkfQp6vW1RUA3 XHPt3G1EQCZzaJg/aUSalBGlLf1YnSVJl7P4/xo0ZMSAcat8EL1e6yiydiV6qLm300Ei yYPE4DSGodNb+39oRr3Lbv4J4swKHWBxEwH+3QNMuqsGpVeG2ZeJT8VBZbl1BaGFClMd Fw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r2rbtg7b2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Jun 2023 12:47:05 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 357Cl3Q2007757 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 7 Jun 2023 12:47:03 GMT Received: from adisi-linux.qualcomm.com (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.986.42; Wed, 7 Jun 2023 05:47:01 -0700 From: Aditya Kumar Singh To: CC: , , "Aditya Kumar Singh" Subject: [PATCH 0/3] wifi: ath11k: fix CAC running state Date: Wed, 7 Jun 2023 18:16:44 +0530 Message-ID: <20230607124647.27682-1-quic_adisi@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: YjTPK63VGR4OWNspQ4Y1hBniIX4Kkd4f X-Proofpoint-ORIG-GUID: YjTPK63VGR4OWNspQ4Y1hBniIX4Kkd4f X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-07_06,2023-06-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 malwarescore=0 adultscore=0 mlxlogscore=833 spamscore=0 priorityscore=1501 phishscore=0 impostorscore=0 mlxscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306070107 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Currently CAC running flag in ath11k is not set if DFS radar is required in secondary channel. This is due to the fact that only primary channel's DFS state and CAC time is being checked before setting the flag. Fix this issue by checking the DFS state of all the sub-channels inside a channel definition and not just the primary channel. Also, make minor change in debug prints to show the CAC time Aditya Kumar Singh (3): wifi: cfg80211: export DFS CAC time and usable state helper functions wifi: ath11k: fix CAC running state during virtual interface start wifi: ath11k: fix Tx power value during active CAC drivers/net/wireless/ath/ath11k/mac.c | 27 +++++++++++++++++++-------- include/net/cfg80211.h | 24 ++++++++++++++++++++++++ net/wireless/chan.c | 2 ++ net/wireless/core.h | 17 ----------------- 4 files changed, 45 insertions(+), 25 deletions(-) base-commit: a4756ac34a7002861c9bdf8cf45aec53a77fb78d -- 2.17.1