From ff664f8bb951f4c8a373fee4407ca0c18a8a5197 Mon Sep 17 00:00:00 2001 From: Shwetha G K Date: Mon, 12 Oct 2020 13:48:53 +0530 Subject: [PATCH] qcacmn: Populate additional cfr parameters to cfr info Populate agc gain info, CFO and rx_start_ts to cfr info Change-Id: I5f841b25ee55a9ca890012ebddfaa8c57f606add --- dp/inc/cdp_txrx_stats_struct.h | 8 +++++++- dp/wifi3.0/dp_rx_mon_status.c | 14 +++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/dp/inc/cdp_txrx_stats_struct.h b/dp/inc/cdp_txrx_stats_struct.h index 6ff33f0207..a7657ec962 100644 --- a/dp/inc/cdp_txrx_stats_struct.h +++ b/dp/inc/cdp_txrx_stats_struct.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2021 The Linux Foundation. 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 @@ -473,6 +473,12 @@ struct cdp_rx_ppdu_cfr_info { uint8_t chan_capture_status; uint8_t rtt_che_buffer_pointer_high8; uint32_t rtt_che_buffer_pointer_low32; + int16_t rtt_cfo_measurement; + uint32_t agc_gain_info0; + uint32_t agc_gain_info1; + uint32_t agc_gain_info2; + uint32_t agc_gain_info3; + uint32_t rx_start_ts; }; #endif /* diff --git a/dp/wifi3.0/dp_rx_mon_status.c b/dp/wifi3.0/dp_rx_mon_status.c index 3d81c1ee5a..8be1b061a5 100644 --- a/dp/wifi3.0/dp_rx_mon_status.c +++ b/dp/wifi3.0/dp_rx_mon_status.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2021 The Linux Foundation. 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 @@ -1255,6 +1255,18 @@ dp_rx_mon_populate_cfr_info(struct dp_pdev *pdev, = ppdu_info->cfr_info.rtt_che_buffer_pointer_high8; cfr_info->rtt_che_buffer_pointer_low32 = ppdu_info->cfr_info.rtt_che_buffer_pointer_low32; + cfr_info->rtt_cfo_measurement + = (int16_t)ppdu_info->cfr_info.rtt_cfo_measurement; + cfr_info->agc_gain_info0 + = ppdu_info->cfr_info.agc_gain_info0; + cfr_info->agc_gain_info1 + = ppdu_info->cfr_info.agc_gain_info1; + cfr_info->agc_gain_info2 + = ppdu_info->cfr_info.agc_gain_info2; + cfr_info->agc_gain_info3 + = ppdu_info->cfr_info.agc_gain_info3; + cfr_info->rx_start_ts + = ppdu_info->cfr_info.rx_start_ts; } /**