]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add QCA vendor interface to configure allowed bands for roaming
authorVinita S. Maloo <vmaloo@codeaurora.org>
Mon, 9 Aug 2021 09:41:55 +0000 (15:11 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 26 Aug 2021 12:27:51 +0000 (15:27 +0300)
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 <jouni@codeaurora.org>
src/common/qca-vendor.h

index 9b36f478977ac25bbde42b06f5e5e6d7b9752725..e2e60d9ee0bf60e4b34bdb0076876e80d79fa6ca 100644 (file)
@@ -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,