]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add QCA interface to configure band specific RSSI thresholds for roaming
authorVamsi Krishna <vamsin@codeaurora.org>
Thu, 20 May 2021 16:16:54 +0000 (21:46 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 21 May 2021 15:15:57 +0000 (18:15 +0300)
Add QCA interface to specify the RSSI thresholds separately for candidate
APs from different bands.

Signed-off-by: Vamsi Krishna <vamsin@codeaurora.org>
src/common/qca-vendor.h

index dbcadf329b64ce114c178a6b6221830dcb74d29b..9daae0b8778575b4dd3b5dc0253f418c184ecc9c 100644 (file)
@@ -4585,7 +4585,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.4 GHz, 5 GHz, and 6 GHz 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, those values will
+ *     take precedence over the value configured using the
+ *     QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  *
  * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  *     user defined reason code to be sent to the AP in response to AP's
@@ -4604,6 +4610,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 the
+ *     2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
+ *     AP found in the 2.4 GHz band only if its RSSI value is better than this
+ *     threshold. Optional attribute. If this attribute is not included, the
+ *     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 the 5
+ *     GHz band. The driver/firmware shall trigger roaming to the candidate AP
+ *     found in the 5 GHz band only if its RSSI value is better than this
+ *     threshold. Optional attribute. If this attribute is not included, the
+ *     threshold value specified by tge
+ *     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 the 6
+ *     GHz band. The driver/firmware shall trigger roaming to the candidate AP
+ *     found in the 6 GHz band only if its RSSI value is better than this
+ *     threshold. Optional attribute. If this attribute is not included, the
+ *     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,
@@ -4619,6 +4650,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,