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
此提交包含在:
Jinwei Chen
2023-09-12 05:42:45 -07:00
提交者 Rahul Choudhary
父節點 29b42e6ee2
當前提交 643e1be5db
共有 9 個檔案被更改,包括 77 行新增4 行删除

查看文件

@@ -1287,6 +1287,18 @@ static uint8_t hal_rx_get_tlv_kiwi(void *rx_tlv)
return HAL_RX_GET(rx_tlv, PHYRX_RSSI_LEGACY, RECEIVE_BANDWIDTH);
}
/**
* hal_rx_phy_legacy_get_rssi_kiwi() - API to get RSSI from TLV
* WIFIPHYRX_RSSI_LEGACY_E
* @buf: pointer to the start of WIFIPHYRX_RSSI_LEGACY_E TLV
*
* Return: value of RSSI
*/
static int8_t hal_rx_phy_legacy_get_rssi_kiwi(uint8_t *buf)
{
return HAL_RX_GET_64(buf, PHYRX_RSSI_LEGACY, RSSI_COMB_PPDU);
}
/**
* hal_rx_proc_phyrx_other_receive_info_tlv_kiwi()
* - process other receive info TLV
@@ -2212,6 +2224,8 @@ static void hal_hw_txrx_ops_attach_kiwi(struct hal_soc *hal_soc)
hal_rx_msdu_desc_info_ptr_get_kiwi;
hal_soc->ops->hal_ent_mpdu_desc_info = hal_ent_mpdu_desc_info_kiwi;
hal_soc->ops->hal_dst_mpdu_desc_info = hal_dst_mpdu_desc_info_kiwi;
hal_soc->ops->hal_rx_phy_legacy_get_rssi =
hal_rx_phy_legacy_get_rssi_kiwi;
hal_soc->ops->hal_rx_get_fc_valid = hal_rx_get_fc_valid_be;
hal_soc->ops->hal_rx_get_to_ds_flag = hal_rx_get_to_ds_flag_be;
hal_soc->ops->hal_rx_get_mac_addr2_valid =