Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2379259rdb; Tue, 3 Oct 2023 21:52:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF89s6Fl8Q//SMZ/0xW1RF5aFPGe0UDaD8D4OWx3OZkXlR6Hn39qoLmJOZbTloGBOa79p06 X-Received: by 2002:a05:6a20:3d95:b0:159:b7dc:2295 with SMTP id s21-20020a056a203d9500b00159b7dc2295mr1395382pzi.9.1696395161594; Tue, 03 Oct 2023 21:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696395161; cv=none; d=google.com; s=arc-20160816; b=cDFpnBJO2oN3Zq0TfPKk/pcIF0e1psmAdBY5aGAe3ydLA8ss5+Ri4COfUXhiDnaKwq Lb5FlWzSpLPR66qRoOkX3ekn10kK/kVtALD2vvt4nMPCrY0SBWTuVv/bkFQjVa7btvh0 r8SiqY4M4vTar/8qqTCboAg6pPI9aAHRtBDNAwdOuuVgADXwAfP73d9+PN0oE+RmBD+x 6m6AhDFDWPKopVviJhH0sEV2K/ziVYs3Yk4plqYvV4irZ1hsPAIctdAb55ceUp+nraEz OVeAiU65EnIprCz9Hj2s46455JXpB58IjkXS8JK+7pdyx+QbkBmEXBji6iJ3wTPQqHHN cG2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=r8P89J7voggVa2LMmGxINcfvsxWaZaC4SRM+wD+YA4s=; fh=J/6lKjMBe46qSL9EQevfbTBP992w7SxtrKeS/6meeFw=; b=UMSYWiAmcSTd54lBKnAghonq0QhfBtk6CCt1a8fdJdKxBOuNu51e73SdapCPcq1uew MdZddT1cCNwRgug/oUcNonYtwosB5aX1QK057bUiHfD4Mzg1VdhQFec1tG4h50qJX28Z N667wwMDn/8PBBq5CPF+ProOTsayGQZ4VeQ21BcZAZhgAixKornwYawVvNVHhlkuF47i XRNab4LvJRt940PF6qA8J4sQAHnUpfyrXDKtSN9V9xfuQQ68A1kGoKLcjDaCzLOHoASZ Po7lgQOunZYhRmq0Sq2ajixoFkbrlpMX8QMd/tar1IPUEELOJNGV/Mw0qtbQHu7O+8tf YTxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u+4VIXQH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ce11-20020a056a002a0b00b0068fba252466si537841pfb.169.2023.10.03.21.52.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 21:52:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u+4VIXQH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 0AAC18083B1B; Tue, 3 Oct 2023 21:52:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239529AbjJDEwj (ORCPT + 53 others); Wed, 4 Oct 2023 00:52:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231154AbjJDEwi (ORCPT ); Wed, 4 Oct 2023 00:52:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30344A6 for ; Tue, 3 Oct 2023 21:52:34 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D18B3C433C7; Wed, 4 Oct 2023 04:52:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696395153; bh=bmz9UQhUwxneKugEZjPBwy3A+0A9FRso7QR2GGJWT34=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=u+4VIXQHAjhDgrmsxDUZAC8NpIOSySZndTIVjHZxB+n8xlxuAX6H1b/Kd9EMMhO13 9/W2KHBFAn3R84aARvh8lGR+UVtwwpUqwigkSeiBxT3Kp6ivtUlX0pHijSmV1VvBSq sIv5YeQPkYZ4UfbK5q/govht4htnLTlehaHroTHWJH5zHqrp5D9zvu29NggwISK/Rs Pa2BSe9UHHIOicinkEEtkp8qpXKDO2EUt3JnrF+9dVx4XjIj3Y1YH/lWxLnmiQ3N1E Y0mrx97VDB5OCNpDsua2NgmFU9MbXLHA9/UlkknYWzEdCB+mzozflM80dDJqmjtJqi alNkc4J2u6t8w== From: Kalle Valo To: Aditya Kumar Singh Cc: , Subject: Re: [PATCH v2 3/3] wifi: ath11k: fix Tx power value during active CAC References: <20230912051857.2284-4-quic_adisi@quicinc.com> <169634351476.120947.13624704208026863471.kvalo@kernel.org> <735c1318-2a6d-4247-8220-868f63f08578@quicinc.com> Date: Wed, 04 Oct 2023 07:54:49 +0300 In-Reply-To: <735c1318-2a6d-4247-8220-868f63f08578@quicinc.com> (Aditya Kumar Singh's message of "Wed, 4 Oct 2023 07:39:44 +0530") Message-ID: <874jj7htra.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Tue, 03 Oct 2023 21:52:38 -0700 (PDT) Aditya Kumar Singh writes: > On 10/3/23 20:01, Kalle Valo wrote: >> 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." > Oops. Looks like only in commit message its still zero. Its changed to > return -EAGAIN in code. > > + if (test_bit(ATH11K_CAC_RUNNING, &ar->dev_flags)) { > + mutex_unlock(&ar->conf_mutex); > + return -EAGAIN; > + } > > So could you just rectify while applying or should I resend? No need to resend because of this. I changed the commit message now to this in the pending branch: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=6eacc3b5a70ab3f92f9410839870edbb21c9d051 -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches