Browse Source

qcacld-3.0: Remove redundant code of hw dbs capable

Currently the driver has hdd, sme api to set the hw
dbs capability in the mac context which is not used
by any other module, because the dispatcher APIs are
already present.

Remove the hw mode capability variable from the mac
context as it is no longer used.

Change-Id: I7aa53b09cfb93fcd87ba9faf97402c136ef6b7ed
CRs-Fixed: 2409368
gaurank kathpalia 6 years ago
parent
commit
a5c5bd5dd3
4 changed files with 0 additions and 54 deletions
  1. 0 34
      core/hdd/src/wlan_hdd_main.c
  2. 0 2
      core/mac/inc/ani_global.h
  3. 0 2
      core/sme/inc/sme_api.h
  4. 0 16
      core/sme/src/common/sme_api.c

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

@@ -1466,39 +1466,6 @@ static void hdd_update_wiphy_vhtcap(struct hdd_context *hdd_ctx)
 		  band_5g->vht_cap.cap, value, value1);
 }
 
-/**
- * hdd_update_hw_dbs_capable() - sets the dbs capability of the device
- * @hdd_ctx: HDD context
- *
- * Sets the DBS capability as per INI and firmware capability
- *
- * Return: None
- */
-static void hdd_update_hw_dbs_capable(struct hdd_context *hdd_ctx)
-{
-	uint8_t hw_dbs_capable = 0;
-	uint8_t dual_mac_feature = DISABLE_DBS_CXN_AND_SCAN;
-	QDF_STATUS status;
-
-	status = ucfg_policy_mgr_get_dual_mac_feature(hdd_ctx->psoc,
-						      &dual_mac_feature);
-	if (status != QDF_STATUS_SUCCESS)
-		hdd_err("can't get dual_mac_feature value");
-	if (policy_mgr_is_hw_dbs_capable(hdd_ctx->psoc)) {
-		switch (dual_mac_feature) {
-		case ENABLE_DBS_CXN_AND_SCAN:
-		case ENABLE_DBS_CXN_AND_ENABLE_SCAN_WITH_ASYNC_SCAN_OFF:
-		case ENABLE_DBS_CXN_AND_DISABLE_SIMULTANEOUS_SCAN:
-			hw_dbs_capable = 1;
-			break;
-		default:
-			hw_dbs_capable = 0;
-			break;
-		}
-	}
-	sme_update_hw_dbs_capable(hdd_ctx->mac_handle, hw_dbs_capable);
-}
-
 static void hdd_update_tgt_ht_cap(struct hdd_context *hdd_ctx,
 				  struct wma_tgt_ht_cap *cfg)
 {
@@ -1962,7 +1929,6 @@ void hdd_update_tgt_cfg(hdd_handle_t hdd_handle, struct wma_tgt_cfg *cfg)
 
 	hdd_update_vdev_nss(hdd_ctx);
 
-	hdd_update_hw_dbs_capable(hdd_ctx);
 	hdd_ctx->dynamic_nss_chains_support =
 					cfg->dynamic_nss_chains_support;
 	ucfg_mlme_get_fine_time_meas_cap(hdd_ctx->psoc, &fine_time_meas_cap);

+ 0 - 2
core/mac/inc/ani_global.h

@@ -783,8 +783,6 @@ struct mac_context {
 	struct vdev_type_nss vdev_type_nss_5g;
 
 	uint16_t mgmtSeqNum;
-	/* DBS capability based on INI and FW capability */
-	uint8_t hw_dbs_capable;
 	uint32_t sta_sap_scc_on_dfs_chan;
 	sir_mgmt_frame_ind_callback mgmt_frame_ind_cb;
 	qdf_atomic_t global_cmd_id;

+ 0 - 2
core/sme/inc/sme_api.h

@@ -1677,8 +1677,6 @@ void sme_set_pdev_ht_vht_ies(mac_handle_t mac_handle, bool enable2x2);
 void sme_update_vdev_type_nss(mac_handle_t mac_handle, uint8_t max_supp_nss,
 			      enum nss_chains_band_info band);
 
-void sme_update_hw_dbs_capable(mac_handle_t mac_handle, uint8_t hw_dbs_capable);
-
 #ifdef FEATURE_P2P_LISTEN_OFFLOAD
 void sme_register_p2p_lo_event(mac_handle_t mac_handle, void *context,
 					p2p_lo_callback callback);

+ 0 - 16
core/sme/src/common/sme_api.c

@@ -12865,22 +12865,6 @@ QDF_STATUS sme_set_he_bss_color(mac_handle_t mac_handle, uint8_t session_id,
 }
 #endif
 
-/**
- * sme_update_hw_dbs_capable() - sets the HW DBS capability
- * @mac_handle: Opaque handle to the global MAC context
- * @hw_dbs_capable: HW DBS capability
- *
- * Sets HW DBS capability based on INI and fw capability.
- *
- * Return: None
- */
-void sme_update_hw_dbs_capable(mac_handle_t mac_handle, uint8_t hw_dbs_capable)
-{
-	struct mac_context *mac_ctx = MAC_CONTEXT(mac_handle);
-
-	mac_ctx->hw_dbs_capable = hw_dbs_capable;
-}
-
 #ifdef FEATURE_P2P_LISTEN_OFFLOAD
 /**
  * sme_register_p2p_lo_event() - Register for the p2p lo event