cnss2: Disable calibration for emulation builds

Skip cold boot calibration if CONFIG_CNSS_EMULATION is enabled.

Change-Id: Ifee1c5cdf0ab23cbf891c447332d06fef213b46e
Signed-off-by: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
Yue Ma 2020-12-28 11:51:48 -08:00
commit aa77b29b3d

View file

@ -2680,7 +2680,7 @@ static void cnss_init_control_params(struct cnss_plat_data *plat_priv)
"cnss-daemon-support"))
plat_priv->ctrl_params.quirks |= BIT(ENABLE_DAEMON_SUPPORT);
plat_priv->cbc_enabled =
plat_priv->cbc_enabled = !IS_ENABLED(CONFIG_CNSS_EMULATION) &&
of_property_read_bool(plat_priv->plat_dev->dev.of_node,
"qcom,wlan-cbc-enabled");