Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4931497pxv; Tue, 20 Jul 2021 14:55:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXKDqX8aLA+CJcOP4KN87paBFOOYK4tGqfe8Y9MiL1lae4ghdkGLn9ti0FaBg2NJSenJ+j X-Received: by 2002:a17:906:498b:: with SMTP id p11mr35753135eju.295.1626818157604; Tue, 20 Jul 2021 14:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626818157; cv=none; d=google.com; s=arc-20160816; b=a/yr33MeU3E3o8zmhFhJYVkO2uWLxgWEqnYl8TinyHrkuOg0VkoGDHcZSueMBympAk vHKTp5SidZUJBd295r+CvcZOf72TPj1bWVn+9hDQrgPz/LfOWAPSTB2+nTJKivnvpXaW EOStz5wZWS+eN04WEc5gxgiZ0hTSiMAnrzRXZaI3KpaQZ5d+NSPr4SSFI7pACuRJ94Y2 Z9WM6Qy2yfDzpr8Ch6Je5WqBtO13JDb7dnJau6tmZMvCJ6O2m67+3ErTrs46e+WnIbiA boB2t+zo+0s+0u2pW8R64lNH9J4yoc6TcBJhkPwDpVaEzD9K8epxRdeT0bjdrOFfa8Jz KGXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:sender:dkim-signature; bh=7EQEc/VP9Lg/IBDN+NJ7ZgpyA0kCuwCmfdbaDNmzUbY=; b=kE/BH+NpvaD9/gFm5vUs2+BTvPnFdpYVtZC/eFev1K+PKSr1zvF2uxc73xGMf9gzBV EYodHFscJsJj79u/MaDJfqcUWgRG8PuIjJkkb86L6Tl7K0PhM+w7mLt0zM4n8XtVJalc eOyRTBpAL+OAIlcQznq9Hj98J9yHnCgybuLmJG0vT/uwAfptvgDaPE6Xm3lCxb2e/hvd p5DoNCLA/rEywODsDQNNoPmJ6KSeQ1cOsWtNsBuYIOk/uc6E8fhZLmAn+3YN8W9Vb15x I2RBQ4EJ8GCmhrjj99/QE5wZeNj1DJeb4cw39VLjW/qPlKUC9bSvuA3nGHSjK1pXqRqQ bpjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=VDLS+i8G; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s23si18678587ejj.684.2021.07.20.14.55.32; Tue, 20 Jul 2021 14:55:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=VDLS+i8G; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232241AbhGTVJl (ORCPT + 99 others); Tue, 20 Jul 2021 17:09:41 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:19833 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233213AbhGTVJL (ORCPT ); Tue, 20 Jul 2021 17:09:11 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1626817789; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=7EQEc/VP9Lg/IBDN+NJ7ZgpyA0kCuwCmfdbaDNmzUbY=; b=VDLS+i8Gx5vlmKbNaFdwQwr2DIpnGa3mOUgzhAUGLOzFuYJr9B6Y7EchpPSZ1PyUjuJmCbxW b2wLCzq1GbfzCVxTUhh46Cfl/Wwx6ma4q0kbfeqPfprF9yMxtHhe7UI1qY6BMsC2fcAdOJHr Nu3598AMKUHsw7l4xmhXlJzeNsc= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-west-2.postgun.com with SMTP id 60f744f0e31d882d188f6d94 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 20 Jul 2021 21:49:36 GMT Sender: jouni=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id C194DC43217; Tue, 20 Jul 2021 21:49:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from jouni.codeaurora.org (85-76-67-217-nat.elisa-mobile.fi [85.76.67.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jouni) by smtp.codeaurora.org (Postfix) with ESMTPSA id BF82DC433D3; Tue, 20 Jul 2021 21:49:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BF82DC433D3 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=jouni@codeaurora.org From: Jouni Malinen To: Kalle Valo Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, Seevalamuthu Mariappan , Ritesh Singh , Jouni Malinen Subject: [PATCH 2/3] ath11k: add support in survey dump with bss_chan_info Date: Wed, 21 Jul 2021 00:49:21 +0300 Message-Id: <20210720214922.118078-2-jouni@codeaurora.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210720214922.118078-1-jouni@codeaurora.org> References: <20210720214922.118078-1-jouni@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Seevalamuthu Mariappan Survey dump statistics is not displaying channel rx and tx time because the service flag is not enabled. Enable the service flag "bss_chan_info" in wmi_resource_config to fetch and print the stats for the specific pdev. Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.1.0.1-01228-QCAHKSWPL_SILICONZ-1 Signed-off-by: Ritesh Singh Signed-off-by: Seevalamuthu Mariappan Signed-off-by: Jouni Malinen --- drivers/net/wireless/ath/ath11k/hw.c | 2 ++ drivers/net/wireless/ath/ath11k/wmi.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/hw.c b/drivers/net/wireless/ath/ath11k/hw.c index d9596903b0a5..9dd02f8b1dd2 100644 --- a/drivers/net/wireless/ath/ath11k/hw.c +++ b/drivers/net/wireless/ath/ath11k/hw.c @@ -97,6 +97,7 @@ static void ath11k_init_wmi_config_qca6390(struct ath11k_base *ab, config->num_multicast_filter_entries = 0x20; config->num_wow_filters = 0x16; config->num_keep_alive_pattern = 0; + config->flag1 |= WMI_RSRC_CFG_FLAG1_BSS_CHANNEL_INFO_64; } static void ath11k_hw_ipq8074_reo_setup(struct ath11k_base *ab) @@ -197,6 +198,7 @@ static void ath11k_init_wmi_config_ipq8074(struct ath11k_base *ab, config->peer_map_unmap_v2_support = 1; config->twt_ap_pdev_count = ab->num_radios; config->twt_ap_sta_count = 1000; + config->flag1 |= WMI_RSRC_CFG_FLAG1_BSS_CHANNEL_INFO_64; } static int ath11k_hw_mac_id_to_pdev_id_ipq8074(struct ath11k_hw_params *hw, diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h index 234aa59f708e..78849f0255fa 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.h +++ b/drivers/net/wireless/ath/ath11k/wmi.h @@ -2244,6 +2244,8 @@ struct wmi_init_cmd { u32 num_host_mem_chunks; } __packed; +#define WMI_RSRC_CFG_FLAG1_BSS_CHANNEL_INFO_64 BIT(5) + struct wmi_resource_config { u32 tlv_header; u32 num_vdevs; -- 2.25.1