Jelajahi Sumber

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
Min Liu 4 tahun lalu
induk
melakukan
6bceefd884
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      core/wma/inc/wma_api.h

+ 4 - 0
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);