qcacmn: Fix compile issues when some features are disabled

Fix compile issues when some features are disabled, the features are:
BUILD_DEBUG_VERSION
CONFIG_CP_STATS
CONFIG_HOST_OPCLASS
CONFIG_FEATURE_ROAM_DEBUG
There are some other features depends on each other, so enabled features to
qcs40x.snoc.perf_defconfig, the features are:
CONFIG_WLAN_FEATURE_FILS
CONFIG_WMI_ROAM_SUPPORT
CONFIG_WMI_STA_SUPPORT
CONFIG_REG_CLIENT
CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH
CONFIG_WMI_CONCURRENCY_SUPPORT
CONFIG_LL_DP_SUPPORT

Change-Id: I6fa1eacb79576a955e593dbb9ac52083742275e3
CRs-Fixed: 2584839
This commit is contained in:
Hangtian Zhu
2019-12-12 10:47:03 +08:00
committed by nshrivas
orang tua 68930ca688
melakukan 7788a89ccd
7 mengubah file dengan 109 tambahan dan 11 penghapusan

Melihat File

@@ -105,6 +105,37 @@ void wlan_cfg80211_mc_cp_stats_free_stats_event(struct stats_event *info);
struct stats_event *
wlan_cfg80211_mc_cp_stats_get_peer_rssi(struct wlan_objmgr_vdev *vdev,
uint8_t *macaddress, int *errno);
#else
static inline int wlan_cfg80211_mc_cp_stats_get_tx_power(
struct wlan_objmgr_vdev *vdev,
int *dbm)
{
return 0;
}
static inline int wlan_cfg80211_mc_cp_stats_get_wakelock_stats(
struct wlan_objmgr_psoc *psoc,
struct wiphy *wiphy)
{
return 0;
}
static inline struct stats_event *
wlan_cfg80211_mc_cp_stats_get_peer_rssi(struct wlan_objmgr_vdev *vdev,
uint8_t *macaddress, int *errno)
{
return NULL;
}
static inline void wlan_cfg80211_mc_cp_stats_free_stats_event(
struct stats_event *info)
{}
static inline struct stats_event *
wlan_cfg80211_mc_cp_stats_get_station_stats(struct wlan_objmgr_vdev *vdev,
int *errno)
{
return NULL;
}
#endif /* QCA_SUPPORT_CP_STATS */
#endif /* __WLAN_CFG80211_MC_CP_STATS_H__ */