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
This commit is contained in:
Nachiket Kukade
2018-11-08 18:19:51 +05:30
committato da nshrivas
parent a3dc71cf01
commit 9daf211a16
4 ha cambiato i file con 57 aggiunte e 48 eliminazioni

Vedi File

@@ -832,7 +832,14 @@ QDF_STATUS (*send_set_auto_shutdown_timer_cmd)(wmi_unified_t wmi_handle,
#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 @@ 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