Selaa lähdekoodia

qcacmn: Populate additional cfr parameters to cfr info

Populate agc gain info, CFO and rx_start_ts to cfr info

Change-Id: I5f841b25ee55a9ca890012ebddfaa8c57f606add
Shwetha G K 4 vuotta sitten
vanhempi
sitoutus
ff664f8bb9
2 muutettua tiedostoa jossa 20 lisäystä ja 2 poistoa
  1. 7 1
      dp/inc/cdp_txrx_stats_struct.h
  2. 13 1
      dp/wifi3.0/dp_rx_mon_status.c

+ 7 - 1
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
 /*

+ 13 - 1
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;
 }
 
 /**