qcacmn: Clear the peer when it is deleted
The peer rx packets should be flushed when deleting the peer and its state should be reset to DISCONNECT, when deleting the peer. If the state of peer is not set to DISCONNECT, then the flushing of rx packets for the peer which is being deleted will call the rx callback and submit these packet to the stack, which can cause unwanted behaviour. This way the UMAC does not need to specifically call clear peer before deleting the peer. Change-Id: I3b5a737126350a361d968f6349aef6291b2e3f56 CRs-Fixed: 2659629
This commit is contained in:
@@ -1139,21 +1139,6 @@ 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);
|
||||
|
||||
#ifdef PEER_CACHE_RX_PKTS
|
||||
/**
|
||||
* dp_rx_flush_rx_cached() - flush cached rx frames
|
||||
* @peer: peer
|
||||
* @drop: set flag to drop frames
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void dp_rx_flush_rx_cached(struct dp_peer *peer, bool drop);
|
||||
#else
|
||||
static inline void dp_rx_flush_rx_cached(struct dp_peer *peer, bool drop)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef QCA_MULTIPASS_SUPPORT
|
||||
static inline
|
||||
bool dp_rx_multipass_process(struct dp_peer *peer, qdf_nbuf_t nbuf, uint8_t tid)
|
||||
|
Reference in New Issue
Block a user