qcacmn: Add hal_rx_mpdu_start_mpdu_qos_control_valid_get API

Implement hal_rx_mpdu_start_mpdu_qos_control_valid
API based on the chipset as
the macro to retrieve mpdu_qos_control value is
chipset dependent.

Change-Id: I61449ff5afc958f1a1f93013b0c5ab56d38cc833
CRs-Fixed: 2522133
Šī revīzija ir iekļauta:
Venkata Sharath Chandra Manchala
2019-09-21 18:17:21 -07:00
revīziju iesūtīja nshrivas
vecāks 25d7dbc589
revīzija 56022cb6e1
13 mainīti faili ar 158 papildinājumiem un 23 dzēšanām

Parādīt failu

@@ -708,6 +708,25 @@ static void hal_reo_status_get_header_9000(uint32_t *d, int b, void *h1)
h->tstamp =
HAL_GET_FIELD(UNIFORM_REO_STATUS_HEADER_1, TIMESTAMP, val1);
}
/**
* hal_rx_mpdu_start_mpdu_qos_control_valid_get_9000():
* Retrieve qos control valid bit from the tlv.
* @buf: pointer to rx pkt TLV.
*
* Return: qos control value.
*/
static inline uint32_t
hal_rx_mpdu_start_mpdu_qos_control_valid_get_9000(uint8_t *buf)
{
struct rx_pkt_tlvs *pkt_tlvs = (struct rx_pkt_tlvs *)buf;
struct rx_mpdu_start *mpdu_start =
&pkt_tlvs->mpdu_start_tlv.rx_mpdu_start;
return HAL_RX_MPDU_INFO_QOS_CONTROL_VALID_GET(
&mpdu_start->rx_mpdu_info_details);
}
struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
/* init and setup */
@@ -774,6 +793,7 @@ struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
hal_rx_is_unicast_9000,
hal_rx_tid_get_9000,
hal_rx_hw_desc_get_ppduid_get_9000,
hal_rx_mpdu_start_mpdu_qos_control_valid_9000,
};
struct hal_hw_srng_config hw_srng_table_9000[] = {