Browse Source

qcacld-3.0: Send dfs offload enable command based on ready event

Send dfs offload enable command to firmware after receiving
ready event.

Change-Id: I8bec60543f4514ddb30a2cdcb1ccab9260130ca8
CRs-Fixed: 2269832
Arif Hussain 6 years ago
parent
commit
baf28b8ec0
1 changed files with 3 additions and 2 deletions
  1. 3 2
      core/wma/src/wma_main.c

+ 3 - 2
core/wma/src/wma_main.c

@@ -5841,8 +5841,6 @@ int wma_rx_service_ready_event(void *handle, uint8_t *cmd_param_info,
 	wma_handle->is_dfs_offloaded =
 		wmi_service_enabled(wmi_handle,
 			wmi_service_dfs_phyerr_offload);
-	if (wma_handle->is_dfs_offloaded)
-		wmi_unified_dfs_phyerr_offload_en_cmd(wmi_handle, 0);
 
 	wma_handle->nan_datapath_enabled =
 		wmi_service_enabled(wma_handle->wmi_handle,
@@ -6535,6 +6533,9 @@ int wma_rx_ready_event(void *handle, uint8_t *cmd_param_info,
 	wma_handle->wmi_ready = true;
 	wma_handle->wlan_init_status = ev->status;
 
+	if (wma_handle->is_dfs_offloaded)
+		wmi_unified_dfs_phyerr_offload_en_cmd(
+				wma_handle->wmi_handle, 0);
 	/* copy the mac addr */
 	WMI_MAC_ADDR_TO_CHAR_ARRAY(&ev->mac_addr, wma_handle->myaddr);
 	WMI_MAC_ADDR_TO_CHAR_ARRAY(&ev->mac_addr, wma_handle->hwaddr);