qcacld-3.0: Remove Unused gEnableSSR INI

Removed Unused gEnableSSR INI and related code

Change-Id: Ie768c44b4c2fbfdaff798ab3043c7391b2fb8b40
CRs-Fixed: 2354839
This commit is contained in:
Vignesh Viswanathan 2018-11-22 17:08:24 +05:30 • committed by nshrivas
commit ed7041d20e
5 changed files with 0 additions and 69 deletions

View file

@ -3286,31 +3286,6 @@ enum hdd_link_speed_rpt_type {
#define CFG_LINK_SPEED_RSSI_LOW_MAX (0)
#define CFG_LINK_SPEED_RSSI_LOW_DEFAULT (-80)
/*
* <ini>
* gEnableSSR - Enable/Disable SSR
* @Min: 0
* @Max: 1
* @Default: 1
*
* This ini is used to enable/disable System Self Recovery at the times of
* System crash or fatal errors
* gEnableSSR = 0 Disabled
* gEnableSSR = 1 wlan shutdown and re-init happens
*
* Related: None
*
* Supported Feature: SSR
*
* Usage: External
*
* </ini>
*/
#define CFG_ENABLE_SSR "gEnableSSR"
#define CFG_ENABLE_SSR_MIN (0)
#define CFG_ENABLE_SSR_MAX (1)
#define CFG_ENABLE_SSR_DEFAULT (1)
/*
* <ini>
* gEnableOverLapCh - Enables Overlap Channel. If set, allow overlapping
@ -6552,7 +6527,6 @@ struct hdd_config {
bool prevent_link_down;
uint8_t scanAgingTimeout;
uint8_t disableLDPCWithTxbfAP;
bool enableSSR;
bool bFastRoamInConIniFeatureEnabled;
bool fEnableSNRMonitoring;
/*PNO related parameters */

View file

@ -267,12 +267,6 @@ cb_notify_set_dfs_scan_mode(struct hdd_context *hdd_ctx,
hdd_ctx->config->allowDFSChannelRoam);
}
static void cb_notify_set_enable_ssr(struct hdd_context *hdd_ctx,
unsigned long notify_id)
{
sme_update_enable_ssr(hdd_ctx->mac_handle, hdd_ctx->config->enableSSR);
}
static void ch_notify_set_g_disable_dfs_japan_w53(struct hdd_context *hdd_ctx,
unsigned long notify_id)
{
@ -1392,15 +1386,6 @@ struct reg_table_entry g_registry_table[] = {
CFG_DISABLE_LDPC_WITH_TXBF_AP_MIN,
CFG_DISABLE_LDPC_WITH_TXBF_AP_MAX),
REG_DYNAMIC_VARIABLE(CFG_ENABLE_SSR, WLAN_PARAM_Integer,
struct hdd_config, enableSSR,
VAR_FLAGS_OPTIONAL |
VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
CFG_ENABLE_SSR_DEFAULT,
CFG_ENABLE_SSR_MIN,
CFG_ENABLE_SSR_MAX,
cb_notify_set_enable_ssr, 0),
REG_DYNAMIC_VARIABLE(CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY,
WLAN_PARAM_Integer,
struct hdd_config, bFastRoamInConIniFeatureEnabled,
@ -4006,8 +3991,6 @@ QDF_STATUS hdd_set_sme_config(struct hdd_context *hdd_ctx)
smeConfig->csrConfig.isCoalesingInIBSSAllowed =
hdd_ctx->config->isCoalesingInIBSSAllowed;
/* update SSR config */
sme_update_enable_ssr(mac_handle, hdd_ctx->config->enableSSR);
/* Update maximum interfaces information */
smeConfig->csrConfig.max_intf_count = hdd_ctx->max_intf_count;

View file

@ -890,10 +890,6 @@ QDF_STATUS sme_update_roam_scan_offload_enabled(mac_handle_t mac_handle,
bool nRoamScanOffloadEnabled);
bool sme_is_feature_supported_by_fw(enum cap_bitmap feature);
/*
* SME API to enable/disable WLAN driver initiated SSR
*/
void sme_update_enable_ssr(mac_handle_t mac_handle, bool enableSSR);
QDF_STATUS sme_set_phy_mode(mac_handle_t mac_handle, eCsrPhyMode phyMode);
eCsrPhyMode sme_get_phy_mode(mac_handle_t mac_handle);
QDF_STATUS sme_handoff_request(mac_handle_t mac_handle, uint8_t sessionId,

View file

@ -8627,25 +8627,6 @@ QDF_STATUS sme_get_peer_info_ext(mac_handle_t mac_handle,
return status;
}
/*
* SME API to enable/disable WLAN driver initiated SSR
*/
void sme_update_enable_ssr(mac_handle_t mac_handle, bool enableSSR)
{
tpAniSirGlobal pMac = PMAC_STRUCT(mac_handle);
QDF_STATUS status = QDF_STATUS_SUCCESS;
status = sme_acquire_global_lock(&pMac->sme);
if (QDF_IS_STATUS_SUCCESS(status)) {
sme_debug("SSR level is changed %d", enableSSR);
/* not serializing this message, as this is only going
* to set a variable in WMA/WDI
*/
WMA_SetEnableSSR(enableSSR);
sme_release_global_lock(&pMac->sme);
}
}
/*convert the ini value to the ENUM used in csr and MAC for CB state*/
ePhyChanBondState sme_get_cb_phy_state_from_cb_ini_value(uint32_t cb_ini_value)
{

View file

@ -497,9 +497,6 @@
(channel_freq), \
(rid)))
#define WMA_SetEnableSSR(enable_ssr) ((void)enable_ssr)
/**
* struct sUapsd_Params - Powersave Offload Changes
* @bkDeliveryEnabled: BK delivery enabled flag