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

Commit 9f9f6e98 authored by Paul Zhang's avatar Paul Zhang Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: Don't recover wlm level if ftm mode

Per stress test in ftm mode, it causes
NL80211_CMD_TRIGGER_SCAN failed.

To resolve this issue, don't recover wlm level in ftm mode.

Change-Id: If8514e3d0f3d2bbf9594502efba476d8ad43d1e3
CRs-Fixed: 3011739
parent dcd9798a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -15380,6 +15380,9 @@ static void hdd_set_adapter_wlm_def_level(struct hdd_context *hdd_ctx)
	wlan_net_dev_ref_dbgid dbgid = NET_DEV_HOLD_GET_ADAPTER;
	int ret;

	if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam())
		return;

	ret = wlan_hdd_validate_context(hdd_ctx);
	if (ret != 0)
		return;