diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 5554893442..abcf7a9fcf 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -4536,6 +4536,7 @@ typedef enum { wmi_roam_stats_event_id, wmi_oem_data_event_id, wmi_mgmt_offload_data_event_id, + wmi_pdev_multi_vdev_restart_response_event_id, wmi_events_max, } wmi_conv_event_id; diff --git a/wmi/inc/wmi_unified_priv.h b/wmi/inc/wmi_unified_priv.h index e0a071516d..8cd7b2f3aa 100644 --- a/wmi/inc/wmi_unified_priv.h +++ b/wmi/inc/wmi_unified_priv.h @@ -2125,6 +2125,10 @@ QDF_STATUS (*extract_ani_level)(uint8_t *evt_buf, struct wmi_host_ani_level_event **info, uint32_t *num_freqs); #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*/ diff --git a/wmi/inc/wmi_unified_vdev_api.h b/wmi/inc/wmi_unified_vdev_api.h index 4aff0e0eaf..e8c5c8ece8 100644 --- a/wmi/inc/wmi_unified_vdev_api.h +++ b/wmi/inc/wmi_unified_vdev_api.h @@ -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 * 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 wmi_extract_tbttoffset_num_vdevs(struct wmi_unified *wmi_handle, void *evt_buf, 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 diff --git a/wmi/src/wmi_unified_vdev_api.c b/wmi/src/wmi_unified_vdev_api.c index e755f89f8f..1c8150fe03 100644 --- a/wmi/src/wmi_unified_vdev_api.c +++ b/wmi/src/wmi_unified_vdev_api.c @@ -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 * 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; } + +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; +}