Browse Source

qca-wifi: adding chan frequency to rx mpdu info

previously frequency was acquired by channel only.
adding chan frequency as a new param for the structure rx mpdu info
is now used to hold the frquency value from tlv in rx path.

Change-Id: Iba70af9de82dcd0c9c3b074eb857b6c9433f6767
Ruben Columbus 5 years ago
parent
commit
3c96878216
2 changed files with 2 additions and 0 deletions
  1. 1 0
      dp/inc/cdp_txrx_extd_struct.h
  2. 1 0
      dp/wifi3.0/dp_rx_mon_feature.c

+ 1 - 0
dp/inc/cdp_txrx_extd_struct.h

@@ -85,6 +85,7 @@ struct cdp_rx_indication_mpdu_info {
 	uint32_t length;
 	uint8_t per_chain_rssi[CDP_MAX_RX_CHAINS];
 	uint8_t channel;
+	qdf_freq_t chan_freq;
 };
 
 #ifdef __KERNEL__

+ 1 - 0
dp/wifi3.0/dp_rx_mon_feature.c

@@ -81,6 +81,7 @@ dp_rx_populate_cdp_indication_mpdu_info(
 
 	cdp_mpdu_info->ppdu_id = ppdu_info->com_info.ppdu_id;
 	cdp_mpdu_info->channel = ppdu_info->rx_status.chan_num;
+	cdp_mpdu_info->chan_freq = ppdu_info->rx_status.chan_freq;
 	cdp_mpdu_info->duration = ppdu_info->rx_status.duration;
 	cdp_mpdu_info->timestamp = ppdu_info->rx_status.tsft;
 	cdp_mpdu_info->bw = ppdu_info->rx_status.bw;