mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
qcacld-3.0: Return the correct status in txrx clear peer
STA peer can be cleared from peer detach and HDD. If the peer is cleared by peer detach, then return success to HDD request. Change-Id: I7aa564e7f2a1c9ce336ae96679d93a6e11703c37 CRs-Fixed: 2181163
This commit is contained in:
parent
5857853308
commit
fa16398e7a
1 changed files with 5 additions and 2 deletions
|
|
@ -3658,10 +3658,13 @@ static QDF_STATUS ol_txrx_clear_peer(struct cdp_pdev *ppdev, uint8_t sta_id)
|
|||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
|
||||
peer = ol_txrx_peer_find_by_local_id((struct cdp_pdev *)pdev, sta_id);
|
||||
|
||||
/* Return success, if the peer is already cleared by
|
||||
* data path via peer detach function.
|
||||
*/
|
||||
if (!peer)
|
||||
return QDF_STATUS_E_FAULT;
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
||||
return ol_txrx_clear_peer_internal(peer);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue