summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVisweswara Tanuku <vtanuku@codeaurora.org>2018-02-28 16:38:29 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-03-01 22:10:37 -0800
commit9a2dfee95b2916cbfddbf3e818cdafabab979d9b (patch)
tree49d09cabfcbb3046b1554377d81b355ec45b5f6d
parentf4c34d7d184f04965e5fa9a4417653dae186e8ce (diff)
qcacld-2.0: Monitor mode - Populate Ch info in Radiotap Header
In LL Monitor mode path obtain Channel information from rx indication message and update the radiotap header channel information field Change-Id: I982080687d70f20fdb9e3ee5863995e1c5411f7a CRs-Fixed: 2180948
-rw-r--r--CORE/CLD_TXRX/HTT/htt_rx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/CORE/CLD_TXRX/HTT/htt_rx.c b/CORE/CLD_TXRX/HTT/htt_rx.c
index 53c82ad2fa82..a34d5df0e8d6 100644
--- a/CORE/CLD_TXRX/HTT/htt_rx.c
+++ b/CORE/CLD_TXRX/HTT/htt_rx.c
@@ -1646,14 +1646,18 @@ htt_rx_mon_amsdu_rx_in_order_pop_ll(htt_pdev_handle pdev, adf_nbuf_t rx_ind_msg,
uint32_t msdu_count = 0;
struct htt_host_rx_desc_base *rx_desc;
struct mon_rx_status rx_status = {0};
+ struct htt_rx_in_ord_paddr_ind_hdr_t *host_msg_hdr;
uint32_t amsdu_len;
uint32_t len;
uint32_t last_frag;
+ uint32_t ch_freq;
HTT_ASSERT1(htt_rx_in_order_ring_elems(pdev) != 0);
rx_ind_data = adf_nbuf_data(rx_ind_msg);
msg_word = (uint32_t *)rx_ind_data;
+ host_msg_hdr = (struct htt_rx_in_ord_paddr_ind_hdr_t *)rx_ind_data;
+ ch_freq = vos_chan_to_freq(host_msg_hdr->reserved_1);
HTT_PKT_DUMP(vos_trace_hex_dump(VOS_MODULE_ID_TXRX,
VOS_TRACE_LEVEL_FATAL,
@@ -1695,6 +1699,7 @@ htt_rx_mon_amsdu_rx_in_order_pop_ll(htt_pdev_handle pdev, adf_nbuf_t rx_ind_msg,
* Make the netbuf's data pointer point to the payload rather
* than the descriptor.
*/
+ rx_status.chan = (uint16_t)ch_freq;
htt_get_radiotap_rx_status(rx_desc, &rx_status);
/*
* 250 bytes of RX_STD_DESC size should be sufficient for