소스 검색

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
Rajeev Kumar 9 년 전
부모
커밋
9be537edc0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/wma/src/wma_features.c

+ 1 - 1
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);