Browse Source

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
Kabilan Kannan 7 years ago
parent
commit
fa16398e7a
1 changed files with 5 additions and 2 deletions
  1. 5 2
      core/dp/txrx/ol_txrx.c

+ 5 - 2
core/dp/txrx/ol_txrx.c

@@ -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);