Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp117667lqe; Tue, 9 Apr 2024 17:07:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpQypN1syP2/Le780DWV/sFRiPf/yazEXSpvG+oEtcN9F9HaIcCYnjDSSTCKKNOc+lbt2WpHnSK79QtBMvSfPyYye+RRgbgw/h3tJymw== X-Google-Smtp-Source: AGHT+IGUrTEIScDoR0japTx6rZG1pUicXL59L9uyt8idTcFVbb/e/YXoEzcZ+lTs5JbcWLG2IBZf X-Received: by 2002:ac2:494b:0:b0:515:9783:938d with SMTP id o11-20020ac2494b000000b005159783938dmr522926lfi.63.1712707657800; Tue, 09 Apr 2024 17:07:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712707657; cv=pass; d=google.com; s=arc-20160816; b=jJYKarkZAEBWN300gdHVy9UxPiVnCcjpwsMW/6nP1z8MUfhBIPe58GbSASxEzH+/sD RRQcsczkqvGrfx2L7uyshyXZiirlLjz1ljYC35ODepn09/BKtYKyGJtIob40MNfEk9FL OkKpBTlKGKIhXrcCrfZR5rrJFXR2KppDN/oEwYVSq/at+vi9fY8aD6xR+5BAVJ28nL7Y lLyQ1inZrFqFYKB9Y9avC5h2R+/wIgDyRow2fcJ/D4s/YVtPJWONNwTAmJjmLpN1LQoK q84tUBp69GQTTzIHczmx/de6JrG4DBbtrKiHftpRPJLQOj2d4l3wkH9xvlN5tQ/D8NM5 t4yQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=EY/V0UTpIc4eSRTb7M2ZDFuG/iwU+cKnFHTgb17wgXE=; fh=XZCJzRqe7g05QLUeSqWq10BDBMTSANYOFTezwmCMgoQ=; b=0Wd1izH2id5M88MWCtWFQYNW+EnWxlidSYaZKEja13icjWW+B0iUFMDICbJsgIec62 172pLAcbEUq+O3mqRuU9hYX4il2MUc0OZjjWQgHB9JeasRNUDn0wG0DfJ0ld85DOdceJ PSP4eIOu7n3hVlz/FWqLLqkMcr9XZ/DnLadRdJq+RAneey4nUtz+zOOFetjLqEN14qhV jc/vpJRUwSNM28wSOTB0Eb3c7YrBwjibyfxityM49GS96xI3HLGefFY4MKuPCHXnaB4Y W3MJA6VFm40BibQv3u2JwIsdH+hxICXNhUhysNpkAl8kGWM9UKDwaq1Im+nYGaH3dTzb m7OA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FuYJVUh7; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-6056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6056-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t17-20020a50ab51000000b0056e0bad0380si5024734edc.11.2024.04.09.17.07.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 17:07:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FuYJVUh7; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-6056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6056-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 83EE01F224CE for ; Wed, 10 Apr 2024 00:07:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3054A170; Wed, 10 Apr 2024 00:07:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="FuYJVUh7" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6769F7F for ; Wed, 10 Apr 2024 00:07:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712707653; cv=none; b=NAPF3x3VZRRF8HGK2PstCs2LbApGI9stYdXAmDLPfXMqe5bVH7ax/mIDc9YLnZpGHz8zEADq3wKylBWY/BZq/TBf/GN1gUlD+hExIlzaqiLM+AqDHCAvvB7+r/0oSPnBJZkaWcHbCdKOrQsVSgbg/lgGdEKfYt1Suvs/KmOGfM4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712707653; c=relaxed/simple; bh=Qf/C200YNIHf3H1owJsTHEZ0pju5m7YRE9+zSVQjDCU=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=s2weDTdNxu58iQkPGwIdDLn3dw7LQBJRBhQY+gbZZ8Ts5GjS6b4SUscH6kEdca1L1aDLqM6BETRcuovbY5qDF3Ogp9hpw6i6PeLMCWuIeQDOFjUHEhBJiqA0NumXM3yI4WRnsNYAdYHSpWZqeJQeCR287IuuqLQ1VtQl76hAqWQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=FuYJVUh7; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43A00OGT015941; Wed, 10 Apr 2024 00:07:24 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=EY/V0UTpIc4eSRTb7M2ZDFuG/iwU+cKnFHTgb17wgXE=; b=Fu YJVUh7MGRuXBZQzjIRuwdj3anltoWEbAjY2oUdf6ivtROkOa7Pp+SHHQgsAZPKn1 e6xyzbbikb48GowlY9LdubIRLRYfBTU9z7azNavdcJlt823/btQaYaJYE5B69Smm 0S9Gi4mRletr08HDuDIOW3XOcRXBPHXDSKhfMjVS99bnO54bOggqwsygub0OpI+Y 7IB1YSmSzJFtQP3eHtF+LP5fF/fH5NKv5DG7cRqwK/OikezmYvtA94nU9TESm1fW ExnYvWdTYhlk/olvFAQnw8gkAWDFAlxecVOvAKO0X/VvKMYCzHBdRa9fFq3aICbc G75hJA58t7oko4mfZzzA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xdaw1ryej-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Apr 2024 00:07:24 +0000 (GMT) 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 43A07MiQ008931 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Apr 2024 00:07:22 GMT Received: from [10.110.37.144] (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.1544.4; Tue, 9 Apr 2024 17:07:21 -0700 Message-ID: <1e515bbc-0119-4114-b44e-d7a449b031f7@quicinc.com> Date: Tue, 9 Apr 2024 17:07:20 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] wifi: ath12k: enable service flag for survey dump stats Content-Language: en-US To: Karthikeyan Kathirvel , CC: , Thiraviyam Mariyappan References: <20240409175604.3299752-1-quic_kathirve@quicinc.com> From: Jeff Johnson In-Reply-To: <20240409175604.3299752-1-quic_kathirve@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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-ORIG-GUID: rgHn3VHK1CzBjWvPj87zvwcd70yboJ7H X-Proofpoint-GUID: rgHn3VHK1CzBjWvPj87zvwcd70yboJ7H X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-09_12,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 spamscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 phishscore=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404090166 On 4/9/2024 10:56 AM, Karthikeyan Kathirvel wrote: > From: Thiraviyam Mariyappan > > The survey dump statistics does not display channel RX and TX time > properly because the survey flag is not enabled in the firmware service > flag. > > If firmware supports enable the service flag "bss_chan_info" in > wmi_resource_config to fetch and print the stats for specific pdev. > > Enabling WMI_RSRC_CFG_FLAG1_BSS_CHANNEL_INFO_64 does not have any impact > on WCN7850 since this bit is not utilized by the WCN7850 firmware. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Thiraviyam Mariyappan > Signed-off-by: Karthikeyan Kathirvel > --- > drivers/net/wireless/ath/ath12k/wmi.c | 3 ++- > drivers/net/wireless/ath/ath12k/wmi.h | 1 + > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/ath/ath12k/wmi.c b/drivers/net/wireless/ath/ath12k/wmi.c > index a5575ce9eed4..16504786735a 100644 > --- a/drivers/net/wireless/ath/ath12k/wmi.c > +++ b/drivers/net/wireless/ath/ath12k/wmi.c > @@ -3324,7 +3324,8 @@ ath12k_wmi_copy_resource_config(struct ath12k_wmi_resource_config_params *wmi_cf > wmi_cfg->bpf_instruction_size = cpu_to_le32(tg_cfg->bpf_instruction_size); > wmi_cfg->max_bssid_rx_filters = cpu_to_le32(tg_cfg->max_bssid_rx_filters); > wmi_cfg->use_pdev_id = cpu_to_le32(tg_cfg->use_pdev_id); > - wmi_cfg->flag1 = cpu_to_le32(tg_cfg->atf_config); > + wmi_cfg->flag1 = cpu_to_le32(tg_cfg->atf_config) | > + WMI_RSRC_CFG_FLAG1_BSS_CHANNEL_INFO_64; shouldn't that | operation be inside the ) ? > wmi_cfg->peer_map_unmap_version = cpu_to_le32(tg_cfg->peer_map_unmap_version); > wmi_cfg->sched_params = cpu_to_le32(tg_cfg->sched_params); > wmi_cfg->twt_ap_pdev_count = cpu_to_le32(tg_cfg->twt_ap_pdev_count); > diff --git a/drivers/net/wireless/ath/ath12k/wmi.h b/drivers/net/wireless/ath/ath12k/wmi.h > index 78afc94a815d..1283d25b5cc4 100644 > --- a/drivers/net/wireless/ath/ath12k/wmi.h > +++ b/drivers/net/wireless/ath/ath12k/wmi.h > @@ -2400,6 +2400,7 @@ struct wmi_init_cmd { > > #define WMI_RSRC_CFG_HOST_SVC_FLAG_REG_CC_EXT_SUPPORT_BIT 4 > #define WMI_RSRC_CFG_FLAGS2_RX_PEER_METADATA_VERSION GENMASK(5, 4) > +#define WMI_RSRC_CFG_FLAG1_BSS_CHANNEL_INFO_64 BIT(5) > > struct ath12k_wmi_resource_config_params { > __le32 tlv_header; > > base-commit: b36766befd306a606f287b0c0f0e53d994516acb