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

Commit ad91e761 authored by Rakesh Pillai's avatar Rakesh Pillai
Browse files

ath10k: Enable wlan firmware based on the driver mode



The firmware is always enabled in the mission mode,
even if the driver is in the utf mode. This causes
unexpected behaviour when driver is in utf mode.

Enable the firmware in FTM mode if the driver is
started in UTF mode, else enable the firmware in
the normal mission mode.

Change-Id: I4da204b6d19d41e208465a8314bfb8cacc346f4b
Signed-off-by: default avatarRakesh Pillai <pillair@codeaurora.org>
parent 74b6b84c
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
/* Copyright (c) 2005-2011 Atheros Communications Inc.
 * Copyright (c) 2011-2013 Qualcomm Atheros, Inc.
 * Copyright (c) 2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1076,6 +1076,7 @@ static int ath10k_snoc_get_soc_info(struct ath10k *ar)
static int ath10k_snoc_wlan_enable(struct ath10k *ar)
{
	struct ath10k_wlan_enable_cfg cfg;
	enum ath10k_driver_mode mode;
	int pipe_num;
	struct ath10k_ce_tgt_pipe_cfg tgt_cfg[CE_COUNT_MAX];

@@ -1106,8 +1107,9 @@ static int ath10k_snoc_wlan_enable(struct ath10k *ar)
	cfg.shadow_reg_cfg = (struct ath10k_shadow_reg_cfg *)
		&target_shadow_reg_cfg_map;

	return ath10k_snoc_qmi_wlan_enable(ar, &cfg,
					   ATH10K_MISSION, "5.1.0.26N");
	mode = ar->testmode.utf_monitor ? ATH10K_FTM : ATH10K_MISSION;
	return ath10k_snoc_qmi_wlan_enable(ar, &cfg, mode,
					   "5.1.0.26N");
}

static int ath10k_snoc_bus_configure(struct ath10k *ar)