qcacld-3.0: Use QDF API to check driver unload in DSC

Use newly defined QDF API in CMN qdf_is_driver_unloading() to check
if driver unload is in progress in DSC.

Change-Id: I2958c6cc3ee6f2ac4302e2dbbf1c68d986fea175
CRs-Fixed: 2605706
This commit is contained in:
Alan Chen
2020-01-17 15:35:18 -08:00
committed by nshrivas
parent 997a6ca318
commit 6569f97e67
2 changed files with 4 additions and 2 deletions

View File

@@ -22,7 +22,7 @@
#include "qdf_types.h"
#include "__wlan_dsc.h"
#include "wlan_dsc.h"
#include "cds_api.h"
#include "qdf_platform.h"
#define __dsc_driver_lock(vdev) __dsc_lock((vdev)->psoc->driver)
#define __dsc_driver_unlock(vdev) __dsc_unlock((vdev)->psoc->driver)
@@ -146,7 +146,7 @@ static QDF_STATUS __dsc_vdev_can_trans(struct dsc_vdev *vdev)
* to avoid wifi on failure while previous psoc idle shutdown
* is in progress and wifi is turned on.
*/
if (cds_is_driver_unloading() || qdf_is_recovering())
if (qdf_is_driver_unloading() || qdf_is_recovering())
return QDF_STATUS_E_INVAL;
else
return QDF_STATUS_E_AGAIN;