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

Commit a34b539f authored by Pragaspathi Thilagaraj's avatar Pragaspathi Thilagaraj Committed by Madan Koyyalamudi
Browse files

qcacmn: Add QCA interface to configure band specific rssi thresholds for roaming

Add QCA interface to specify the RSSI thresholds separately for candidate
APs from different bands.

Change-Id: I51d2e7c4490fde3901a4e4e8ad31d9c18823637c
CRs-Fixed: 2951242
parent 21ca55ca
Loading
Loading
Loading
Loading
+35 −1
Original line number Diff line number Diff line
@@ -3138,7 +3138,13 @@ enum qca_vendor_attr_roam_candidate_selection_criteria {
 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
 *	signifying the RSSI threshold of the candidate AP, indicating
 *	the driver to trigger roam only to the candidate AP with RSSI
 *	better than this threshold.
 *	better than this threshold. If RSSI thresholds for candidate APs found
 *	in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
 *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
 *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
 *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
 *	will take precedence over the value configured using
 *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
 *
 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
 *	user triggered reason code to be sent to the AP in response to AP's
@@ -3157,6 +3163,31 @@ enum qca_vendor_attr_roam_candidate_selection_criteria {
 *	If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
 *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
 *	driver shall proceed with the default behavior.
 *
 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
 *	in dBm, signifying the RSSI threshold of the candidate AP found in
 *	2.4GHz band. The driver/firmware shall trigger roaming to the candidate
 *	AP found in 2.4GHz band only if it's RSSI value is better than this
 *	threshold. Optional attribute. If this attribute is not included, then
 *	threshold value specified by the
 *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
 *
 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
 *	dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
 *	band. The driver/firmware shall trigger roaming to the candidate AP
 *	found in 5GHz band only if it's RSSI value is better than this
 *	threshold. Optional attribute. If this attribute is not included, then
 *	threshold value specified by the
 *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
 *
 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
 *	dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
 *	band. The driver/firmware shall trigger roaming to the candidate AP
 *	found in 6GHz band only if it's RSSI value is better than this
 *	threshold. Optional attribute. If this attribute is not included, then
 *	threshold value specified by the
 *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
 *
 */
enum qca_vendor_attr_roam_control {
	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
@@ -3172,6 +3203,9 @@ enum qca_vendor_attr_roam_control {
	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
	QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,

	/* keep last */
	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,