From 53fe40a9bf6604a3e067179ebc5a592bb59ac0f4 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 1 Apr 2018 09:45:57 -0700 Subject: [PATCH] qcacld-3.0: Rename field enableGreenAP in struct hdd_config Since camelCase is frowned upon in the Linux coding style, rename field enableGreenAP in struct hdd_config. Change-Id: Ie541289f79b2bfe9f2bf490bbcde7e0649e0395d CRs-Fixed: 2218692 --- core/hdd/inc/wlan_hdd_cfg.h | 2 +- core/hdd/src/wlan_hdd_cfg.c | 4 ++-- core/hdd/src/wlan_hdd_green_ap.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index 646415ea8b02..3c3d4192ef13 100644 --- a/core/hdd/inc/wlan_hdd_cfg.h +++ b/core/hdd/inc/wlan_hdd_cfg.h @@ -14912,7 +14912,7 @@ struct hdd_config { bool IsSapDfsChSifsBurstEnabled; #ifdef WLAN_SUPPORT_GREEN_AP - bool enableGreenAP; + bool enable_green_ap; bool enable_egap; uint32_t egap_feature_flag; uint32_t egap_inact_time; diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c index 48c79545c1c3..590f89261b17 100644 --- a/core/hdd/src/wlan_hdd_cfg.c +++ b/core/hdd/src/wlan_hdd_cfg.c @@ -3323,7 +3323,7 @@ struct reg_table_entry g_registry_table[] = { #ifdef WLAN_SUPPORT_GREEN_AP REG_VARIABLE(CFG_ENABLE_GREEN_AP_FEATURE, WLAN_PARAM_Integer, - struct hdd_config, enableGreenAP, + struct hdd_config, enable_green_ap, VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT, CFG_ENABLE_GREEN_AP_FEATURE_DEFAULT, CFG_ENABLE_GREEN_AP_FEATURE_MIN, @@ -6919,7 +6919,7 @@ void hdd_cfg_print(struct hdd_context *hdd_ctx) hdd_ctx->config->gDisableDfsJapanW53); #ifdef WLAN_SUPPORT_GREEN_AP hdd_debug("Name = [gEnableGreenAp] Value = [%u] ", - hdd_ctx->config->enableGreenAP); + hdd_ctx->config->enable_green_ap); hdd_debug("Name = [gEenableEGAP] Value = [%u] ", hdd_ctx->config->enable_egap); hdd_debug("Name = [gEGAPInactTime] Value = [%u] ", diff --git a/core/hdd/src/wlan_hdd_green_ap.c b/core/hdd/src/wlan_hdd_green_ap.c index a708f5123058..ff2dc989f6a8 100644 --- a/core/hdd/src/wlan_hdd_green_ap.c +++ b/core/hdd/src/wlan_hdd_green_ap.c @@ -122,9 +122,9 @@ int hdd_green_ap_start_state_mc(struct hdd_context *hdd_ctx, return -EINVAL; } - if (!cfg->enable2x2 || !cfg->enableGreenAP) { - hdd_info("Green AP support not present: enable2x2: %d, enableGreenAp: %d", - cfg->enable2x2, cfg->enableGreenAP); + if (!cfg->enable2x2 || !cfg->enable_green_ap) { + hdd_info("Green AP support not present: enable2x2: %d, enable_green_ap: %d", + cfg->enable2x2, cfg->enable_green_ap); return 0; }