qcacld-3.0: Enable policy manager utfw only in slub debug build
1) CONFIG_MPC_UT_FRAMEWORK should only be enabled for slub debug build 2) CONFIG_MPC_UT_FRAMEWORK should be protected under gEnableUnitTestFramework INI setting. CRs-Fixed: 2309562 Change-Id: I314ec928af2a350d518eb8f8dd62dbadee1746e8
This commit is contained in:
@@ -175,7 +175,6 @@ ifeq ($(CONFIG_ROME_IF),usb)
|
|||||||
CONFIG_LINUX_QCMBR :=y
|
CONFIG_LINUX_QCMBR :=y
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CONFIG_MPC_UT_FRAMEWORK := y
|
|
||||||
|
|
||||||
CONFIG_FEATURE_EPPING := y
|
CONFIG_FEATURE_EPPING := y
|
||||||
|
|
||||||
@@ -232,6 +231,7 @@ CONFIG_MCC_TO_SCC_SWITCH := y
|
|||||||
ifeq ($(CONFIG_SLUB_DEBUG), y)
|
ifeq ($(CONFIG_SLUB_DEBUG), y)
|
||||||
# Enable Obj Mgr Degug services if slub build
|
# Enable Obj Mgr Degug services if slub build
|
||||||
CONFIG_WLAN_OBJMGR_DEBUG:= y
|
CONFIG_WLAN_OBJMGR_DEBUG:= y
|
||||||
|
CONFIG_MPC_UT_FRAMEWORK := y
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (y,$(findstring y,$(CONFIG_QCA_WIFI_SDIO) $(CONFIG_HIF_USB)))
|
ifeq (y,$(findstring y,$(CONFIG_QCA_WIFI_SDIO) $(CONFIG_HIF_USB)))
|
||||||
|
@@ -7391,8 +7391,12 @@ static int __iw_set_var_ints_getnone(struct net_device *dev,
|
|||||||
case WE_POLICY_MANAGER_QUERY_ALLOW_CMD:
|
case WE_POLICY_MANAGER_QUERY_ALLOW_CMD:
|
||||||
case WE_POLICY_MANAGER_SCENARIO_CMD:
|
case WE_POLICY_MANAGER_SCENARIO_CMD:
|
||||||
{
|
{
|
||||||
|
if (!hdd_ctx->config->is_unit_test_framework_enabled) {
|
||||||
|
hdd_warn_rl("UT framework is disabled");
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
iw_get_policy_manager_ut_ops(hdd_ctx, adapter,
|
iw_get_policy_manager_ut_ops(hdd_ctx, adapter,
|
||||||
sub_cmd, apps_args);
|
sub_cmd, apps_args);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WE_SET_CHAN_AVOID:
|
case WE_SET_CHAN_AVOID:
|
||||||
|
Reference in New Issue
Block a user