Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp410272rdb; Thu, 5 Oct 2023 09:17:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG7ZDRkqO0iU/Qi4VR7tUil5SfdtrdCQYaNfSXxNC+Zh2wTY7fS822nOh9xNbpymHHKKs78 X-Received: by 2002:a05:6358:7204:b0:133:4ce:4e8c with SMTP id h4-20020a056358720400b0013304ce4e8cmr7414741rwa.29.1696522658707; Thu, 05 Oct 2023 09:17:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696522658; cv=none; d=google.com; s=arc-20160816; b=0Kmb7qAsAeYARd7HNci0PBYuK22W5o+BmAYVPv+0gVl2ugIPFjlssKpLLieDPWhsBi ZBoui+w7ln+4ttmhBqIDEqDP2Ux/WzMURCjoxHo2SIdIqA2b3h8JhyzsDAxe4O4HtMhL 4giubbl2rRQ7wIwv09R1FUpFF1Yk6PxN9uvL+TYaiFXf+3y3x7eyyAUi97baVkG9IDS0 dK8HZ/qjUQla8tZhtCTGf5A6Q5j4XmBdAvZCRRCzEWNSuH10Wkv62uhgKOdZXFerlFw7 NMTkbYiKjwAFqyjASoOrx6BGkh/aTGZ5iMqQmQS0KAVwhnfDTnHAe/MHSSSQ/AeTxPjX Kobw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=h7kMVfAj0ajGd14FFEOpF4y6QSvGn1YmbWKme0xHJwE=; fh=QfSY3IK2fw98mOsEFw357pMuZZ+86w94z8ULZinzNMU=; b=k5l21f6HWS4PeWVP0KUnOu+tpjfiGyq+zLe39IMnvJWfguFu9oTErI4naLMLfXhkVZ pF4z2oXh1gQ67RtkKEzEaD/VW3t9GspstaKhMzUYQ0Tup9kfPHp92REnm02CMntGaGMk NO7UHATznIa+EzvNi4RUo0rlX3DiP+AaS9k6fApMz09niRirc1VsVPLiBC97fikb2jba 8rerKz9qieYEQna5Up73nv3wDlNG7et4WeGZnaPvzRICHxuSGVrcwQBDgk2eYZwsQByU Rze+msg4MlFMK1Ajh9Gwgrsl4QTggAiAG6vOn95Nt5doIl1z09ZSyUOvK7JEKwWlOWfn Loxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YgH19h+i; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c28-20020a63725c000000b0057884435a7csi1619344pgn.292.2023.10.05.09.17.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:17:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YgH19h+i; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9D6FE804F636; Thu, 5 Oct 2023 09:16:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232489AbjJEQP6 (ORCPT + 52 others); Thu, 5 Oct 2023 12:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241480AbjJEQO2 (ORCPT ); Thu, 5 Oct 2023 12:14:28 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10A8D24864 for ; Thu, 5 Oct 2023 07:42:55 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FA05C433A9; Thu, 5 Oct 2023 06:23:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696487012; bh=PW+4BzLpDF9zHyyfbmwr68+cskAVvPDqhBGD3+u9VWc=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=YgH19h+i+TwaxJadJfRPK+U1pi0dgxhqdfDnV6X0LSAmdVLPYfd7vyN45KnFyStEP lF8ld8rKP4MqKVu/k7HCv9xxg2HCfm8I6RwEG+FY1oB+tXvTqJ0Wvczu2EBzRIHNyH gTm6zJsAkteUh+Glqfd9XPAO66Q+4TAfJ7IRigFRzvc+xStQ21cmFrzsFBIFWFlmsb LCmyF8xWM+/PB2Qb+Inn6cthUS7H+mQOn2Ays833m6/WdASae/9u8NlM8CoNLzBLGT yJquf39KbPf3vNxp9VVJm7r9l4dVPhcim/iMy8LzrBkr3gj2Bp15ZQgIe350pCFzaT 7JvMC9EwZlYJg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2 2/3] wifi: ath11k: fix CAC running state during virtual interface start From: Kalle Valo In-Reply-To: <20230912051857.2284-3-quic_adisi@quicinc.com> References: <20230912051857.2284-3-quic_adisi@quicinc.com> To: Aditya Kumar Singh Cc: , , , "Aditya Kumar Singh" User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169648700901.444191.6213111122304356892.kvalo@kernel.org> Date: Thu, 5 Oct 2023 06:23:30 +0000 (UTC) X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DATE_IN_PAST_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 09:16:28 -0700 (PDT) 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 > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo 2 patches applied to ath-next branch of ath.git, thanks. 69fcb5259056 wifi: ath11k: fix CAC running state during virtual interface start 77f1ee6fd8b6 wifi: ath11k: fix Tx power value during active CAC -- https://patchwork.kernel.org/project/linux-wireless/patch/20230912051857.2284-3-quic_adisi@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches