qcacmn: use rssi_comb_ppdu for sniffer rssi

Use rssi_comb_ppdu of TLV WIFIPHYRX_RSSI_LEGACY_E
as RSSI reported in monitor mode on KIWI and HSP.

Change-Id: If9d0e5645c12874af32e43dae596602e446a44b0
CRs-Fixed: 3609169
This commit is contained in:
Jinwei Chen
2023-09-12 05:42:45 -07:00
zatwierdzone przez Rahul Choudhary
rodzic 29b42e6ee2
commit 643e1be5db
9 zmienionych plików z 77 dodań i 4 usunięć

Wyświetl plik

@@ -3197,6 +3197,21 @@ hal_rx_tlv_l3_type_get(hal_soc_handle_t hal_soc_hdl, uint8_t *buf)
HAL_RX_TLV_L3_TYPE_INVALID;
}
/**
* hal_rx_phy_legacy_get_rssi() - API to get RSSI from TLV
* @hal_soc_hdl: HAL soc handle
* @buf: pointer to the start of WIFIPHYRX_RSSI_LEGACY_E TLV
*
* Return: value of RSSI
*/
static inline int8_t
hal_rx_phy_legacy_get_rssi(hal_soc_handle_t hal_soc_hdl, uint8_t *buf)
{
struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
return hal_soc->ops->hal_rx_phy_legacy_get_rssi(buf);
}
/**
* hal_get_tsf_time() - Get tsf time
* @hal_soc_hdl: HAL soc handle