qcacmn: Add API to allow WMI commands
Add API to restart sending WMI commands after they have been stopped using wmi_stop() API. Change-Id: Id65e5d1310cd7076ca47c6e7e19221492c10a868
This commit is contained in:
@@ -442,6 +442,14 @@ void wmi_set_tgt_assert(wmi_unified_t wmi_handle, bool val);
|
|||||||
int
|
int
|
||||||
wmi_stop(wmi_unified_t wmi_handle);
|
wmi_stop(wmi_unified_t wmi_handle);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* generic function to start unified WMI command
|
||||||
|
* @param wmi_handle : handle to WMI.
|
||||||
|
* @return 0 on success and -ve on failure.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
wmi_start(wmi_unified_t wmi_handle);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* API to flush all the previous packets associated with the wmi endpoint
|
* API to flush all the previous packets associated with the wmi endpoint
|
||||||
*
|
*
|
||||||
|
@@ -1770,7 +1770,8 @@ QDF_STATUS wmi_unified_cmd_send_fl(wmi_unified_t wmi_handle, wmi_buf_t buf,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (wmi_handle->wmi_stopinprogress) {
|
if (wmi_handle->wmi_stopinprogress) {
|
||||||
wmi_nofl_err("%s:%d, WMI stop in progress", func, line);
|
wmi_nofl_err("%s:%d, WMI stop in progress, wmi_handle:%pK",
|
||||||
|
func, line, wmi_handle);
|
||||||
return QDF_STATUS_E_INVAL;
|
return QDF_STATUS_E_INVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3129,6 +3130,21 @@ wmi_stop(wmi_unified_t wmi_handle)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* wmi_start() - generic function to allow unified WMI command
|
||||||
|
* @wmi_handle: handle to WMI.
|
||||||
|
*
|
||||||
|
* @Return: success always.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
wmi_start(wmi_unified_t wmi_handle)
|
||||||
|
{
|
||||||
|
QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_INFO,
|
||||||
|
"WMI Start");
|
||||||
|
wmi_handle->wmi_stopinprogress = 0;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* API to flush all the previous packets associated with the wmi endpoint
|
* API to flush all the previous packets associated with the wmi endpoint
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user