From 8722ec5b688053124d58b3894e651f3dcf8b9b20 Mon Sep 17 00:00:00 2001 From: Harsh Kumar Bijlani Date: Mon, 6 Dec 2021 20:25:24 +0530 Subject: [PATCH] qcacmn: Add support to set enhanced stats in pdev Add support to set enhanced stats in pdev via cdp pdev set param functionality. Change-Id: I4c271dfc71511a0869a795c2adbb0e0eb55ba9d0 CRs-Fixed: 3108103 --- dp/inc/cdp_txrx_cmn_struct.h | 4 +++- dp/wifi3.0/dp_main.c | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dp/inc/cdp_txrx_cmn_struct.h b/dp/inc/cdp_txrx_cmn_struct.h index b67dcbff31..33cc986f70 100644 --- a/dp/inc/cdp_txrx_cmn_struct.h +++ b/dp/inc/cdp_txrx_cmn_struct.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2011-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -1210,6 +1210,7 @@ enum cdp_pdev_param_type { CDP_SET_ATF_STATS_ENABLE, CDP_CONFIG_SPECIAL_VAP, CDP_RESET_SCAN_SPCL_VAP_STATS_ENABLE, + CDP_CONFIG_ENHANCED_STATS_ENABLE, }; /* @@ -1348,6 +1349,7 @@ typedef union cdp_config_param_t { bool cdp_pdev_param_atf_stats_enable; bool cdp_pdev_param_config_special_vap; bool cdp_pdev_param_reset_scan_spcl_vap_stats_enable; + bool cdp_pdev_param_enhanced_stats_enable; /* psoc params */ bool cdp_psoc_param_en_rate_stats; diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index f0ab60c688..83f2721741 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -9397,6 +9397,9 @@ static QDF_STATUS dp_set_pdev_param(struct cdp_soc_t *cdp_soc, uint8_t pdev_id, dp_monitor_pdev_reset_scan_spcl_vap_stats_enable(pdev, val.cdp_pdev_param_reset_scan_spcl_vap_stats_enable); break; + case CDP_CONFIG_ENHANCED_STATS_ENABLE: + pdev->enhanced_stats_en = val.cdp_pdev_param_enhanced_stats_enable; + break; default: return QDF_STATUS_E_INVAL; }