diff --git a/components/dsc/src/wlan_dsc_vdev.c b/components/dsc/src/wlan_dsc_vdev.c index afd3c2c0c6..b045ffd533 100644 --- a/components/dsc/src/wlan_dsc_vdev.c +++ b/components/dsc/src/wlan_dsc_vdev.c @@ -139,7 +139,7 @@ static QDF_STATUS __dsc_vdev_can_trans(struct dsc_vdev *vdev) return QDF_STATUS_E_INVAL; if (qdf_is_recovering()) - return QDF_STATUS_E_AGAIN; + return QDF_STATUS_E_INVAL; if (__dsc_trans_active_or_queued(&vdev->psoc->trans)) { /* psoc idle shutdown(wifi off) needs to be added in DSC queue diff --git a/components/dsc/test/wlan_dsc_test.c b/components/dsc/test/wlan_dsc_test.c index 20c74d0461..3354e0d1c1 100644 --- a/components/dsc/test/wlan_dsc_test.c +++ b/components/dsc/test/wlan_dsc_test.c @@ -284,8 +284,8 @@ static uint32_t dsc_test_psoc_trans_blocks(void) */ cds_set_recovery_in_progress(true); dsc_for_each_psoc_vdev(psoc, vdev) { - action_expect(vdev, trans, QDF_STATUS_E_AGAIN, errors); - action_expect(vdev, op, QDF_STATUS_E_AGAIN, errors); + action_expect(vdev, trans, QDF_STATUS_E_INVAL, errors); + action_expect(vdev, op, QDF_STATUS_E_INVAL, errors); } cds_set_recovery_in_progress(false);