From 9be537edc083f0617d711959a1db3cc84d2991ca Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Mon, 25 Apr 2016 17:35:33 -0700 Subject: [PATCH] qcacld-3.0: Fix resume regression caused by QDF convergence WMA bus resume returns un-initialized local variable as status to hdd bus resume callback which does bug on if status is not 0. Fix WMA bus resume routine to return proper qdf status and conver it into linux status before returnign it to HDD. Change-Id: I8f36c11552412b569ac33afa320fd39fa3fedc50 CRs-Fixed: 1008027 --- core/wma/src/wma_features.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index e43515e04b49..447aa417635b 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -5598,7 +5598,7 @@ int __wma_bus_resume(WMA_HANDLE handle) WMA_LOGE("%s: wow mode %d", __func__, wow_mode); if (!wow_mode) - return wma_resume_target(handle); + return qdf_status_to_os_return(wma_resume_target(handle)); status = wma_disable_wow_in_fw(handle); return qdf_status_to_os_return(status);