|
@@ -206,7 +206,7 @@ QDF_STATUS wlan_hdd_remain_on_channel_callback(tHalHandle hHal, void *pCtx,
|
|
|
* roc requests are immediately processed without being queued
|
|
|
*/
|
|
|
pAdapter->is_roc_inprogress = false;
|
|
|
- qdf_runtime_pm_allow_suspend(hdd_ctx->runtime_context.roc);
|
|
|
+ qdf_runtime_pm_allow_suspend(&hdd_ctx->runtime_context.roc);
|
|
|
/*
|
|
|
* If the allow suspend is done later, the scheduled roc wil prevent
|
|
|
* the system from going into suspend and immediately this logic
|
|
@@ -379,7 +379,7 @@ void wlan_hdd_cancel_existing_remain_on_channel(hdd_adapter_t *pAdapter)
|
|
|
if (!rc)
|
|
|
hdd_err("timeout waiting for cancel remain on channel ready indication");
|
|
|
|
|
|
- qdf_runtime_pm_allow_suspend(hdd_ctx->runtime_context.roc);
|
|
|
+ qdf_runtime_pm_allow_suspend(&hdd_ctx->runtime_context.roc);
|
|
|
hdd_allow_suspend(WIFI_POWER_EVENT_WAKELOCK_ROC);
|
|
|
} else
|
|
|
mutex_unlock(&cfgState->remain_on_chan_ctx_lock);
|
|
@@ -583,7 +583,7 @@ static void wlan_hdd_remain_on_chan_timeout(void *data)
|
|
|
}
|
|
|
|
|
|
hdd_tdls_notify_p2p_roc(hdd_ctx, P2P_ROC_END);
|
|
|
- qdf_runtime_pm_allow_suspend(hdd_ctx->runtime_context.roc);
|
|
|
+ qdf_runtime_pm_allow_suspend(&hdd_ctx->runtime_context.roc);
|
|
|
hdd_allow_suspend(WIFI_POWER_EVENT_WAKELOCK_ROC);
|
|
|
}
|
|
|
|
|
@@ -646,7 +646,7 @@ static int wlan_hdd_execute_remain_on_channel(hdd_adapter_t *pAdapter,
|
|
|
}
|
|
|
|
|
|
hdd_prevent_suspend(WIFI_POWER_EVENT_WAKELOCK_ROC);
|
|
|
- qdf_runtime_pm_prevent_suspend(pHddCtx->runtime_context.roc);
|
|
|
+ qdf_runtime_pm_prevent_suspend(&pHddCtx->runtime_context.roc);
|
|
|
INIT_COMPLETION(pAdapter->rem_on_chan_ready_event);
|
|
|
|
|
|
/* call sme API to start remain on channel. */
|
|
@@ -682,7 +682,7 @@ static int wlan_hdd_execute_remain_on_channel(hdd_adapter_t *pAdapter,
|
|
|
cfgState->remain_on_chan_ctx = NULL;
|
|
|
}
|
|
|
mutex_unlock(&cfgState->remain_on_chan_ctx_lock);
|
|
|
- qdf_runtime_pm_allow_suspend(pHddCtx->runtime_context.
|
|
|
+ qdf_runtime_pm_allow_suspend(&pHddCtx->runtime_context.
|
|
|
roc);
|
|
|
hdd_allow_suspend(WIFI_POWER_EVENT_WAKELOCK_ROC);
|
|
|
return -EINVAL;
|
|
@@ -723,7 +723,7 @@ static int wlan_hdd_execute_remain_on_channel(hdd_adapter_t *pAdapter,
|
|
|
cfgState->remain_on_chan_ctx = NULL;
|
|
|
}
|
|
|
mutex_unlock(&cfgState->remain_on_chan_ctx_lock);
|
|
|
- qdf_runtime_pm_allow_suspend(pHddCtx->runtime_context.
|
|
|
+ qdf_runtime_pm_allow_suspend(&pHddCtx->runtime_context.
|
|
|
roc);
|
|
|
hdd_allow_suspend(WIFI_POWER_EVENT_WAKELOCK_ROC);
|
|
|
return -EINVAL;
|
|
@@ -737,7 +737,7 @@ static int wlan_hdd_execute_remain_on_channel(hdd_adapter_t *pAdapter,
|
|
|
wlansap_cancel_remain_on_channel(
|
|
|
WLAN_HDD_GET_SAP_CTX_PTR(pAdapter),
|
|
|
pRemainChanCtx->scan_id);
|
|
|
- qdf_runtime_pm_allow_suspend(pHddCtx->runtime_context.
|
|
|
+ qdf_runtime_pm_allow_suspend(&pHddCtx->runtime_context.
|
|
|
roc);
|
|
|
hdd_allow_suspend(WIFI_POWER_EVENT_WAKELOCK_ROC);
|
|
|
return -EINVAL;
|