qcacmn: Support multivdev restart response handling
Add WMI change to support consolidated multi vdev restart response handling. Change-Id: I54e90af15f52204a28b85b4506ad2fb99930de3b CRs-Fixed: 2593340
This commit is contained in:
@@ -4536,6 +4536,7 @@ typedef enum {
|
|||||||
wmi_roam_stats_event_id,
|
wmi_roam_stats_event_id,
|
||||||
wmi_oem_data_event_id,
|
wmi_oem_data_event_id,
|
||||||
wmi_mgmt_offload_data_event_id,
|
wmi_mgmt_offload_data_event_id,
|
||||||
|
wmi_pdev_multi_vdev_restart_response_event_id,
|
||||||
wmi_events_max,
|
wmi_events_max,
|
||||||
} wmi_conv_event_id;
|
} wmi_conv_event_id;
|
||||||
|
|
||||||
|
@@ -2125,6 +2125,10 @@ QDF_STATUS (*extract_ani_level)(uint8_t *evt_buf,
|
|||||||
struct wmi_host_ani_level_event **info,
|
struct wmi_host_ani_level_event **info,
|
||||||
uint32_t *num_freqs);
|
uint32_t *num_freqs);
|
||||||
#endif /* FEATURE_ANI_LEVEL_REQUEST */
|
#endif /* FEATURE_ANI_LEVEL_REQUEST */
|
||||||
|
|
||||||
|
QDF_STATUS (*extract_multi_vdev_restart_resp_event)(
|
||||||
|
wmi_unified_t wmi_handle, void *evt_buf,
|
||||||
|
struct multi_vdev_restart_resp *restart_rsp);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Forward declartion for psoc*/
|
/* Forward declartion for psoc*/
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -147,4 +147,18 @@ wmi_extract_ext_tbttoffset_num_vdevs(struct wmi_unified *wmi_handle,
|
|||||||
QDF_STATUS
|
QDF_STATUS
|
||||||
wmi_extract_tbttoffset_num_vdevs(struct wmi_unified *wmi_handle, void *evt_buf,
|
wmi_extract_tbttoffset_num_vdevs(struct wmi_unified *wmi_handle, void *evt_buf,
|
||||||
uint32_t *num_vdevs);
|
uint32_t *num_vdevs);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* wmi_extract_multi_vdev_restart_resp_event() - extract multi vdev restart
|
||||||
|
* response
|
||||||
|
* @wmi_handle: wmi handle
|
||||||
|
* @evt_buf: pointer to event buffer
|
||||||
|
* @restart_rsp: Pointer to hold multi vdev restart response
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||||
|
*/
|
||||||
|
QDF_STATUS wmi_extract_multi_vdev_restart_resp_event(
|
||||||
|
struct wmi_unified *wmi_handle,
|
||||||
|
void *evt_buf,
|
||||||
|
struct multi_vdev_restart_resp *restart_rsp);
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -155,3 +155,15 @@ QDF_STATUS wmi_unified_vdev_set_neighbour_rx_cmd_send(
|
|||||||
|
|
||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QDF_STATUS wmi_extract_multi_vdev_restart_resp_event(
|
||||||
|
struct wmi_unified *wmi_handle,
|
||||||
|
void *evt_buf,
|
||||||
|
struct multi_vdev_restart_resp *restart_rsp)
|
||||||
|
{
|
||||||
|
if (wmi_handle->ops->extract_multi_vdev_restart_resp_event)
|
||||||
|
return wmi_handle->ops->extract_multi_vdev_restart_resp_event(
|
||||||
|
wmi_handle, evt_buf, restart_rsp);
|
||||||
|
|
||||||
|
return QDF_STATUS_E_FAILURE;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user