qcacld-3.0: Refine gEnableMCCAdaptiveScheduler as bool

It is more proper to define gEnableMCCAdaptiveScheduler as bool. Then
enable_mcc_adaptive_sch in struct policy_mgr_cfg should be defined as
bool.

Change-Id: I97e2c708e413f86722192b80de39d336e219b3fa
CRs-Fixed: 2656591
This commit is contained in:
bings 2020-04-13 16:42:25 +08:00 committed by nshrivas
parent 865036ff4f
commit ea4abd6819
8 changed files with 10 additions and 11 deletions

View File

@ -379,7 +379,7 @@ QDF_STATUS policy_mgr_set_dynamic_mcc_adaptive_sch(
* Return: QDF_STATUS_SUCCESS up on success and any other status for failure.
*/
QDF_STATUS policy_mgr_get_mcc_adaptive_sch(struct wlan_objmgr_psoc *psoc,
uint8_t *enable_mcc_adaptive_sch);
bool *enable_mcc_adaptive_sch);
/**
* policy_mgr_get_sta_cxn_5g_band() - to get STA's connection in 5G config

View File

@ -258,14 +258,13 @@
*
* Supported Feature: Concurrency
*
* Usage: Internal/External
* Usage: External
*
* </ini>
*/
#define CFG_ENABLE_MCC_ADAPTIVE_SCH_ENABLED_NAME CFG_INI_UINT(\
#define CFG_ENABLE_MCC_ADAPTIVE_SCH_ENABLED_NAME CFG_INI_BOOL(\
"gEnableMCCAdaptiveScheduler", \
0, 1, 1, \
CFG_VALUE_OR_DEFAULT, \
true, \
"Enable/Disable MCC Adaptive Scheduler")
/*

View File

@ -132,7 +132,7 @@ QDF_STATUS ucfg_policy_mgr_get_chnl_select_plcy(struct wlan_objmgr_psoc *psoc,
*/
QDF_STATUS
ucfg_policy_mgr_get_mcc_adaptive_sch(struct wlan_objmgr_psoc *psoc,
uint8_t *enable_mcc_adaptive_sch);
bool *enable_mcc_adaptive_sch);
/**
* ucfg_policy_mgr_get_dynamic_mcc_adaptive_sch() - to get dynamic mcc adaptive

View File

@ -373,7 +373,7 @@ QDF_STATUS policy_mgr_get_dynamic_mcc_adaptive_sch(
}
QDF_STATUS policy_mgr_get_mcc_adaptive_sch(struct wlan_objmgr_psoc *psoc,
uint8_t *enable_mcc_adaptive_sch)
bool *enable_mcc_adaptive_sch)
{
struct policy_mgr_psoc_priv_obj *pm_ctx;

View File

@ -262,7 +262,7 @@ struct policy_mgr_cfg {
uint8_t max_conc_cxns;
uint8_t conc_rule1;
uint8_t conc_rule2;
uint8_t enable_mcc_adaptive_sch;
bool enable_mcc_adaptive_sch;
uint8_t allow_mcc_go_diff_bi;
uint8_t enable_overlap_chnl;
uint8_t dual_mac_feature;

View File

@ -410,7 +410,7 @@ QDF_STATUS policy_mgr_psoc_enable(struct wlan_objmgr_psoc *psoc)
{
QDF_STATUS status;
struct policy_mgr_psoc_priv_obj *pm_ctx;
uint8_t enable_mcc_adaptive_sch = 0;
bool enable_mcc_adaptive_sch = false;
pm_ctx = policy_mgr_get_context(psoc);
if (!pm_ctx) {

View File

@ -162,7 +162,7 @@ QDF_STATUS ucfg_policy_mgr_get_dynamic_mcc_adaptive_sch(
}
QDF_STATUS ucfg_policy_mgr_get_mcc_adaptive_sch(struct wlan_objmgr_psoc *psoc,
uint8_t *mcc_adaptive_sch)
bool *mcc_adaptive_sch)
{
return policy_mgr_get_mcc_adaptive_sch(psoc, mcc_adaptive_sch);
}

View File

@ -1146,7 +1146,7 @@ static void wlan_hdd_update_mcc_p2p_quota(struct hdd_adapter *adapter,
int32_t wlan_hdd_set_mas(struct hdd_adapter *adapter, uint8_t mas_value)
{
struct hdd_context *hdd_ctx;
uint8_t enable_mcc_adaptive_sch = 0;
bool enable_mcc_adaptive_sch = false;
if (!adapter) {
hdd_err("Adapter is NULL");