Prechádzať zdrojové kódy

qcacld-3.0: Remove sme_set_dhcp_till_power_active_flag()

Change Idf75957707c3799add0c59fdd532fe0c24d27117 ("qcacld-3.0: Remove
obsolete STA support for SIOCSIWESSID") removed the only client of
sme_set_dhcp_till_power_active_flag(). Since this function is now
unused, remove it.

Change-Id: I161122772fbc6e588384ac10382885cafdadbc3e
CRs-Fixed: 2371191
Jeff Johnson 6 rokov pred
rodič
commit
9bf35c4459
2 zmenil súbory, kde vykonal 0 pridanie a 20 odobranie
  1. 0 2
      core/sme/inc/sme_api.h
  2. 0 18
      core/sme/src/common/sme_api.c

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

@@ -589,8 +589,6 @@ QDF_STATUS sme_get_modify_profile_fields(mac_handle_t mac_handle,
 
 QDF_STATUS sme_set_host_power_save(mac_handle_t mac_handle, bool psMode);
 
-void sme_set_dhcp_till_power_active_flag(mac_handle_t mac_handle, uint8_t flag);
-
 #ifdef FEATURE_OEM_DATA_SUPPORT
 QDF_STATUS sme_register_oem_data_rsp_callback(mac_handle_t mac_handle,
 		sme_send_oem_data_rsp_msg callback);

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

@@ -3393,24 +3393,6 @@ QDF_STATUS sme_get_modify_profile_fields(mac_handle_t mac_handle,
 	return status;
 }
 
-/*
- * sme_set_dhcp_till_power_active_flag() -
- * Sets/Clears DHCP related flag to disable/enable auto PS
- *
- * mac_handle - The handle returned by mac_open.
- */
-void sme_set_dhcp_till_power_active_flag(mac_handle_t mac_handle, uint8_t flag)
-{
-	struct mac_context *mac = MAC_CONTEXT(mac_handle);
-	struct ps_global_info *ps_global_info = &mac->sme.ps_global_info;
-
-	MTRACE(qdf_trace(QDF_MODULE_ID_SME,
-				TRACE_CODE_SME_RX_HDD_SET_DHCP_FLAG, NO_SESSION,
-				flag));
-	/* Set/Clear the DHCP flag which will disable/enable auto PS */
-	ps_global_info->remain_in_power_active_till_dhcp = flag;
-}
-
 #ifdef FEATURE_OEM_DATA_SUPPORT
 /**
  * sme_register_oem_data_rsp_callback() - Register a routine of