qcacld-3.0: Return proper status to HDD
Return correct status of fw_test_cmd to HDD
Change-Id: Ic43a44825caf9cd5ce4f58ba702f4c25ccde709b
CRs-Fixed: 2424294
diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c
index 4b328cc..96d0ce3 100644
--- a/core/sme/src/common/sme_api.c
+++ b/core/sme/src/common/sme_api.c
@@ -12532,8 +12532,8 @@
"wma handle is NULL");
return QDF_STATUS_E_FAILURE;
}
- wma_process_fw_test_cmd(wma_handle, fw_test);
- return QDF_STATUS_SUCCESS;
+
+ return wma_process_fw_test_cmd(wma_handle, fw_test);
}
/**
diff --git a/core/wma/inc/wma.h b/core/wma/inc/wma.h
index da1ccbb..97e7f41 100644
--- a/core/wma/inc/wma.h
+++ b/core/wma/inc/wma.h
@@ -1811,8 +1811,8 @@
QDF_STATUS wma_ht40_stop_obss_scan(tp_wma_handle wma_handle,
int32_t vdev_id);
-void wma_process_fw_test_cmd(WMA_HANDLE handle,
- struct set_fwtest_params *wma_fwtest);
+QDF_STATUS wma_process_fw_test_cmd(WMA_HANDLE handle,
+ struct set_fwtest_params *wma_fwtest);
QDF_STATUS wma_send_ht40_obss_scanind(tp_wma_handle wma,
struct obss_ht40_scanind *req);
diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c
index 25d0779..725ca1d 100644
--- a/core/wma/src/wma_features.c
+++ b/core/wma/src/wma_features.c
@@ -4805,23 +4805,24 @@
*
* Return: none
*/
-void wma_process_fw_test_cmd(WMA_HANDLE handle,
- struct set_fwtest_params *wma_fwtest)
+QDF_STATUS wma_process_fw_test_cmd(WMA_HANDLE handle,
+ struct set_fwtest_params *wma_fwtest)
{
tp_wma_handle wma_handle = (tp_wma_handle) handle;
if (!wma_handle || !wma_handle->wmi_handle) {
WMA_LOGE("%s: WMA is closed, can not issue fw test cmd",
__func__);
- return;
+ return QDF_STATUS_E_FAILURE;
}
if (wmi_unified_fw_test_cmd(wma_handle->wmi_handle,
(struct set_fwtest_params *)wma_fwtest)) {
WMA_LOGE("%s: Failed to issue fw test cmd",
__func__);
- return;
+ return QDF_STATUS_E_FAILURE;
}
+ return QDF_STATUS_SUCCESS;
}
/**