Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2000744rdb; Tue, 3 Oct 2023 07:32:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFgNn5ZI1Wo+RZpD5vBQPbdBdL/jaEy6z85D37/NK9oShx1dKhzTiDkS2fVUbP1kPY98OnG X-Received: by 2002:a17:902:ce92:b0:1bf:27a2:b52b with SMTP id f18-20020a170902ce9200b001bf27a2b52bmr19104287plg.58.1696343528610; Tue, 03 Oct 2023 07:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696343528; cv=none; d=google.com; s=arc-20160816; b=Pr5YXaS8YCQEzkrwN9MPCxMTxEC1epGOf5hs5Stye74l83qhzFq5TOaAthbxnm5EWx aVcvCYGskPRcz6gj96kLl7h+vsdE5Rq7cTutc0oTUY7zYbPEqFFBBLl6LWgYC3QFq1rQ w/62DgspYZWS+ts3IwPaG+nPAs6I+crEtvczv6OZ8KTxzqRvm/jLy8YvdvOIDT6Oggxi Kqzc1hzCWVthMDQPMmTUmC94sU00AM1wyn4HE7RhCCUm3oxma2rRONY5hwLk+0PXjvGo g7S8R8SmRq+gmCzsYXBF0GAWVypfi5GPZ3lcwhiRUy5uUdbwxNMqRj5Q+vmpwonAd32S etGA== 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=VkrnPw94xlOj6ZyOAcfToW3PBK7bZaUO+LVASZRrM3c=; fh=QfSY3IK2fw98mOsEFw357pMuZZ+86w94z8ULZinzNMU=; b=tWG/UtGqbXbZ4VHFzt2WS+6APJNSEJLs0RneWn2rqrLoXwyORLHue4WYlGsUh8+2p4 Xp5OWnWZ2BPkdx9tb6eBCCW03SOTZvLpMG9gx7M+nkAryGtlyEfsYpaMkKxfFMKZwq1z ICdRD6tNHZ9b17hzyMU3YDoxujmtwPCk+Ru7nd5eFlFmLa+on25sqNe+SaoObB60mCY4 /JZqoiMVcQLQIxvh/ouWJn/V4+X/OV+qsAldV4qxo+V6JG203v5meGfoBVng0sYFBx9q UgIvs4YQ54O9Pnmqc9X59brmoKAjVwMpxtGpFl+vbndHnqkbm2ceQ940xrSm6jhFyDUM 4uVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JQVeDhfV; 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 v4-20020a170902f0c400b001bdafae4b7dsi1452828pla.43.2023.10.03.07.32.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:32:08 -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=JQVeDhfV; 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 C891B8197E9C; Tue, 3 Oct 2023 07:32:07 -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 S240170AbjJCOcF (ORCPT + 53 others); Tue, 3 Oct 2023 10:32:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240085AbjJCOcC (ORCPT ); Tue, 3 Oct 2023 10:32:02 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49AE0C9 for ; Tue, 3 Oct 2023 07:31:58 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C09B7C433CA; Tue, 3 Oct 2023 14:31:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696343517; bh=R5knwHQOjR4bemaMdQJFUcGFqhQhw6tbKDueE1VtNyI=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=JQVeDhfVTRwSCypU6Hx6PhuZkTJYBvYmUWu1tDnhTTDR5G7G5xzVIcZi00rh7LpfU xfLk9JO9u6uU8e051oVzbqQdp+2TYi3rSVnhiaGr4jPtvwruNCrHflev7KfNtdvqEI zCbVKyPw5RZd40Z/Fkv+kJ3Ru0YlPeBgpvSWmrBRrNGS8lLWI7GMwsHJUrkU2MN+Hz LHg0G5t+7l3lYX+to4DLSfmDRf4bTZV6+8d/OSJCUw7fR93NfuOrXeR9V4CH11kz4d cDPPmAAevmSsHM+eLj2vJJY5UpfMu8T9Bzhvx9juHDRCmqA5v5rfDEBmJbE8f+SqUM eUMoG8W1iuKRg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2 3/3] wifi: ath11k: fix Tx power value during active CAC From: Kalle Valo In-Reply-To: <20230912051857.2284-4-quic_adisi@quicinc.com> References: <20230912051857.2284-4-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: <169634351476.120947.13624704208026863471.kvalo@kernel.org> Date: Tue, 3 Oct 2023 14:31:56 +0000 (UTC) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,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]); Tue, 03 Oct 2023 07:32:07 -0700 (PDT) Aditya Kumar Singh wrote: > Tx power is fetched from firmware's pdev stats. However, during active > CAC, firmware does not fill the current Tx power and sends the max > initialised value filled during firmware init. If host sends this power > to user space, this is wrong since in certain situations, the Tx power > could be greater than the max allowed by the regulatory. Hence, host > should not be fetching the Tx power during an active CAC. > > Fix this issue by returning Tx power as 0 during active CAC since it > is known that during CAC, there will be no transmission happening. The returning as 0 doesn't seem to match the code. Should I change the sentence to: "Fix this issue by returning -EAGAIN error so that the user space knows there's no value available right now." -- https://patchwork.kernel.org/project/linux-wireless/patch/20230912051857.2284-4-quic_adisi@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches