qcacld-3.0: Return proper status to HDD

Return correct status of fw_test_cmd to HDD

Change-Id: Ic43a44825caf9cd5ce4f58ba702f4c25ccde709b
CRs-Fixed: 2424294
This commit is contained in:
Bala Venkatesh 2019-03-25 16:00:42 +05:30 • committed by nshrivas
commit e45f03d6c2
3 changed files with 9 additions and 8 deletions

View file

@ -12532,8 +12532,8 @@ QDF_STATUS sme_set_fw_test(struct set_fwtest_params *fw_test)
"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);
}
/**

View file

@ -1811,8 +1811,8 @@ void wma_rx_mic_error_ind(void *scn_handle, uint16_t vdev_id, void *wh);
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);

View file

@ -4805,23 +4805,24 @@ QDF_STATUS wma_get_wakelock_stats(struct sir_wake_lock_stats *stats)
*
* 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;
}
/**