Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2541005rdb; Tue, 12 Sep 2023 05:22:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPErtpiO2jQwygKiEYw6hBrfB/NGzIIMYrQ8oYobr1+Ys8BB4DjcVUbbDQApd15nHDjYyw X-Received: by 2002:aa7:864f:0:b0:68f:cc0e:355d with SMTP id a15-20020aa7864f000000b0068fcc0e355dmr3773805pfo.25.1694521374390; Tue, 12 Sep 2023 05:22:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694521374; cv=none; d=google.com; s=arc-20160816; b=UCc7UHZdIMtiLfE2UFgIOnQ6ozloV7oVOYLSPnygXXp1g2rjkvTsVEaKdR17p9EWA0 dEWw9Lnx+PPZgr1/3K3NkaXkqpIzttsTZYS6kEfAEb9hxMt6eQgtnb0b0xKwelB1NZKv +i+5+SAfbw7aqkoGTGf/acy0zTSdPhgZDNXWEvNjUckPX0Z5xB1nd3WJC/vmWaDtVXne RHSvb97eU9uys599JKJCoxnzsyaeRNiwJJdRxOGt+UOTxDxDUipVCxOup4lkVOVrTC5+ vECfnf/b4zdSCemxHyr4MrrsjmCnOzuqb8tuR/VxpxMDFfhMuJSvacE9KIj5EC7cb29g DMhw== 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=TJbAoEQqo6+uWPfCRClZYQfwe1JwyrzoVgw97CEUR+Q=; fh=W+5SKaFxthTmphJqNfvr20eGpDs/whkH1ogVujk566U=; b=rlRpssbO27Rc3q6hSlvnPMzOBt4hnJKZUo89vVi6Du8bphUL9GfCwrNsPdhecE8D0S Kbhm9J/wz3U8vn6i5rFfnrW69W3uySOCHquz0ZJTikhza66KPmKwVzmYxDs7Qy9dw+ui RLAe2yS9iCcmgQevefxJBJiOEU0AcppTt5IAR7Dilzx4GKWYlQkkDkLgSu2x90KPzV4X lyxpGjQRqF5TM9v12WjmOLN+/I3lN5ueQ4LOHfy0r9x7Ljqz89Iycbct28Vz6yRyrK3P pbjgJE3ClKhtDnedb4QXW0sQKKkbzlI+M/sSws+NmATzObEPosq/r9oMAwLBQnGSKrMH ZIQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MDMl3Dv2; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id r22-20020a638f56000000b00565f0087a6bsi7842350pgn.427.2023.09.12.05.22.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 05:22:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MDMl3Dv2; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id E413180B8222; Mon, 11 Sep 2023 22:19:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230377AbjILFTk (ORCPT + 55 others); Tue, 12 Sep 2023 01:19:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbjILFTk (ORCPT ); Tue, 12 Sep 2023 01:19:40 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D807AA for ; Mon, 11 Sep 2023 22:19:36 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38C4QOkW028316; Tue, 12 Sep 2023 05:19:28 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=TJbAoEQqo6+uWPfCRClZYQfwe1JwyrzoVgw97CEUR+Q=; b=MDMl3Dv2xD1x0T5MpcIPYPompHgyvu11xDQLt1BbrmAdRdIZAkFZraRIod35y2Cp+4XD MGSqUa77Z+GeFi51FA2gN5uLQsm6wvh9qUvck735OXdiJtMX9xBCywuoKZbx+/yFpWSi ZDdhVWOnBzisuUDs2wFWEeYe8Pf4tqKLiCtIXf/L377bY4gq/B9dsa0ykxLYgCyyfIFD F5T7YI0e08hlaTDdPW+I/B03YfpRriKaV1s11xuRf5twIYyIkce8DD6ABxXikHwcMuU6 mixjR+KO4Zxz8pCm+4IJdAQ1ZCgSu5q8RuItKLhYWDBH0SdaE0kXGjOC3qDne0vzu/Tk Sg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t2f3yr8s6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Sep 2023 05:19:28 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38C5JRRI030837 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Sep 2023 05:19:27 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.1118.36; Mon, 11 Sep 2023 22:19:25 -0700 From: Aditya Kumar Singh To: CC: , , "Aditya Kumar Singh" Subject: [PATCH v2 0/3] wifi: ath11k: fix CAC running state Date: Tue, 12 Sep 2023 10:48:54 +0530 Message-ID: <20230912051857.2284-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: 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: Qv9nUkGH93U-HRKFt-bnTEB2s4D5ZxLy X-Proofpoint-ORIG-GUID: Qv9nUkGH93U-HRKFt-bnTEB2s4D5ZxLy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-12_02,2023-09-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 malwarescore=0 priorityscore=1501 phishscore=0 bulkscore=0 adultscore=0 mlxlogscore=862 impostorscore=0 mlxscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309120043 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 (morse.vger.email [0.0.0.0]); Mon, 11 Sep 2023 22:19:38 -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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 --- v2: rebased on ToT --- 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: 0263687f4441d5a5eab8074d56b4693c8f0acf85 -- 2.17.1