Browse Source

qcacld-3.0: Cleanup SME APIs

Remove APIs sme_change_config_param and csr_change_config_param.

Change-Id: I097c67da517e86b4d44901a01b0fe65e1a53b0a9
CRs-Fixed: 1058399
Amar Singhal 8 years ago
parent
commit
7c1a62f23f

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

@@ -236,8 +236,6 @@ QDF_STATUS sme_set11dinfo(tHalHandle hHal, tpSmeConfigParams pSmeConfigParams);
 QDF_STATUS sme_get_soft_ap_domain(tHalHandle hHal,
 		v_REGDOMAIN_t *domainIdSoftAp);
 QDF_STATUS sme_set_reg_info(tHalHandle hHal, uint8_t *apCntryCode);
-QDF_STATUS sme_change_config_params(tHalHandle hHal,
-		tCsrUpdateConfigParam *pUpdateConfigParam);
 QDF_STATUS sme_hdd_ready_ind(tHalHandle hHal);
 QDF_STATUS sme_process_msg(tHalHandle hHal, cds_msg_t *pMsg);
 void sme_free_msg(tHalHandle hHal, cds_msg_t *pMsg);

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

@@ -1642,51 +1642,6 @@ static void sme_process_ready_to_ext_wow(tHalHandle hHal,
 }
 #endif
 
-/* ---------------------------------------------------------------------------
-    \fn sme_change_config_params
-    \brief The SME API exposed for HDD to provide config params to SME during
-    SMEs stop -> start sequence.
-
-    If HDD changed the domain that will cause a reset. This function will
-    provide the new set of 11d information for the new domain. Currrently this
-    API provides info regarding 11d only at reset but we can extend this for
-    other params (PMC, QoS) which needs to be initialized again at reset.
-
-    This is a synchronous call
-
-    \param hHal - The handle returned by mac_open.
-
-    \Param
-    pUpdateConfigParam - a pointer to a structure (tCsrUpdateConfigParam) that
-		currently provides 11d related information like Country code,
-		Regulatory domain, valid channel list, Tx power per channel, a
-		list with active/passive scan allowed per valid channel.
-
-    \return QDF_STATUS
-   ---------------------------------------------------------------------------*/
-QDF_STATUS sme_change_config_params(tHalHandle hHal,
-				    tCsrUpdateConfigParam *pUpdateConfigParam)
-{
-	QDF_STATUS status = QDF_STATUS_E_FAILURE;
-	tpAniSirGlobal pMac = PMAC_STRUCT(hHal);
-
-	if (NULL == pUpdateConfigParam) {
-		sms_log(pMac, LOGE,
-			"Empty config param structure for SME, nothing to reset");
-		return status;
-	}
-
-	status = csr_change_config_params(pMac, pUpdateConfigParam);
-
-	if (!QDF_IS_STATUS_SUCCESS(status)) {
-		sms_log(pMac, LOGE, "csrUpdateConfigParam failed with status=%d",
-			status);
-	}
-
-	return status;
-
-}
-
 /*--------------------------------------------------------------------------
 
    \brief sme_hdd_ready_ind() - SME sends eWNI_SME_SYS_READY_IND to PE to inform

+ 0 - 11
core/sme/src/csr/csr_api_roam.c

@@ -3048,7 +3048,6 @@ QDF_STATUS csr_apply_channel_and_power_list(tpAniSirGlobal pMac)
 	csr_prune_channel_list_for_mode(pMac, &pMac->scan.base_channels);
 	csr_save_channel_power_for_band(pMac, false);
 	csr_save_channel_power_for_band(pMac, true);
-	/* Apply the base channel list, power info, and set the Country code... */
 	csr_apply_channel_power_info_to_fw(pMac,
 					   &pMac->scan.base_channels,
 					   pMac->scan.countryCodeCurrent);
@@ -3057,16 +3056,6 @@ QDF_STATUS csr_apply_channel_and_power_list(tpAniSirGlobal pMac)
 	return status;
 }
 
-QDF_STATUS csr_change_config_params(tpAniSirGlobal pMac,
-				    tCsrUpdateConfigParam *pUpdateConfigParam)
-{
-	QDF_STATUS status = QDF_STATUS_E_FAILURE;
-	tCsr11dinfo *ps11dinfo = NULL;
-	ps11dinfo = &pUpdateConfigParam->Csr11dinfo;
-	status = csr_init11d_info(pMac, ps11dinfo);
-	return status;
-}
-
 static QDF_STATUS csr_init11d_info(tpAniSirGlobal pMac, tCsr11dinfo *ps11dinfo)
 {
 	QDF_STATUS status = QDF_STATUS_E_FAILURE;

+ 0 - 20
core/sme/src/csr/csr_inside_api.h

@@ -848,26 +848,6 @@ void csr_roam_free_connect_profile(tCsrRoamConnectedProfile *profile);
    -------------------------------------------------------------------------------*/
 QDF_STATUS csr_apply_channel_and_power_list(tpAniSirGlobal pMac);
 
-/**
- * csr_change_config_params() - The CSR API exposed for HDD to provide config
- * params to CSR during SMEs stop -> start sequence.
- *
- * @pMac:                 pointer to global adapter context
- * @pUpdateConfigParam:   a pointer to a structure (tCsrUpdateConfigParam) that
- * currently provides 11d related information like country code, Regulatory
- * domain, valid channel list, Tx power per channel, a list with active/passive
- * scan allowed per valid channel.
- *
- * If HDD changed the domain that will cause a reset. This function will
- * provide the new set of 11d information for the new domain. Currrently this
- * API provides info regarding 11d only at reset but we can extend this for
- * other params (PMC, QoS) which needs to be initialized again at reset.
- *
- * Return: QDF_STATUS. status of operation
- */
-QDF_STATUS csr_change_config_params(tpAniSirGlobal pMac,
-				    tCsrUpdateConfigParam *pUpdateConfigParam);
-
 /* ---------------------------------------------------------------------------
     \fn csr_roam_connect_to_last_profile
     \brief To disconnect and reconnect with the same profile