qcacld-3.0: Fix TDLS featurization build failure
When CONFIG_MOBILE_ROUTER is enabled there are build failures
due to improper featurization of TDLS, so fix the featurization
build failures.
Change-Id: I0e6b21615e763f2c4c86e0092807062cc8397705
CRs-Fixed: 2355801
diff --git a/core/hdd/inc/wlan_hdd_tdls.h b/core/hdd/inc/wlan_hdd_tdls.h
index 0339213..49726a9 100644
--- a/core/hdd/inc/wlan_hdd_tdls.h
+++ b/core/hdd/inc/wlan_hdd_tdls.h
@@ -257,6 +257,14 @@
QDF_STATUS hdd_tdls_deregister_peer(void *userdata, uint32_t vdev_id,
uint8_t sta_id);
+/**
+ * hdd_init_tdls_config() - initialize tdls config
+ * @tdls_cfg: pointer to tdls_start_params structure
+ *
+ * Return: none
+ */
+void hdd_init_tdls_config(struct tdls_start_params *tdls_cfg);
+
#else
static inline int wlan_hdd_tdls_antenna_switch(struct hdd_context *hdd_ctx,
@@ -283,14 +291,21 @@
static inline
QDF_STATUS hdd_tdls_register_peer(void *userdata, uint32_t vdev_id,
const uint8_t *mac, uint16_t sta_id,
- uint8_t qos);
+ uint8_t qos)
{
+ return QDF_STATUS_SUCCESS;
}
static inline
QDF_STATUS hdd_tdls_deregister_peer(void *userdata, uint32_t vdev_id,
uint8_t sta_id)
{
+ return QDF_STATUS_SUCCESS;
}
+
+static inline void hdd_init_tdls_config(struct tdls_start_params *tdls_cfg)
+{
+}
+
#endif /* End of FEATURE_WLAN_TDLS */
#endif /* __HDD_TDLS_H */