qcacmn: Remove irrelevant qdf_assert_always()
For non-self sta peer (sta_self_peer is set to 0) and in error cases like (WMA peer create failure), peer->txrx_peer is NULL which indicates DP peer setup has not happened and therefore there are no rx cached frames flush. Having a qdf_assert_always() if sta_self_peer is set to 0 is incorrect. This a valid scenario. Hence remove the irrelevant qdf_assert_always(). Change-Id: I1ab18dd681534bb9257be388a74adedc529a67cf CRs-Fixed: 3212253
This commit is contained in:

committed by
Madan Koyyalamudi

부모
35cf6aca16
커밋
c8fafae5ee
@@ -1741,11 +1741,8 @@ void dp_rx_flush_rx_cached(struct dp_peer *peer, bool drop)
|
||||
return;
|
||||
|
||||
if (!peer->txrx_peer) {
|
||||
if (!peer->sta_self_peer) {
|
||||
qdf_err("txrx_peer NULL!!");
|
||||
qdf_assert_always(0);
|
||||
}
|
||||
|
||||
dp_err("txrx_peer NULL!! peer mac_addr("QDF_MAC_ADDR_FMT")",
|
||||
QDF_MAC_ADDR_REF(peer->mac_addr.raw));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user