mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
Merge "qcacld-3.0: Check the p2p roc timer state by acquiring timer lock" into wlan-cld3.driver.lnx.2.0
This commit is contained in:
commit
8454570459
1 changed files with 4 additions and 6 deletions
|
|
@ -537,12 +537,10 @@ static QDF_STATUS p2p_process_scan_complete_evt(
|
|||
/* allow runtime suspend */
|
||||
qdf_runtime_pm_allow_suspend(&p2p_soc_obj->roc_runtime_lock);
|
||||
|
||||
if (QDF_TIMER_STATE_RUNNING ==
|
||||
qdf_mc_timer_get_current_state(&roc_ctx->roc_timer)) {
|
||||
status = qdf_mc_timer_stop_sync(&roc_ctx->roc_timer);
|
||||
if (status != QDF_STATUS_SUCCESS)
|
||||
p2p_err("Failed to stop roc timer");
|
||||
}
|
||||
|
||||
status = qdf_mc_timer_stop_sync(&roc_ctx->roc_timer);
|
||||
if (QDF_IS_STATUS_ERROR(status))
|
||||
p2p_err("Failed to stop roc timer");
|
||||
|
||||
status = qdf_mc_timer_destroy(&roc_ctx->roc_timer);
|
||||
if (status != QDF_STATUS_SUCCESS)
|
||||
|
|
|
|||
Loading…
Reference in a new issue