qcacmn: Flush dp cached frames only for mld peer

Flush dp cached frames only for mld peers and legacy peers, as
link peers don't need it.

Change-Id: I19a27c5810a1fec6a62bfe5a6377073dc382fb4c
CRs-Fixed: 3131405
This commit is contained in:
Pavankumar Nandeshwar
2022-02-16 00:16:17 -08:00
committed by Madan Koyyalamudi
parent 0447218ad2
commit e157e0df4e
2 changed files with 8 additions and 3 deletions

View File

@@ -1693,6 +1693,13 @@ void dp_rx_flush_rx_cached(struct dp_peer *peer, bool drop)
int num_buff_elem;
QDF_STATUS status;
/*
* Flush dp cached frames only for mld peers and legacy peers, as
* link peers don't store cached frames
*/
if (IS_MLO_DP_LINK_PEER(peer))
return;
if (!peer->txrx_peer) {
if (!peer->sta_self_peer) {
qdf_err("txrx_peer NULL!!");