From 60cbd2db9ce7efe9162fcf79cd9bc6499e01f84a Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 3 Nov 2017 18:26:28 -0700 Subject: [PATCH] qcacld-3.0: Rename hdd_context enableSapSuspend field Per the Linux coding style "mixed-case names are frowned upon" so rename field enableSapSuspend in struct hdd_context. Change-Id: I8f5321fa57c01a36df72dec17499969d0848e3dd CRs-Fixed: 2140344 --- core/hdd/inc/wlan_hdd_cfg.h | 2 +- core/hdd/src/wlan_hdd_cfg.c | 4 ++-- core/hdd/src/wlan_hdd_power.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index 2c4a9880fc38..2eb196234e4d 100644 --- a/core/hdd/inc/wlan_hdd_cfg.h +++ b/core/hdd/inc/wlan_hdd_cfg.h @@ -13878,7 +13878,7 @@ struct hdd_config { uint8_t SapSccChanAvoidance; #endif /* FEATURE_WLAN_FORCE_SAP_SCC */ - bool enableSapSuspend; + bool enable_sap_suspend; #ifdef WLAN_FEATURE_EXTWOW_SUPPORT uint8_t extWowGotoSuspend; diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c index c16a90ac5dde..4eb061b30991 100644 --- a/core/hdd/src/wlan_hdd_cfg.c +++ b/core/hdd/src/wlan_hdd_cfg.c @@ -3434,7 +3434,7 @@ struct reg_table_entry g_registry_table[] = { #endif /* FEATURE_WLAN_FORCE_SAP_SCC */ REG_VARIABLE(CFG_ENABLE_SAP_SUSPEND, WLAN_PARAM_Integer, - struct hdd_config, enableSapSuspend, + struct hdd_config, enable_sap_suspend, VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT, CFG_ENABLE_SAP_SUSPEND_DEFAULT, CFG_ENABLE_SAP_SUSPEND_MIN, @@ -6540,7 +6540,7 @@ void hdd_cfg_print(struct hdd_context *hdd_ctx) hdd_ctx->config->enableSelfRecovery); hdd_debug("Name = [gEnableSapSuspend] Value = [%u]", - hdd_ctx->config->enableSapSuspend); + hdd_ctx->config->enable_sap_suspend); #ifdef WLAN_FEATURE_EXTWOW_SUPPORT hdd_debug("Name = [gExtWoWgotoSuspend] Value = [%u]", diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index 73ab9d3a9604..b0bfc5094782 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -1763,7 +1763,7 @@ static int __wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy, wlan_hdd_inc_suspend_stats(hdd_ctx, SUSPEND_FAIL_RADAR); return -EAGAIN; - } else if (!hdd_ctx->config->enableSapSuspend) { + } else if (!hdd_ctx->config->enable_sap_suspend) { /* return -EOPNOTSUPP if SAP does not support * suspend */ @@ -1771,7 +1771,7 @@ static int __wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy, return -EOPNOTSUPP; } } else if (QDF_P2P_GO_MODE == adapter->device_mode) { - if (!hdd_ctx->config->enableSapSuspend) { + if (!hdd_ctx->config->enable_sap_suspend) { /* return -EOPNOTSUPP if GO does not support * suspend */