qcacmn: Do not process rxdma err decrypt frames
Do not process or drop rxdma error decrpt frames. In case of decrypt error the decryption is not proper and Rx OLE gets corrupted bytes. So accessing these can lead to invalid buffers. Change-Id: Idb3f942facf08fc26bde0fd9826db28955ca01d5 CRs-Fixed: 2613068
This commit is contained in:
@@ -1071,24 +1071,6 @@ static inline void dp_rx_desc_prep(struct dp_rx_desc *rx_desc, qdf_nbuf_t nbuf)
|
||||
}
|
||||
#endif /* RX_DESC_DEBUG_CHECK */
|
||||
|
||||
#ifdef RXDMA_ERR_PKT_DROP
|
||||
/**
|
||||
* dp_rxdma_err_nbuf_drop(): Function to drop rxdma err frame
|
||||
* @nbuf: buffer pointer
|
||||
*
|
||||
* return: bool: true if RXDMA_ERR_PKT_DROP is enabled
|
||||
*/
|
||||
static inline bool dp_rxdma_err_nbuf_drop(void)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
static inline bool dp_rxdma_err_nbuf_drop(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
void dp_rx_process_rxdma_err(struct dp_soc *soc, qdf_nbuf_t nbuf,
|
||||
uint8_t *rx_tlv_hdr, struct dp_peer *peer,
|
||||
uint8_t err_code, uint8_t mac_id);
|
||||
|
Reference in New Issue
Block a user