浏览代码

qcacld-3.0: Remove unused CFG CFG_RMC_ACTION_PERIOD_FREQUENCY

RMC is IBSS specific and CFG_RMC_ACTION_PERIOD_FREQUENCY is not used
now so remove the same

Change-Id: Icafff4bd7eb508d92c383861300146e3a0f2def7
CRs-Fixed: 2689882
Utkarsh Bhatnagar 4 年之前
父节点
当前提交
17b2fc57d7

+ 0 - 2
components/mlme/core/src/wlan_mlme_main.c

@@ -1127,8 +1127,6 @@ static void mlme_init_sap_cfg(struct wlan_objmgr_psoc *psoc,
 	sap_cfg->sap_11g_policy = cfg_default(CFG_11G_ONLY_POLICY);
 	sap_cfg->assoc_sta_limit = cfg_default(CFG_ASSOC_STA_LIMIT);
 	sap_cfg->enable_lte_coex = cfg_get(psoc, CFG_ENABLE_LTE_COEX);
-	sap_cfg->rmc_action_period_freq =
-		cfg_default(CFG_RMC_ACTION_PERIOD_FREQUENCY);
 	sap_cfg->rate_tx_mgmt = cfg_get(psoc, CFG_RATE_FOR_TX_MGMT);
 	sap_cfg->rate_tx_mgmt_2g = cfg_get(psoc, CFG_RATE_FOR_TX_MGMT_2G);
 	sap_cfg->rate_tx_mgmt_5g = cfg_get(psoc, CFG_RATE_FOR_TX_MGMT_5G);

+ 0 - 9
components/mlme/dispatcher/inc/cfg_mlme_sap.h

@@ -95,14 +95,6 @@
 			0, \
 			"enabled lte coex")
 
-#define CFG_RMC_ACTION_PERIOD_FREQUENCY CFG_UINT( \
-			"cfg_rcm_action_period_frequency", \
-			100, \
-			1000, \
-			300, \
-			CFG_VALUE_OR_DEFAULT, \
-			"CFG_RMC_ACTION_PERIOD_FREQUENCY")
-
 /*
  * <ini>
  * cfg_rate_for_tx_mgmt - Set rate for tx mgmt
@@ -774,7 +766,6 @@
 	CFG(CFG_11G_ONLY_POLICY) \
 	CFG(CFG_ASSOC_STA_LIMIT) \
 	CFG(CFG_ENABLE_LTE_COEX) \
-	CFG(CFG_RMC_ACTION_PERIOD_FREQUENCY) \
 	CFG(CFG_RATE_FOR_TX_MGMT) \
 	CFG(CFG_RATE_FOR_TX_MGMT_2G) \
 	CFG(CFG_RATE_FOR_TX_MGMT_5G) \

+ 0 - 10
components/mlme/dispatcher/inc/wlan_mlme_api.h

@@ -524,16 +524,6 @@ QDF_STATUS wlan_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
 QDF_STATUS wlan_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
 					 int value);
 
-/**
- * wlan_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
- * @psoc: pointer to psoc object
- * @value: Value that needs to be set from the caller
- *
- * Return: QDF Status
- */
-QDF_STATUS wlan_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
-						int value);
-
 /**
  * wlan_mlme_set_sap_get_peer_info() - get the sap get peer info
  * @psoc: pointer to psoc object

+ 0 - 2
components/mlme/dispatcher/inc/wlan_mlme_public_struct.h

@@ -641,7 +641,6 @@ struct wlan_mlme_wps_params {
  * @sap_11g_policy:  Check if 11g support is enabled
  * @assoc_sta_limit: Limit on number of STA associated to SAP
  * @enable_lte_coex: Flag for LTE coexistence
- * @rmc_action_period_freq: rmc action period frequency
  * @rate_tx_mgmt: mgmt frame tx rate
  * @rate_tx_mgmt_2g: mgmt frame tx rate for 2G band
  * @rate_tx_mgmt_5g: mgmt frame tx rate for 5G band
@@ -676,7 +675,6 @@ struct wlan_mlme_cfg_sap {
 	bool sap_11g_policy;
 	uint8_t assoc_sta_limit;
 	bool enable_lte_coex;
-	uint16_t rmc_action_period_freq;
 	uint8_t rate_tx_mgmt;
 	uint8_t rate_tx_mgmt_2g;
 	uint8_t rate_tx_mgmt_5g;

+ 0 - 16
components/mlme/dispatcher/inc/wlan_mlme_ucfg_api.h

@@ -1393,22 +1393,6 @@ QDF_STATUS ucfg_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
 	return wlan_mlme_set_assoc_sta_limit(psoc, value);
 }
 
-/**
- * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
- * @psoc: pointer to psoc object
- * @value: Value that needs to be set from the caller
- *
- * Inline UCFG API to be used by HDD/OSIF callers
- *
- * Return: QDF Status
- */
-static inline
-QDF_STATUS ucfg_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
-						int value)
-{
-	return wlan_mlme_set_rmc_action_period_freq(psoc, value);
-}
-
 /**
  * ucfg_mlme_get_listen_interval() - Get listen interval
  * @psoc: pointer to psoc object

+ 1 - 18
components/mlme/dispatcher/src/wlan_mlme_api.c

@@ -1680,23 +1680,6 @@ QDF_STATUS wlan_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS wlan_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
-						int value)
-{
-	struct wlan_mlme_psoc_ext_obj *mlme_obj;
-
-	mlme_obj = mlme_get_psoc_ext_obj(psoc);
-	if (!mlme_obj)
-		return QDF_STATUS_E_FAILURE;
-
-	if (cfg_in_range(CFG_RMC_ACTION_PERIOD_FREQUENCY, value))
-		mlme_obj->cfg.sap_cfg.rmc_action_period_freq = value;
-	else
-		return QDF_STATUS_E_FAILURE;
-
-	return QDF_STATUS_SUCCESS;
-}
-
 QDF_STATUS wlan_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
 					   bool *value)
 {
@@ -1792,7 +1775,7 @@ QDF_STATUS wlan_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc,
 	if (!mlme_obj)
 		return QDF_STATUS_E_FAILURE;
 
-	if (cfg_in_range(CFG_RMC_ACTION_PERIOD_FREQUENCY, value))
+	if (cfg_in_range(CFG_SAP_MAX_NO_PEERS, value))
 		mlme_obj->cfg.sap_cfg.sap_max_no_peers = value;
 	else
 		return QDF_STATUS_E_FAILURE;