diff --git a/core/hdd/inc/hdd_config.h b/core/hdd/inc/hdd_config.h index 0f1c1b595d92..8875fdc4b113 100644 --- a/core/hdd/inc/hdd_config.h +++ b/core/hdd/inc/hdd_config.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -453,11 +453,14 @@ enum hdd_dot11_mode { * * gRuntimePM - enable runtime suspend * @Min: 0 - * @Max: 1 + * @Max: 2 * @Default: 0 * - * This ini is used to enable runtime_suspend + * This ini is used to enable runtime PM * + * 0: RTPM disabled, so CxPC aware RTPM will be disabled as well + * 1: RTPM enabled, but CxPC aware RTPM disabled + * 2: RTPM enabled and CxPC aware RTPM enabled as well * Related: None * * Supported Feature: Power Save @@ -466,9 +469,12 @@ enum hdd_dot11_mode { * * */ -#define CFG_ENABLE_RUNTIME_PM CFG_INI_BOOL( \ +#define CFG_ENABLE_RUNTIME_PM CFG_INI_UINT( \ "gRuntimePM", \ 0, \ + 2, \ + 0, \ + CFG_VALUE_OR_DEFAULT, \ "This ini is used to enable runtime_suspend") #define CFG_ENABLE_RUNTIME_PM_ALL \ CFG(CFG_ENABLE_RUNTIME_PM) diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index 8e3245b72ca9..b7abce7d808a 100644 --- a/core/hdd/inc/wlan_hdd_cfg.h +++ b/core/hdd/inc/wlan_hdd_cfg.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -212,7 +212,7 @@ struct hdd_config { uint8_t enable_concurrent_sta[CFG_CONCURRENT_IFACE_MAX_LEN]; uint8_t dbs_scan_selection[CFG_DBS_SCAN_PARAM_LENGTH]; #ifdef FEATURE_RUNTIME_PM - bool runtime_pm; + uint8_t runtime_pm; #endif uint8_t inform_bss_rssi_raw;