From 68c9a549cb4ecf79081dfe9a227b6481827e263d Mon Sep 17 00:00:00 2001 From: Mohit Khanna Date: Tue, 20 Feb 2018 17:26:34 -0800 Subject: [PATCH] qcacmn: Fix RSSI info in radiotap header Currently, RSSI in radiotap header is being sourced from RX_MSDU_START TLV. RSSI information is missing in the TLV. Source RSSI from PHYRX_RSSI_LEGACY TLV (rssi_comb). Change-Id: I8030d970ff300a957e5215157e5f6a3599e4b430 CRs-Fixed: 2190210 --- qdf/linux/src/qdf_nbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qdf/linux/src/qdf_nbuf.c b/qdf/linux/src/qdf_nbuf.c index 844863aa88da..dd98416254b3 100644 --- a/qdf/linux/src/qdf_nbuf.c +++ b/qdf/linux/src/qdf_nbuf.c @@ -3665,7 +3665,7 @@ unsigned int qdf_nbuf_update_radiotap(struct mon_rx_status *rx_status, * rssi_comb is int dB, need to convert it to dBm. * normalize value to noise floor of -96 dBm */ - rtap_buf[rtap_len] = rx_status->ant_signal_db + + rtap_buf[rtap_len] = rx_status->rssi_comb + NORMALIZED_TO_NOISE_FLOOR; rtap_len += 1;