From 3c9687821675174408f6491525a7b821be36e384 Mon Sep 17 00:00:00 2001 From: Ruben Columbus Date: Tue, 25 Feb 2020 09:54:03 -0800 Subject: [PATCH] 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 --- dp/inc/cdp_txrx_extd_struct.h | 1 + dp/wifi3.0/dp_rx_mon_feature.c | 1 + 2 files changed, 2 insertions(+) diff --git a/dp/inc/cdp_txrx_extd_struct.h b/dp/inc/cdp_txrx_extd_struct.h index 43d594531c..31b835af82 100644 --- a/dp/inc/cdp_txrx_extd_struct.h +++ b/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__ diff --git a/dp/wifi3.0/dp_rx_mon_feature.c b/dp/wifi3.0/dp_rx_mon_feature.c index 4a4c66b1c8..b8a096048d 100644 --- a/dp/wifi3.0/dp_rx_mon_feature.c +++ b/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;