Browse Source

qcacld-3.0: correct return value of __wlan_hdd_bus_suspend

Return OS error code instead of QDF error code.

Change-Id: I9d0fd8586c78b8e8210b27bfc8ac13812f420e6a
CRs-Fixed: 3302703
Yu Wang 2 years ago
parent
commit
4b57abb9bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/hdd/src/wlan_hdd_driver_ops.c

+ 1 - 1
core/hdd/src/wlan_hdd_driver_ops.c

@@ -1298,7 +1298,7 @@ static int __wlan_hdd_bus_suspend(struct wow_enable_params wow_params,
 
 	if (hif_try_prevent_ep_vote_access(hif_ctx)) {
 		hdd_debug("Prevent suspend, ep work pending");
-		err = QDF_STATUS_E_BUSY;
+		err = -EBUSY;
 		goto resume_txrx;
 	}