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
此提交包含在:
@@ -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 =
|
||||
|
新增問題並參考
封鎖使用者