Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2379808rdb; Tue, 3 Oct 2023 21:54:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZ8QO1eQiuqY6Pbakxoa3ETqJBcwG/3BYczaHzDSukDF53ofgCdOWqYQWc9HTtPBvfYkz0 X-Received: by 2002:a05:620a:24c1:b0:76d:aa93:2e3c with SMTP id m1-20020a05620a24c100b0076daa932e3cmr1538126qkn.24.1696395291023; Tue, 03 Oct 2023 21:54:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696395290; cv=none; d=google.com; s=arc-20160816; b=pwEGUcfyPKJBLaA/i5XNdA8/iLcdrpstwbGZ7uqq5l3OFkDY/cQD9HRl+PS3QN9B6W bqYuukPnKBMPI2B5NqgmKtJ+F6W0lh/oHjzl9kVPirl2vg7CrqJDUpj7CXqU2XpGdZVI AMsfHSmeXD7uV6bpudq1/nK6Cp4kiq1xDYv6RilTPBJjdYnIbVY4Pd9KW6SAbsy5983N lMJMjUrPDGchL+YqkagtqAU3xjDW8xX3J6gVTKpdlmvb1ZPWcp2qhV8WjWfPA5roQcHl xd70UXidHLib8W3sVovFLevIDquqDxEErODqAChxTTN6ZQQ/7pNOjnn2tzCUIGHcft7T 2+CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ZPqbzXIl4xTWgNxkEKbxAdrA9rAJWyjfgYQNamBvFFY=; fh=6DnJkpZ20m4M76FrsHljwRhmJPmIeMSitrV6zyWsxns=; b=ZvCAZspZZhZJo0dk76E2soLEGmycKfOyMgLZXaVjnpvnD343U75zWXJy2CJQlEH214 JrcGWZlxdohY1QcPxzJaNxu+yOU7sfG0AnZ2/getcmOhrTUisqW8cS/CBnz1H9GWjcS1 wyq0bLvLBuKV8oeTRcctmv7aVGTtY/5aXCfL3o5mvtDjB1+arpvgsxmtwFJ7mGSmJn3z Ek8GUX9t8pbS3CzgcShR+i2ZRtPvgWKBCNCG8D9rRjubWSWB8w3NcTC2toxugelP5ZHC k/kDlds5VIGjTUYjb1J4uGFf8fiXviA5+SF6MXJr9ZyM0XNFL99d2gQqNa3iWn2bLBGL gGmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ooacta7k; 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=quicinc.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id y26-20020a056a001c9a00b0068e42950c86si3002379pfw.44.2023.10.03.21.54.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 21:54:50 -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=@quicinc.com header.s=qcppdkim1 header.b=Ooacta7k; 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=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 6829A807FCC5; Tue, 3 Oct 2023 21:54:48 -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 S240800AbjJDEyo (ORCPT + 53 others); Wed, 4 Oct 2023 00:54:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231154AbjJDEyo (ORCPT ); Wed, 4 Oct 2023 00:54:44 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9855A6 for ; Tue, 3 Oct 2023 21:54:40 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3944hLf2009576; Wed, 4 Oct 2023 04:54:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=ZPqbzXIl4xTWgNxkEKbxAdrA9rAJWyjfgYQNamBvFFY=; b=Ooacta7kZLSDQXznuDmyzm8X+cgPbqWW5pbr0eyhRozJelSunPz6rOGLCJQj5+Lg6nDy rmnKwt9h1SSdRaxPvxRjn2LhC9XQwIaQI1MC5kCkMlB/5Lq0BtTa7STkAALQSLUetySL X/n70zXN+/YuSy25li34rMcRZfB1v5OJC6YcLmzZMBEfjtiLGpgK4q8LBAV1rCh8NjyG a4vANHgxIGZCXeZeCc+anjtinfruHcXQ9ZdMvQ7AXUzZmGHmXJAnu6fqpQScEJ5DbkDK x3tdAoDo8/I6dEr24RLha31uHTFwBggteMP+qC0RaNMTjozsPrM61+gwtx7Wc8jQIppD Wg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3th18jg0j1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Oct 2023 04:54:34 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3944sXfH000647 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 4 Oct 2023 04:54:33 GMT Received: from [10.201.207.136] (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; Tue, 3 Oct 2023 21:54:32 -0700 Message-ID: Date: Wed, 4 Oct 2023 10:24:28 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/3] wifi: ath11k: fix Tx power value during active CAC Content-Language: en-US To: Kalle Valo CC: , References: <20230912051857.2284-4-quic_adisi@quicinc.com> <169634351476.120947.13624704208026863471.kvalo@kernel.org> <735c1318-2a6d-4247-8220-868f63f08578@quicinc.com> <874jj7htra.fsf@kernel.org> From: Aditya Kumar Singh In-Reply-To: <874jj7htra.fsf@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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: 78ByI1OYCpqJVAnGrilm5yVh4asqZXIs X-Proofpoint-ORIG-GUID: 78ByI1OYCpqJVAnGrilm5yVh4asqZXIs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-04_01,2023-10-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxlogscore=762 bulkscore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 mlxscore=0 adultscore=0 malwarescore=0 suspectscore=0 clxscore=1015 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310040034 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,URIBL_BLOCKED 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:54:48 -0700 (PDT) On 10/4/23 10:24, Kalle Valo wrote: > 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=6eacc3b5a70ab3f92f9410839870edbb21c9d051Sure, thanks!