qcacmn: Fix HAL_RX_MSDU_END_DA_IDX_GET macro compilation failure
Move HAL_RX_MSDU_END_DA_IDX_GET macros to chip specific header file. Fixing compilation failure for 6490 and 6750. hal_rx_msdu_packet_metadata_get_generic need not be chip specific, macros defining the function are already chip specific. Change-Id: I940a289662bdeddfbf99fae2a80d7796334832e7 CRs-Fixed: 2595314
This commit is contained in:
@@ -453,12 +453,6 @@ uint32_t hal_rx_msdu_start_reception_type_get_6750(uint8_t *buf)
|
||||
return reception_type;
|
||||
}
|
||||
|
||||
#define HAL_RX_MSDU_END_DA_IDX_GET(_rx_msdu_end) \
|
||||
(_HAL_MS((*_OFFSET_TO_WORD_PTR(_rx_msdu_end, \
|
||||
RX_MSDU_END_11_DA_IDX_OR_SW_PEER_ID_OFFSET)), \
|
||||
RX_MSDU_END_11_DA_IDX_OR_SW_PEER_ID_MASK, \
|
||||
RX_MSDU_END_11_DA_IDX_OR_SW_PEER_ID_LSB))
|
||||
|
||||
/**
|
||||
* hal_rx_msdu_end_da_idx_get_6750: API to get da_idx
|
||||
* from rx_msdu_end TLV
|
||||
@@ -1284,30 +1278,6 @@ uint16_t hal_rx_get_rx_sequence_6750(uint8_t *buf)
|
||||
return HAL_RX_MPDU_GET_SEQUENCE_NUMBER(rx_mpdu_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_msdu_packet_metadata_get_6750(): API to get the
|
||||
* msdu information from rx_msdu_end TLV
|
||||
*
|
||||
* @ buf: pointer to the start of RX PKT TLV headers
|
||||
* @ hal_rx_msdu_metadata: pointer to the msdu info structure
|
||||
*/
|
||||
static void
|
||||
hal_rx_msdu_packet_metadata_get_6750(uint8_t *buf,
|
||||
void *msdu_pkt_metadata)
|
||||
{
|
||||
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;
|
||||
struct hal_rx_msdu_metadata *msdu_metadata =
|
||||
(struct hal_rx_msdu_metadata *)msdu_pkt_metadata;
|
||||
|
||||
msdu_metadata->l3_hdr_pad =
|
||||
HAL_RX_MSDU_END_L3_HEADER_PADDING_GET(msdu_end);
|
||||
msdu_metadata->sa_idx = HAL_RX_MSDU_END_SA_IDX_GET(msdu_end);
|
||||
msdu_metadata->da_idx = HAL_RX_MSDU_END_DA_IDX_GET(msdu_end);
|
||||
msdu_metadata->sa_sw_peer_id =
|
||||
HAL_RX_MSDU_END_SA_SW_PEER_ID_GET(msdu_end);
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_get_window_address_6750(): Function to get hp/tp address
|
||||
* @hal_soc: Pointer to hal_soc
|
||||
@@ -1412,7 +1382,7 @@ struct hal_hw_txrx_ops qca6750_hal_hw_txrx_ops = {
|
||||
NULL,
|
||||
NULL,
|
||||
/* rx - msdu end fast path info fields */
|
||||
hal_rx_msdu_packet_metadata_get_6750,
|
||||
hal_rx_msdu_packet_metadata_get_generic,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_6750[] = {
|
||||
|
Reference in New Issue
Block a user