From f2c5c8d38f38da370e9c6b1a11c6a0a585f59c84 Mon Sep 17 00:00:00 2001 From: Jianmin Zhu Date: Wed, 18 May 2022 22:32:26 +0800 Subject: [PATCH] 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. Signed-off-by: Jianmin Zhu --- src/common/qca-vendor.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 122262889..3115305ff 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -4893,6 +4893,12 @@ enum qca_vendor_attr_roam_candidate_selection_criteria { * Optional parameter. Scan dwell time for 6G Non Preferred Scanning * Channels. If this attribute is not configured, the driver shall proceed * with default behavior. + * + * @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, @@ -4918,6 +4924,7 @@ enum qca_vendor_attr_roam_control { QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21, QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22, QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23, + QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24, /* keep last */ QCA_ATTR_ROAM_CONTROL_AFTER_LAST,