Prechádzať zdrojové kódy

qcacld-3.0: Save the requested scan and fw mode config

Save the requested scan and fw mode config when these
new configs are sent to the firmware for update. This
saved parameter updates the current scan and fw mode
config respectively on getting the response from the
firmware. If this parameter is not saved and updated
in the current scan and fw mode configs, the next
attempt to fetch the current scan and fw mode config
provides the wrong config values.

Change-Id: Iae10d16b29038a8e321ef74ba591b032eedbe425
CRs-Fixed: 1007653
Manishekar Chandrasekaran 9 rokov pred
rodič
commit
91152df26b
1 zmenil súbory, kde vykonal 11 pridanie a 4 odobranie
  1. 11 4
      core/wma/src/wma_main.c

+ 11 - 4
core/wma/src/wma_main.c

@@ -5446,6 +5446,8 @@ fail:
 QDF_STATUS wma_send_soc_set_dual_mac_config(tp_wma_handle wma_handle,
 		struct sir_dual_mac_config *msg)
 {
+	QDF_STATUS status;
+
 	if (!wma_handle) {
 		WMA_LOGE("%s: WMA handle is NULL. Cannot issue command",
 				__func__);
@@ -5457,11 +5459,16 @@ QDF_STATUS wma_send_soc_set_dual_mac_config(tp_wma_handle wma_handle,
 		return QDF_STATUS_E_NULL_VALUE;
 	}
 
+	status = wmi_unified_soc_set_dual_mac_config_cmd(wma_handle->wmi_handle,
+				(struct wmi_dual_mac_config *)msg);
+	if (QDF_IS_STATUS_ERROR(status)) {
+		WMA_LOGE("%s: Failed to send WMI_SOC_SET_DUAL_MAC_CONFIG_CMDID: %d",
+				__func__, status);
+		return status;
+	}
 
-	if (wmi_unified_soc_set_dual_mac_config_cmd(wma_handle->wmi_handle,
-				(struct wmi_dual_mac_config *)msg))
-		WMA_LOGE("%s: Failed to send WMI_SOC_SET_DUAL_MAC_CONFIG_CMDID",
-				__func__);
+	wma_handle->dual_mac_cfg.req_scan_config = msg->scan_config;
+	wma_handle->dual_mac_cfg.req_fw_mode_config = msg->fw_mode_config;
 
 	return QDF_STATUS_SUCCESS;
 }