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:
parent
865036ff4f
commit
ea4abd6819
@ -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
|
||||
|
@ -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")
|
||||
|
||||
/*
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user