mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
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:
parent
6d25c97f3f
commit
e45f03d6c2
3 changed files with 9 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue