From 6bceefd884fc57ceb41b8b5392cde62f30252e26 Mon Sep 17 00:00:00 2001 From: Min Liu Date: Thu, 28 May 2020 11:50:19 +0800 Subject: [PATCH] qcacld-3.0: Fix compilation issue in perf build Fix insmod failure in perf build which is caused by undefined symbol when MPC_UT_FRAMEWORK is not defined. Change-Id: I1a1ae76af596a3d219a7367d45a2fb38a08107a4 CRs-Fixed: 2696540 --- core/wma/inc/wma_api.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/wma/inc/wma_api.h b/core/wma/inc/wma_api.h index f6cdf1d6a79d..0737adc6cc66 100644 --- a/core/wma/inc/wma_api.h +++ b/core/wma/inc/wma_api.h @@ -193,7 +193,11 @@ QDF_STATUS wma_post_ctrl_msg(struct mac_context *mac, struct scheduler_msg *pMsg void wma_update_intf_hw_mode_params(uint32_t vdev_id, uint32_t mac_id, uint32_t cfgd_hw_mode_index); +#ifdef MPC_UT_FRAMEWORK void wma_set_dbs_capability_ut(uint32_t dbs); +#else +static inline void wma_set_dbs_capability_ut(uint32_t dbs) {} +#endif QDF_STATUS wma_get_caps_for_phyidx_hwmode(struct wma_caps_per_phy *caps_per_phy, enum hw_mode_dbs_capab hw_mode, enum cds_band_type band); bool wma_is_rx_ldpc_supported_for_channel(uint32_t ch_freq);