qcacmn: Fix mic error processing for non raw frames
Extract fragno from 802.11 header only for RAW frames Change-Id: I39e10091f25dd52489bf0aa99633a32f12fc3059
This commit is contained in:

committed by
nshrivas

parent
c3ac05e67f
commit
244eeac730
@@ -1049,6 +1049,7 @@ void dp_rx_process_mic_error(struct dp_soc *soc, qdf_nbuf_t nbuf,
|
|||||||
struct dp_pdev *pdev = NULL;
|
struct dp_pdev *pdev = NULL;
|
||||||
struct ol_if_ops *tops = NULL;
|
struct ol_if_ops *tops = NULL;
|
||||||
uint16_t rx_seq, fragno;
|
uint16_t rx_seq, fragno;
|
||||||
|
uint8_t is_raw;
|
||||||
unsigned int tid;
|
unsigned int tid;
|
||||||
QDF_STATUS status;
|
QDF_STATUS status;
|
||||||
struct cdp_rx_mic_err_info mic_failure_info;
|
struct cdp_rx_mic_err_info mic_failure_info;
|
||||||
@@ -1074,19 +1075,22 @@ void dp_rx_process_mic_error(struct dp_soc *soc, qdf_nbuf_t nbuf,
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
fragno = dp_rx_frag_get_mpdu_frag_number(qdf_nbuf_data(nbuf));
|
is_raw = HAL_IS_DECAP_FORMAT_RAW(soc->hal_soc, qdf_nbuf_data(nbuf));
|
||||||
/* Can get only last fragment */
|
if (is_raw) {
|
||||||
if (fragno) {
|
fragno = dp_rx_frag_get_mpdu_frag_number(qdf_nbuf_data(nbuf));
|
||||||
tid = hal_rx_mpdu_start_tid_get(soc->hal_soc,
|
/* Can get only last fragment */
|
||||||
qdf_nbuf_data(nbuf));
|
if (fragno) {
|
||||||
rx_seq = hal_rx_get_rx_sequence(soc->hal_soc,
|
tid = hal_rx_mpdu_start_tid_get(soc->hal_soc,
|
||||||
qdf_nbuf_data(nbuf));
|
qdf_nbuf_data(nbuf));
|
||||||
|
rx_seq = hal_rx_get_rx_sequence(soc->hal_soc,
|
||||||
|
qdf_nbuf_data(nbuf));
|
||||||
|
|
||||||
status = dp_rx_defrag_add_last_frag(soc, peer,
|
status = dp_rx_defrag_add_last_frag(soc, peer,
|
||||||
tid, rx_seq, nbuf);
|
tid, rx_seq, nbuf);
|
||||||
dp_info_rl("Frag pkt seq# %d frag# %d consumed status %d !",
|
dp_info_rl("Frag pkt seq# %d frag# %d consumed "
|
||||||
rx_seq, fragno, status);
|
"status %d !", rx_seq, fragno, status);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hal_rx_mpdu_get_addr1(soc->hal_soc, qdf_nbuf_data(nbuf),
|
if (hal_rx_mpdu_get_addr1(soc->hal_soc, qdf_nbuf_data(nbuf),
|
||||||
|
Reference in New Issue
Block a user