Sfoglia il codice sorgente

qcacld-3.0: Return proper status to HDD

Return correct status of fw_test_cmd to HDD

Change-Id: Ic43a44825caf9cd5ce4f58ba702f4c25ccde709b
CRs-Fixed: 2424294
Bala Venkatesh 6 anni fa
parent
commit
e45f03d6c2
3 ha cambiato i file con 9 aggiunte e 8 eliminazioni
  1. 2 2
      core/sme/src/common/sme_api.c
  2. 2 2
      core/wma/inc/wma.h
  3. 5 4
      core/wma/src/wma_features.c

+ 2 - 2
core/sme/src/common/sme_api.c

@@ -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);
 }
 
 /**

+ 2 - 2
core/wma/inc/wma.h

@@ -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);

+ 5 - 4
core/wma/src/wma_features.c

@@ -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;
 }
 
 /**