Browse Source

qcacld-3.0: Remove incorrect check for station count

Remove incorrect check for WLAN_MAX_STA_COUNT. The callee
ol_txrx_get_vdev_by_local_id would do the correct check for
OL_TXRX_NUM_LOCAL_PEER_IDS.

Change-Id: I74f9996316cead165f40454c75145515e9c86a04
CRs-Fixed: 2247595
Amar Singhal 6 years ago
parent
commit
82b6a74853
1 changed files with 0 additions and 6 deletions
  1. 0 6
      core/dp/txrx/ol_txrx.c

+ 0 - 6
core/dp/txrx/ol_txrx.c

@@ -350,12 +350,6 @@ static struct cdp_vdev *ol_txrx_get_vdev_by_sta_id(struct cdp_pdev *ppdev,
 	struct ol_txrx_peer_t *peer = NULL;
 	ol_txrx_vdev_handle vdev;
 
-	if (sta_id >= WLAN_MAX_STA_COUNT) {
-		QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_INFO_HIGH,
-			  "Invalid sta id passed");
-		return NULL;
-	}
-
 	if (!pdev) {
 		QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_INFO_HIGH,
 			  "PDEV not found for sta_id [%d]", sta_id);