qcacmn: Add modules to handle and extract NAN events
As part of supporting NAN DBS, new WMI TLVs are defined so
that Host can maintain the status of NAN Discovery in sync
with the Firmware. Move the older handlers into the NAN
related files. Also add modules to extract information from
the new TLV's and fill up the event parameters to pass
them to the NAN component. add support for explicitly
disabling NAN due to concurrencies.
Add modules to handle and extract the info from NAN events.
Change-Id: Ic03baaaef45106353c211a813e11e33a90cd41ca
CRs-Fixed: 2338059
diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h
index 1e89472..0a0e9cc 100644
--- a/wmi_unified_priv.h
+++ b/wmi_unified_priv.h
@@ -832,7 +832,14 @@
#ifdef WLAN_FEATURE_NAN
QDF_STATUS (*send_nan_req_cmd)(wmi_unified_t wmi_handle,
- struct nan_req_params *nan_req);
+ struct nan_msg_params *nan_req);
+
+QDF_STATUS (*send_nan_disable_req_cmd)(wmi_unified_t wmi_handle,
+ struct nan_disable_req *nan_msg);
+
+QDF_STATUS (*extract_nan_event_rsp)(wmi_unified_t wmi_handle, void *evt_buf,
+ struct nan_event_params *evt_params,
+ uint8_t **msg_buf);
#endif
QDF_STATUS (*send_process_ch_avoid_update_cmd)(wmi_unified_t wmi_handle);
@@ -2239,20 +2246,6 @@
}
#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