Browse Source

qcacld-3.0: Remove concurrent max interfaces flag

Currently the number of netdev interfaces created is equal to
the max number of vdev's supported. There shouldn't be a problem
w.r.t to adding the number of interfaces, the number of interfaces
which can active at a time is already controlled by the object
manager.

Remove the checks required to add the interfaces greater than
the max supported interfaces.

Change-Id: I5f9d1ca343788a77180a76f961fcc511feff4036
CRs-Fixed: 3010712
Arun Kumar Khandavalli 3 years ago
parent
commit
f16ee4db1f
2 changed files with 0 additions and 19 deletions
  1. 0 1
      core/hdd/inc/wlan_hdd_main.h
  2. 0 18
      core/hdd/src/wlan_hdd_main.c

+ 0 - 1
core/hdd/inc/wlan_hdd_main.h

@@ -1984,7 +1984,6 @@ struct hdd_context {
 #endif /* FEATURE_WLAN_CH_AVOID */
 
 	uint8_t max_intf_count;
-	uint8_t current_intf_count;
 #ifdef WLAN_FEATURE_LPSS
 	uint8_t lpss_support;
 #endif

+ 0 - 18
core/hdd/src/wlan_hdd_main.c

@@ -6866,16 +6866,6 @@ struct hdd_adapter *hdd_open_adapter(struct hdd_context *hdd_ctx, uint8_t sessio
 	QDF_STATUS status = QDF_STATUS_E_FAILURE;
 	uint32_t i;
 
-	if (hdd_ctx->current_intf_count >= WLAN_MAX_VDEVS) {
-		/*
-		 * Max limit reached on the number of vdevs configured by the
-		 * host. Return error
-		 */
-		hdd_err("Unable to add virtual intf: currentVdevCnt=%d,hostConfiguredVdevCnt=%d",
-			hdd_ctx->current_intf_count, hdd_ctx->max_intf_count);
-		return NULL;
-	}
-
 	status = wlan_hdd_validate_mac_address((struct qdf_mac_addr *)mac_addr);
 	if (QDF_IS_STATUS_ERROR(status)) {
 		/* Not received valid mac_addr */
@@ -7086,11 +7076,6 @@ struct hdd_adapter *hdd_open_adapter(struct hdd_context *hdd_ctx, uint8_t sessio
 
 	policy_mgr_set_concurrency_mode(hdd_ctx->psoc, session_type);
 
-	/* Adapter successfully added. Increment the vdev count */
-	hdd_ctx->current_intf_count++;
-
-	hdd_debug("current_intf_count=%d", hdd_ctx->current_intf_count);
-
 	hdd_check_and_restart_sap_with_non_dfs_acs();
 
 	if (QDF_STATUS_SUCCESS != hdd_debugfs_init(adapter))
@@ -7136,9 +7121,6 @@ static void __hdd_close_adapter(struct hdd_context *hdd_ctx,
 	qdf_event_destroy(&adapter->peer_cleanup_done);
 	hdd_adapter_feature_update_work_deinit(adapter);
 	hdd_cleanup_adapter(hdd_ctx, adapter, rtnl_held);
-
-	if (hdd_ctx->current_intf_count != 0)
-		hdd_ctx->current_intf_count--;
 }
 
 void hdd_close_adapter(struct hdd_context *hdd_ctx,