qcacmn: Deliver EAP frames to stack from REO exception path
Revert "qcacmn: drop duplicated EAP frames from REO exception path", allow all EAP frame delivering to stack including retried ones. Change-Id: I73733841c1feb21d5b5fd160856a8fe9c21168fc CRs-Fixed: 2959701
This commit is contained in:

committed by
Madan Koyyalamudi

父節點
78124d2ec7
當前提交
12a999bc58
@@ -466,10 +466,8 @@ dp_rx_pn_error_handle(struct dp_soc *soc, hal_ring_desc_t ring_desc,
|
||||
*
|
||||
* @soc: core txrx main context
|
||||
* @nbuf: pointer to msdu skb
|
||||
* @rx_tlv_hdr: start of rx tlv header
|
||||
* @mpdu_desc_info: pointer to mpdu level description info
|
||||
* @peer_id: dp peer ID
|
||||
* @tid: dp tid
|
||||
* @rx_tlv_hdr: start of rx tlv header
|
||||
*
|
||||
* This function process the msdu delivered from REO2TCL
|
||||
* ring with error type OOR
|
||||
@@ -479,34 +477,19 @@ dp_rx_pn_error_handle(struct dp_soc *soc, hal_ring_desc_t ring_desc,
|
||||
static void
|
||||
dp_rx_oor_handle(struct dp_soc *soc,
|
||||
qdf_nbuf_t nbuf,
|
||||
uint8_t *rx_tlv_hdr,
|
||||
struct hal_rx_mpdu_desc_info *mpdu_desc_info,
|
||||
uint16_t peer_id,
|
||||
uint8_t tid)
|
||||
uint8_t *rx_tlv_hdr)
|
||||
{
|
||||
uint32_t frame_mask = FRAME_MASK_IPV4_ARP | FRAME_MASK_IPV4_DHCP |
|
||||
FRAME_MASK_IPV4_EAPOL | FRAME_MASK_IPV6_DHCP;
|
||||
struct dp_peer *peer = NULL;
|
||||
|
||||
peer = dp_peer_get_ref_by_id(soc, peer_id, DP_MOD_ID_RX_ERR);
|
||||
if (!peer || tid >= DP_MAX_TIDS) {
|
||||
dp_info_rl("peer or tid %d not valid", tid);
|
||||
if (!peer) {
|
||||
dp_info_rl("peer not found");
|
||||
goto free_nbuf;
|
||||
}
|
||||
|
||||
/*
|
||||
* For REO error 7 OOR, if it is retry frame under BA session,
|
||||
* then it is likely SN duplicated frame, do not deliver EAPOL
|
||||
* to stack in this case since the connection might fail due to
|
||||
* duplicated EAP response.
|
||||
*/
|
||||
if (mpdu_desc_info &&
|
||||
mpdu_desc_info->mpdu_flags & HAL_MPDU_F_RETRY_BIT &&
|
||||
peer->rx_tid[tid].ba_status == DP_RX_BA_ACTIVE) {
|
||||
frame_mask &= ~FRAME_MASK_IPV4_EAPOL;
|
||||
DP_STATS_INC(soc, rx.err.reo_err_oor_eapol_drop, 1);
|
||||
}
|
||||
|
||||
if (dp_rx_deliver_special_frame(soc, peer, nbuf, frame_mask,
|
||||
rx_tlv_hdr)) {
|
||||
DP_STATS_INC(soc, rx.err.reo_err_oor_to_stack, 1);
|
||||
@@ -627,24 +610,24 @@ more_msdu_link_desc:
|
||||
DP_STATS_INC(soc, rx.err.reo_err_oor_sg_count, 1);
|
||||
}
|
||||
|
||||
/*
|
||||
* only first msdu, mpdu start description tlv valid?
|
||||
* and use it for following msdu.
|
||||
*/
|
||||
if (hal_rx_msdu_end_first_msdu_get(soc->hal_soc,
|
||||
rx_tlv_hdr_last))
|
||||
tid = hal_rx_mpdu_start_tid_get(soc->hal_soc,
|
||||
rx_tlv_hdr_first);
|
||||
|
||||
switch (err_code) {
|
||||
case HAL_REO_ERR_REGULAR_FRAME_2K_JUMP:
|
||||
/*
|
||||
* only first msdu, mpdu start description tlv valid?
|
||||
* and use it for following msdu.
|
||||
*/
|
||||
if (hal_rx_msdu_end_first_msdu_get(soc->hal_soc,
|
||||
rx_tlv_hdr_last))
|
||||
tid = hal_rx_mpdu_start_tid_get(
|
||||
soc->hal_soc,
|
||||
rx_tlv_hdr_first);
|
||||
|
||||
dp_2k_jump_handle(soc, nbuf, rx_tlv_hdr_last,
|
||||
peer_id, tid);
|
||||
break;
|
||||
|
||||
case HAL_REO_ERR_REGULAR_FRAME_OOR:
|
||||
dp_rx_oor_handle(soc, nbuf, rx_tlv_hdr_last,
|
||||
mpdu_desc_info, peer_id, tid);
|
||||
dp_rx_oor_handle(soc, nbuf, peer_id, rx_tlv_hdr_last);
|
||||
break;
|
||||
default:
|
||||
dp_err_rl("Non-support error code %d", err_code);
|
||||
@@ -2321,9 +2304,8 @@ done:
|
||||
soc->hal_soc, rx_tlv_hdr);
|
||||
nbuf->next = NULL;
|
||||
dp_rx_oor_handle(soc, nbuf,
|
||||
rx_tlv_hdr,
|
||||
NULL,
|
||||
peer_id, tid);
|
||||
peer_id,
|
||||
rx_tlv_hdr);
|
||||
break;
|
||||
case HAL_REO_ERR_BAR_FRAME_2K_JUMP:
|
||||
case HAL_REO_ERR_BAR_FRAME_OOR:
|
||||
|
Reference in New Issue
Block a user