qcacmn: Add hal_rx_msdu_end_da_is_mcbc_get API

Implement hal_rx_msdu_end_da_is_mcbc_get based
on the chipset as the macro to retrieve
mcbc value is chipset dependent.

Change-Id: I860d259515c31345501080577d7a34beb97e5f60
CRs-Fixed: 2522133
这个提交包含在:
Venkata Sharath Chandra Manchala
2019-09-20 10:52:37 -07:00
提交者 nshrivas
父节点 d1b7e4c326
当前提交 ee90938f62
修改 15 个文件,包含 153 行新增27 行删除

查看文件

@@ -131,6 +131,23 @@ uint8_t hal_rx_get_rx_fragment_number_9000(uint8_t *buf)
return (HAL_RX_MPDU_GET_SEQUENCE_NUMBER(rx_mpdu_info) &
DOT11_SEQ_FRAG_MASK);
}
/**
* hal_rx_msdu_end_da_is_mcbc_get_9000(): API to check if pkt is MCBC
* from rx_msdu_end TLV
*
* @ buf: pointer to the start of RX PKT TLV headers
* Return: da_is_mcbc
*/
static uint8_t
hal_rx_msdu_end_da_is_mcbc_get_9000(uint8_t *buf)
{
struct rx_pkt_tlvs *pkt_tlvs = (struct rx_pkt_tlvs *)buf;
struct rx_msdu_end *msdu_end = &pkt_tlvs->msdu_end_tlv.rx_msdu_end;
return HAL_RX_MSDU_END_DA_IS_MCBC_GET(msdu_end);
}
struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
/* init and setup */
@@ -174,6 +191,7 @@ struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
hal_tx_update_pcp_tid_generic,
hal_tx_update_tidmap_prty_generic,
hal_rx_get_rx_fragment_number_9000,
hal_rx_msdu_end_da_is_mcbc_get_9000,
};
struct hal_hw_srng_config hw_srng_table_9000[] = {
@@ -631,4 +649,3 @@ void hal_qcn9000_attach(struct hal_soc *hal_soc)
hal_soc->hal_hw_reg_offset = hal_hw_reg_offset_qcn9000;
hal_soc->ops = &qcn9000_hal_hw_txrx_ops;
}