qcacld-3.0: Populate correct RSSI value for Monitor packets
In Monitor Mode, RSSI is always -96 for packets in TCPDUMP. Populate the correct RSSI value in Monitor Mode. Change-Id: Iba9fe7091043d27828f4742058ed3d389cde7e26 CRs-Fixed: 2568129
This commit is contained in:
@@ -489,6 +489,8 @@ static void htt_rx_mon_get_rx_status(htt_pdev_handle pdev,
|
||||
|
||||
rx_status->chan_flags = channel_flags;
|
||||
rx_status->ant_signal_db = rx_desc->ppdu_start.rssi_comb;
|
||||
rx_status->rssi_comb = rx_desc->ppdu_start.rssi_comb;
|
||||
rx_status->chan_noise_floor = pdev->txrx_pdev->chan_noise_floor;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -24,6 +24,8 @@
|
||||
|
||||
#define OL_TXRX_PDEV_ID 0
|
||||
|
||||
#define NORMALIZED_TO_NOISE_FLOOR (-96)
|
||||
|
||||
/**
|
||||
* ol_txrx_pdev_handle - opaque handle for txrx physical device
|
||||
* object
|
||||
|
@@ -834,6 +834,9 @@ ol_txrx_pdev_attach(ol_txrx_soc_handle soc,
|
||||
pdev->peer_id_unmap_ref_cnt =
|
||||
TXRX_RFS_DISABLE_PEER_ID_UNMAP_COUNT;
|
||||
|
||||
if (cds_get_conparam() == QDF_GLOBAL_MONITOR_MODE)
|
||||
pdev->chan_noise_floor = NORMALIZED_TO_NOISE_FLOOR;
|
||||
|
||||
ol_txrx_debugfs_init(pdev);
|
||||
|
||||
return (struct cdp_pdev *)pdev;
|
||||
|
@@ -1106,6 +1106,9 @@ struct ol_txrx_pdev_t {
|
||||
bool enable_tx_compl_tsf64;
|
||||
uint64_t last_host_time;
|
||||
uint64_t last_tsf64_time;
|
||||
|
||||
/* Current noise-floor reading for the pdev channel */
|
||||
int16_t chan_noise_floor;
|
||||
};
|
||||
|
||||
#define OL_TX_HL_DEL_ACK_HASH_SIZE 256
|
||||
|
Reference in New Issue
Block a user