diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index 646415ea8b027..3c3d4192ef139 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 48c79545c1c31..590f89261b170 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 a708f51230580..ff2dc989f6a81 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; }