summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVeerendranath Jakkam <quic_vjakkam@quicinc.com>2023-02-24 15:47:59 +0530
committerJouni Malinen <j@w1.fi>2023-04-03 23:00:00 +0300
commitbb4560252d2f3c2d152094bfaf6a96bdb8f35776 (patch)
tree199d7fea16ee8e067dc3239b33e6374b0163e85a
parentbb945b98fefc64887dffb40773a19d77585cee42 (diff)
downloadhostap-bb4560252d2f3c2d152094bfaf6a96bdb8f35776.tar.gz
Add QCA vendor attribute to configure list of allowed frequencies for AP
Define a new attribute QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST to configure the full list of allowed frequencies for the AP operation. The configuration is valid only from the next BSS start until the BSS is stopped. The drivers shall filter out channels on top of this list of channels based on regulatory or other constraints. This can be used to specify user's choice of frequencies, allowed list of channels with static puncturing feature, etc. Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
-rw-r--r--src/common/qca-vendor.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h
index 6c25816b0..83cb21eef 100644
--- a/src/common/qca-vendor.h
+++ b/src/common/qca-vendor.h
@@ -2917,6 +2917,33 @@ enum qca_wlan_vendor_attr_config {
*/
QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
+ /* Nested attribute with frequencies in u32 attributes to configure a
+ * list of allowed 20 MHz channel center frequencies in MHz for AP
+ * operation. Whenever performing a channel selection operation, the
+ * driver shall generate a new list based on this provided list by
+ * filtering out channels that cannot be used at that time due to
+ * regulatory or other constraints. The resulting list is used as the
+ * list of all allowed channels, i.e., operation on any channel that is
+ * not included is not allowed, whenever performing operations like ACS
+ * and DFS.
+ *
+ * Userspace shall configure this before starting the AP and the
+ * configuration is valid only from the next BSS start and until the
+ * BSS is stopped. The driver shall clear this configuration when the
+ * AP is stopped and fall back to the default behavior for subsequent
+ * AP operation.
+ *
+ * The default behavior when this configuration is not applicable is the
+ * driver can choose any of the channels supported by the hardware
+ * except the channels that cannot be used due to regulatory or other
+ * constraints.
+ *
+ * The driver shall reject this configuration if done after the AP is
+ * started. This attribute can be used to specify user's choice of
+ * frequencies and static puncture channel list, etc.
+ */
+ QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
+
/* keep last */
QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =