瀏覽代碼

qcacmn: Properly featurize NAN

When CONFIG_MOBILE_ROUTER is enabled there are build failures
due to improper featurization of NAN, so fix the featurization.

Change-Id: I6bc11fb82394c2d32b328cb5d50ff974051755e1
CRs-Fixed: 2353170
jiad 6 年之前
父節點
當前提交
e83dc1ac99
共有 2 個文件被更改,包括 16 次插入0 次删除
  1. 14 0
      wmi_unified_priv.h
  2. 2 0
      wmi_unified_sta_api.h

+ 14 - 0
wmi_unified_priv.h

@@ -2224,6 +2224,20 @@ static inline void wmi_sta_attach_tlv(struct wmi_unified *wmi_handle)
 }
 #endif
 
+#ifdef WLAN_FEATURE_NAN
+/**
+ * wmi_nan_feature_attach_tlv() - set NAN feature wmi callback
+ * @wmi_handle: wmi handle
+ *
+ * Return: none
+ */
+void wmi_nan_feature_attach_tlv(struct wmi_unified *wmi_handle);
+#else
+static inline void wmi_nan_feature_attach_tlv(struct wmi_unified *wmi_handle)
+{
+}
+#endif
+
 /**
  * wmi_align() - provides word aligned parameter
  * @param: parameter to be aligned

+ 2 - 0
wmi_unified_sta_api.h

@@ -146,6 +146,7 @@ QDF_STATUS wmi_unified_nat_keepalive_en_cmd(void *wmi_hdl, uint8_t vdev_id);
 QDF_STATUS wmi_unified_wlm_latency_level_cmd(void *wmi_hdl,
 					struct wlm_latency_level_param *param);
 
+#ifdef WLAN_FEATURE_NAN
 /**
  * wmi_unified_nan_req_cmd() - to send nan request to target
  * @wmi_handle: wmi handle
@@ -155,6 +156,7 @@ QDF_STATUS wmi_unified_wlm_latency_level_cmd(void *wmi_hdl,
  */
 QDF_STATUS wmi_unified_nan_req_cmd(void *wmi_hdl,
 				   struct nan_req_params *nan_req);
+#endif
 
 /**
  * wmi_unified_process_set_ie_info_cmd() - Function to send IE info to firmware