From 11ae3a31b78b963891a1eaf278beca0f064ba63f Mon Sep 17 00:00:00 2001 From: Jianmin Zhu Date: Fri, 15 Jul 2022 23:28:21 +0800 Subject: [PATCH] qcacmn: QCA vendor attribute to configure RX link speed threshold for roaming Add QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD value as the RX link speed threshold to disable roaming. If the current link speed is above the threshold, there is no need to roam. Change-Id: Ifeeacfa9d49de76c28fe968c1eb26b5036261c9a CRs-Fixed: 3200264 --- os_if/linux/qca_vendor.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/os_if/linux/qca_vendor.h b/os_if/linux/qca_vendor.h index c5dd04370c..fa8991db9c 100644 --- a/os_if/linux/qca_vendor.h +++ b/os_if/linux/qca_vendor.h @@ -3458,6 +3458,11 @@ enum qca_vendor_attr_roam_candidate_selection_criteria { * on all bands supported by local device. When the value is set to * %QCA_SETBAND_AUTO, all supported bands shall be enabled. * + * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps. + * Optional parameter. RX link speed threshold to disable roaming. + * If the current RX link speed is above the threshold, roaming is not + * needed. If this attribute is not configured, or if it is set to 0, the + * driver will not consider the RX link speed in the roaming decision. */ enum qca_vendor_attr_roam_control { QCA_ATTR_ROAM_CONTROL_ENABLE = 1, @@ -3477,6 +3482,7 @@ enum qca_vendor_attr_roam_control { QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15, QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16, QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17, + QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24, /* keep last */ QCA_ATTR_ROAM_CONTROL_AFTER_LAST,