qcacmn: Implement ndp schedule update and channel info in ndp confirm

Add support for ndp schedule update event and provide channel information
in ndp confirm event.

Change-Id: Ic2c073dd4f220627cc2bd1a2d52d858136b6b450
CRs-Fixed: 2180310
This commit is contained in:
Naveen Rawat
2018-01-09 17:54:41 -08:00
committed by nshrivas
parent e36b84a85a
commit 76cbf2f220
3 changed files with 23 additions and 9 deletions

View File

@@ -1993,7 +1993,7 @@ QDF_STATUS wmi_extract_wds_entry(void *wmi_hdl, uint8_t *evt_buf,
#ifdef WLAN_FEATURE_NAN_CONVERGENCE
/**
* wmi_unified_ndp_initiator_req_cmd_send - api to send initiator request to FW
* @wmi_hdl: wma handle
* @wmi_hdl: wmi handle
* @req: pointer to request buffer
*
* Return: status of operation
@@ -2003,7 +2003,7 @@ QDF_STATUS wmi_unified_ndp_initiator_req_cmd_send(void *wmi_hdl,
/**
* wmi_unified_ndp_responder_req_cmd_send - api to send responder request to FW
* @wmi_hdl: wma handle
* @wmi_hdl: wmi handle
* @req: pointer to request buffer
*
* Return: status of operation
@@ -2013,7 +2013,7 @@ QDF_STATUS wmi_unified_ndp_responder_req_cmd_send(void *wmi_hdl,
/**
* wmi_unified_ndp_end_req_cmd_send - api to send end request to FW
* @wmi_hdl: wma handle
* @wmi_hdl: wmi handle
* @req: pointer to request buffer
*
* Return: status of operation
@@ -2023,7 +2023,7 @@ QDF_STATUS wmi_unified_ndp_end_req_cmd_send(void *wmi_hdl,
/**
* wmi_extract_ndp_initiator_rsp - api to extract initiator rsp from even buffer
* @wmi_hdl: wma handle
* @wmi_hdl: wmi handle
* @data: event buffer
* @rsp: buffer to populate
*
@@ -2034,7 +2034,7 @@ QDF_STATUS wmi_extract_ndp_initiator_rsp(wmi_unified_t wmi_handle,
/**
* wmi_extract_ndp_ind - api to extract ndp indication struct from even buffer
* @wmi_hdl: wma handle
* @wmi_hdl: wmi handle
* @data: event buffer
* @ind: buffer to populate
*
@@ -2045,7 +2045,7 @@ QDF_STATUS wmi_extract_ndp_ind(wmi_unified_t wmi_handle, uint8_t *data,
/**
* wmi_extract_ndp_confirm - api to extract ndp confim struct from even buffer
* @wmi_hdl: wma handle
* @wmi_hdl: wmi handle
* @data: event buffer
* @ev: buffer to populate
*
@@ -2056,7 +2056,7 @@ QDF_STATUS wmi_extract_ndp_confirm(wmi_unified_t wmi_handle, uint8_t *data,
/**
* wmi_extract_ndp_responder_rsp - api to extract responder rsp from even buffer
* @wmi_hdl: wma handle
* @wmi_hdl: wmi handle
* @data: event buffer
* @rsp: buffer to populate
*
@@ -2067,7 +2067,7 @@ QDF_STATUS wmi_extract_ndp_responder_rsp(wmi_unified_t wmi_handle,
/**
* wmi_extract_ndp_end_rsp - api to extract ndp end rsp from even buffer
* @wmi_hdl: wma handle
* @wmi_hdl: wmi handle
* @data: event buffer
* @rsp: buffer to populate
*
@@ -2078,7 +2078,7 @@ QDF_STATUS wmi_extract_ndp_end_rsp(wmi_unified_t wmi_handle, uint8_t *data,
/**
* wmi_extract_ndp_end_ind - api to extract ndp end indication from even buffer
* @wmi_hdl: wma handle
* @wmi_hdl: wmi handle
* @data: event buffer
* @ind: buffer to populate
*
@@ -2086,6 +2086,17 @@ QDF_STATUS wmi_extract_ndp_end_rsp(wmi_unified_t wmi_handle, uint8_t *data,
*/
QDF_STATUS wmi_extract_ndp_end_ind(wmi_unified_t wmi_handle, uint8_t *data,
struct nan_datapath_end_indication_event **ind);
/**
* wmi_extract_ndp_sch_update - api to extract ndp sch update from event buffer
* @wmi_hdl: wmi handle
* @data: event buffer
* @ind: buffer to populate
*
* Return: status of operation
*/
QDF_STATUS wmi_extract_ndp_sch_update(wmi_unified_t wmi_handle, uint8_t *data,
struct nan_datapath_sch_update_event *ind);
#endif
/**

View File

@@ -5496,6 +5496,7 @@ typedef enum {
wmi_ndp_responder_rsp_event_id,
wmi_ndp_end_indication_event_id,
wmi_ndp_end_rsp_event_id,
wmi_ndl_schedule_update_event_id,
wmi_oem_response_event_id,
wmi_peer_stats_info_event_id,
wmi_pdev_chip_power_stats_event_id,

View File

@@ -1526,6 +1526,8 @@ QDF_STATUS (*extract_ndp_end_rsp)(wmi_unified_t wmi_handle,
uint8_t *data, struct nan_datapath_end_rsp_event *rsp);
QDF_STATUS (*extract_ndp_end_ind)(wmi_unified_t wmi_handle,
uint8_t *data, struct nan_datapath_end_indication_event **ind);
QDF_STATUS (*extract_ndp_sch_update)(wmi_unified_t wmi_handle,
uint8_t *data, struct nan_datapath_sch_update_event *ind);
#endif /* WLAN_FEATURE_NAN_CONVERGENCE */
QDF_STATUS (*send_btm_config)(wmi_unified_t wmi_handle,