|
@@ -45,17 +45,15 @@ int hdd_create_and_store_psoc(hdd_context_t *hdd_ctx, uint8_t psoc_id)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-QDF_STATUS hdd_release_and_destroy_psoc(hdd_context_t *hdd_ctx)
|
|
|
+int hdd_release_and_destroy_psoc(hdd_context_t *hdd_ctx)
|
|
|
{
|
|
|
struct wlan_objmgr_psoc *psoc = hdd_ctx->hdd_psoc;
|
|
|
|
|
|
hdd_ctx->hdd_psoc = NULL;
|
|
|
if (!psoc)
|
|
|
- return QDF_STATUS_E_FAILURE;
|
|
|
-
|
|
|
- wlan_objmgr_psoc_obj_delete(psoc);
|
|
|
+ return -EINVAL;
|
|
|
|
|
|
- return QDF_STATUS_SUCCESS;
|
|
|
+ return qdf_status_to_os_return(wlan_objmgr_psoc_obj_delete(psoc));
|
|
|
}
|
|
|
|
|
|
QDF_STATUS hdd_create_and_store_pdev(hdd_context_t *hdd_ctx)
|