]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
QCA vendor command for adding a STA node
authorShiva Sankar Gajula <sgajula@codeaurora.org>
Tue, 8 Oct 2019 00:57:59 +0000 (06:27 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 15 Oct 2019 12:39:22 +0000 (15:39 +0300)
Add a QCA vendor subcommand QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE with
attributes qca_wlan_vendor_attr_add_sta_node_params to add STA peer
entries in AP mode. This vendor sub command is used in FT roaming
scenario to send STA node information from application/service to
driver/firmware. The attributes defined in enum
qca_wlan_vendor_attr_add_sta_node_params are used to deliver the
parameters.

Signed-off-by: Shiva Sankar Gajula <sgajula@codeaurora.org>
src/common/qca-vendor.h

index 36c714549ebcd456794b2fa27668452773d49763..a9d284d3aa742ae08791ec0f15797cebe1ff3460 100644 (file)
@@ -600,6 +600,10 @@ enum qca_radiotap_vendor_ids {
  *     QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  *     is using stream of bytes instead of structured data using vendor
  *     attributes.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
+ *     add the STA node details in driver/firmware. Attributes for this event
+ *     are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  */
 enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
@@ -773,6 +777,7 @@ enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
        QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
        QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
+       QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
 };
 
 enum qca_wlan_vendor_attr {
@@ -7976,4 +7981,23 @@ enum qca_wlan_vendor_attr_avoid_frequency_ext {
                QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
 };
 
+/*
+ * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
+ * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
+ */
+enum qca_wlan_vendor_attr_add_sta_node_params {
+       QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
+       /* 6 byte MAC address of STA */
+       QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
+       /* Authentication algorithm used by the station of size u16;
+        * defined in enum nl80211_auth_type.
+        */
+       QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
+
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
+               QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
+};
+
 #endif /* QCA_VENDOR_H */