Quellcode durchsuchen

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 vor 7 Jahren
Ursprung
Commit
fa16398e7a
1 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen
  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);