From a58f7e61c173b2086108f74a2f68e8a96ffeb993 Mon Sep 17 00:00:00 2001 From: "Vinita S. Maloo" Date: Mon, 9 Aug 2021 15:11:55 +0530 Subject: [PATCH] Add QCA vendor interface to configure allowed bands for roaming Add a QCA vendor attribute to configure the driver/firmware the allowed bands for roaming by userpace. This attribute is also used to get the configured roam bands from the driver. Signed-off-by: Jouni Malinen --- src/common/qca-vendor.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 9b36f4789..e2e60d9ee 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -4664,6 +4664,13 @@ enum qca_vendor_attr_roam_candidate_selection_criteria { * threshold value specified by the * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. * + * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value. + * Carries bitmask value of bits from &enum qca_set_band and represents + * all the bands in which roaming is allowed. The configuration is valid + * until next disconnection. If this attribute is not present, the + * existing configuration shall be used. By default, roaming is allowed on + * all bands supported by the local device. When the value is set to + * %QCA_SETBAND_AUTO, all supported bands shall be enabled. */ enum qca_vendor_attr_roam_control { QCA_ATTR_ROAM_CONTROL_ENABLE = 1, @@ -4682,6 +4689,7 @@ enum qca_vendor_attr_roam_control { 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, + QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17, /* keep last */ QCA_ATTR_ROAM_CONTROL_AFTER_LAST,