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

Commit 09ba57f2 authored by Krupali Dhanvijay's avatar Krupali Dhanvijay Committed by Gerrit - the friendly Code Review server
Browse files

qcacld-3.0: Add support to configure 6G roam scan dwell time

Add ini support to configure 6GHz active and passive
scan dwell time and send this to firmware
to be used for LFR scans via WMI_ROAM_SCAN_MODE.

Based on these values, firmware will use host sent values
else use hardcoded values.

Currently firmware uses hardcoded values to configure 6Ghz
roam scan dwell time. With this change user can configure
it using INI.

Change-Id: I90e79ad59eef7f73faa0b9dfd2d38b65aca12285
CRs-Fixed: 3116861
parent b485e3f6
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -2339,6 +2339,10 @@ wmi_fill_rso_start_scan_tlv(struct wlan_roam_scan_offload_params *rso_req,
	scan_tlv->idle_time = src_scan_params->idle_time;
	scan_tlv->n_probes = src_scan_params->n_probes;
	scan_tlv->scan_ctrl_flags |= src_scan_params->scan_ctrl_flags;
	scan_tlv->dwell_time_active_6ghz =
		src_scan_params->dwell_time_active_6ghz;
	scan_tlv->dwell_time_passive_6ghz =
		src_scan_params->dwell_time_passive_6ghz;

	WMI_SCAN_SET_DWELL_MODE(scan_tlv->scan_ctrl_flags,
				src_scan_params->rso_adaptive_dwell_mode);
@@ -2351,8 +2355,10 @@ wmi_fill_rso_start_scan_tlv(struct wlan_roam_scan_offload_params *rso_req,
		scan_tlv->scan_ctrl_flags_ext |=
			WMI_SCAN_DBS_POLICY_DEFAULT;

	wmi_debug("RSO_CFG: dwell time: active %d passive %d, minrest %d max rest %d repeat probe time %d probe_spacing:%d",
	wmi_debug("RSO_CFG: dwell time: active %d passive %d, active 6g %d passive 6g %d, minrest %d max rest %d repeat probe time %d probe_spacing:%d",
		  scan_tlv->dwell_time_active, scan_tlv->dwell_time_passive,
		  scan_tlv->dwell_time_active_6ghz,
		  scan_tlv->dwell_time_passive_6ghz,
		  scan_tlv->min_rest_time, scan_tlv->max_rest_time,
		  scan_tlv->repeat_probe_time, scan_tlv->probe_spacing_time);
	wmi_debug("RSO_CFG: ctrl_flags:0x%x probe_delay:%d max_scan_time:%d idle_time:%d n_probes:%d",
+23 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
 * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -18674,6 +18674,26 @@ csr_cm_roam_scan_offload_fill_lfr3_config(
}
#endif
#ifdef CONFIG_BAND_6GHZ
static void
csr_cm_fill_6ghz_dwell_times(struct wlan_objmgr_psoc *psoc,
			     struct wlan_roam_scan_params *scan_params)
{
	wlan_scan_cfg_get_active_6g_dwelltime(
					psoc,
					&scan_params->dwell_time_active_6ghz);
	wlan_scan_cfg_get_passive_6g_dwelltime(
					psoc,
					&scan_params->dwell_time_passive_6ghz);
}
#else
static inline void
csr_cm_fill_6ghz_dwell_times(struct wlan_objmgr_psoc *psoc,
			     struct wlan_roam_scan_params *scan_params)
{}
#endif
static void
csr_cm_roam_scan_offload_fill_scan_params(
		struct mac_context *mac,
@@ -18794,6 +18814,8 @@ csr_cm_roam_scan_offload_fill_scan_params(
	scan_params->rso_adaptive_dwell_mode =
		mac->mlme_cfg->lfr.adaptive_roamscan_dwell_mode;
	csr_cm_fill_6ghz_dwell_times(mac->psoc, scan_params);
}
/**