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

Commit 88968aba authored by Sai Pavan Akhil Remella's avatar Sai Pavan Akhil Remella Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: Add min_dwell_time_6g ini support in roam offload scan

Currently min_dwell_time_6g ini support is there only for normal
scan.
Added support to configure min_dwell_time_6g in roam offload scan.

Change-Id: I7da5fff738dbaf2a28a909e58ab6c797724ccfaf
CRs-Fixed: 3156597
parent a7dcc70a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2020-2021, The Linux Foundation. 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 above
@@ -703,6 +704,7 @@ struct wlan_roam_fils_params {
 * @vdev_id: vdev id
 * @dwell_time_passive: dwell time in msec on passive channels
 * @dwell_time_active: dwell time in msec on active channels
 * @min_dwell_time_6ghz: minimum dwell time in msec for 6 GHz channel
 * @burst_duration: Burst duration time in msec
 * @min_rest_time: min time in msec on the BSS channel,only valid if atleast
 * one VDEV is active
@@ -733,6 +735,7 @@ struct wlan_roam_scan_params {
	uint32_t vdev_id;
	uint32_t dwell_time_passive;
	uint32_t dwell_time_active;
	uint32_t min_dwell_time_6ghz;
	uint32_t burst_duration;
	uint32_t min_rest_time;
	uint32_t max_rest_time;
+2 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013-2021, The Linux Foundation. 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 above
@@ -2329,6 +2330,7 @@ wmi_fill_rso_start_scan_tlv(struct wlan_roam_scan_offload_params *rso_req,

	scan_tlv->dwell_time_active = src_scan_params->dwell_time_active;
	scan_tlv->dwell_time_passive = src_scan_params->dwell_time_passive;
	scan_tlv->min_dwell_time_6ghz = src_scan_params->min_dwell_time_6ghz;
	scan_tlv->burst_duration = src_scan_params->burst_duration;
	scan_tlv->min_rest_time = src_scan_params->min_rest_time;
	scan_tlv->max_rest_time = src_scan_params->max_rest_time;
+2 −0
Original line number Diff line number Diff line
@@ -18725,6 +18725,8 @@ csr_cm_roam_scan_offload_fill_scan_params(
	/* Parameters updated after association is complete */
	wlan_scan_cfg_get_passive_dwelltime(mac->psoc,
					    &scan_params->dwell_time_passive);
	wlan_scan_cfg_get_min_dwelltime_6g(mac->psoc,
					   &scan_params->min_dwell_time_6ghz);
	/*
	 * Here is the formula,
	 * T(HomeAway) = N * T(dwell) + (N+1) * T(cs)