Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41423d93 authored by Yu Wang's avatar Yu Wang Committed by snandini
Browse files

qcacld-3.0: return proper values accordingly when setting dual mac config

In sme_soc_set_dual_mac_config(), when fail to enqueue the sme command,
it should not return success; otherwise, the calling functions may wait
for the response(eWNI_SME_SET_DUAL_MAC_CFG_RESP) even when no command
is issued.

Change-Id: I8ac68ce6bb13aff47782caf944982ea4faaee2ba
CRs-Fixed: 2826511
parent bfb7ea9d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -12572,10 +12572,10 @@ QDF_STATUS sme_soc_set_dual_mac_config(struct policy_mgr_dual_mac_config msg)
	sme_debug("set_dual_mac_config scan_config: %x fw_mode_config: %x",
		cmd->u.set_dual_mac_cmd.scan_config,
		cmd->u.set_dual_mac_cmd.fw_mode_config);
	csr_queue_sme_command(mac, cmd, false);
	status = csr_queue_sme_command(mac, cmd, false);

	sme_release_global_lock(&mac->sme);
	return QDF_STATUS_SUCCESS;
	return status;
}

#ifdef FEATURE_LFR_SUBNET_DETECTION