qcacmn: Enable PN check for 2K-jump and OOR frames
Currently the EAPOL/ARP/DHCP frames arriving as 2K-jump or out-of-order frmaes are being delivered to the network stack, without checking for the packet-number sequence. WCN7850 has hardware support to provide the packet number of the previous successful re-ordered packet from hardware. Use this feature to check if the packet-number are in proper sequence for these EAPOL/ARP/DHCP packets arriving as 2k-jump or out-of-order packets before submitting it to the network stack. Change-Id: I1078452afce4bc00b2509436295e5bd80000feb4 CRs-Fixed: 2965086
This commit is contained in:

committed by
Madan Koyyalamudi

父節點
e4c918b6ca
當前提交
5d44eac10a
@@ -2773,6 +2773,25 @@ static inline void hal_reo_set_err_dst_remap(hal_soc_handle_t hal_soc_hdl)
|
||||
hal_soc->ops->hal_reo_set_err_dst_remap(hal_soc);
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_reo_enable_pn_in_dest() - Subscribe for previous PN for 2k-jump or
|
||||
* OOR error frames
|
||||
* @hal_soc_hdl: Opaque HAL soc handle
|
||||
*
|
||||
* Return: true if feature is enabled,
|
||||
* false, otherwise.
|
||||
*/
|
||||
static inline uint8_t
|
||||
hal_reo_enable_pn_in_dest(hal_soc_handle_t hal_soc_hdl)
|
||||
{
|
||||
struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
|
||||
|
||||
if (hal_soc->ops->hal_reo_enable_pn_in_dest)
|
||||
return hal_soc->ops->hal_reo_enable_pn_in_dest(hal_soc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef GENERIC_SHADOW_REGISTER_ACCESS_ENABLE
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user