qcacmn: Add hal_rx_encryption_info_valid API
Implement hal_rx_encryption_info API based on the chipset as the macro to retrieve sa_idx value is chipset dependent. Change-Id: I0c48800dfa5628898c53f7a9271e517b6bfa3da7 CRs-Fixed: 2522133
这个提交包含在:

提交者
nshrivas

父节点
f05b2ae5c2
当前提交
c1a4c8b4fc
@@ -219,6 +219,23 @@ static uint32_t hal_rx_msdu_end_l3_hdr_padding_get_9000(uint8_t *buf)
|
||||
return l3_header_padding;
|
||||
}
|
||||
|
||||
/**
|
||||
* @ hal_rx_encryption_info_valid_9000: Returns encryption type.
|
||||
*
|
||||
* @ buf: rx_tlv_hdr of the received packet
|
||||
* @ Return: encryption type
|
||||
*/
|
||||
inline uint32_t hal_rx_encryption_info_valid_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;
|
||||
struct rx_mpdu_info *mpdu_info = &mpdu_start->rx_mpdu_info_details;
|
||||
uint32_t encryption_info = HAL_RX_MPDU_ENCRYPTION_INFO_VALID(mpdu_info);
|
||||
|
||||
return encryption_info;
|
||||
}
|
||||
|
||||
struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
|
||||
|
||||
/* init and setup */
|
||||
@@ -267,6 +284,7 @@ struct hal_hw_txrx_ops qcn9000_hal_hw_txrx_ops = {
|
||||
hal_rx_msdu_end_sa_idx_get_9000,
|
||||
hal_rx_desc_is_first_msdu_9000,
|
||||
hal_rx_msdu_end_l3_hdr_padding_get_9000,
|
||||
hal_rx_encryption_info_valid_9000,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_9000[] = {
|
||||
|
在新工单中引用
屏蔽一个用户