Pārlūkot izejas kodu

qcacld-3.0: Fix TDLS componentization

With FEATURE_WLAN_TDLS=n, compiler is throwing implicit
declaration error of function wlan_tdls_get_features_info.

Hence add wlan_tdls_get_features_info stub declaration for
FEATURE_WLAN_TDLS=n.

Change-Id: Ia9820e630b756befbfda98330be193760a331c93
CRs-Fixed: 3309612
Jia Ding 2 gadi atpakaļ
vecāks
revīzija
b55558710e
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 9 0
      components/tdls/dispatcher/inc/wlan_tdls_api.h

+ 9 - 0
components/tdls/dispatcher/inc/wlan_tdls_api.h

@@ -89,6 +89,15 @@ wlan_tdls_notify_sta_connect(uint8_t vdev_id,
 			     struct wlan_objmgr_vdev *vdev);
 
 #else
+
+#ifdef FEATURE_SET
+static inline
+void wlan_tdls_get_features_info(struct wlan_objmgr_psoc *psoc,
+				 struct wlan_tdls_features *tdls_feature_set)
+{
+}
+#endif
+
 static inline QDF_STATUS wlan_tdls_teardown_links(struct wlan_objmgr_psoc *psoc)
 {
 	return QDF_STATUS_SUCCESS;