]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Define QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES also as an event
authorSunil Dutt <usdutt@codeaurora.org>
Wed, 21 Nov 2018 13:49:53 +0000 (19:19 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 26 Nov 2018 22:27:18 +0000 (00:27 +0200)
This commit enhances QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES to
also be an event, aimed to notify the link status (EX: connected
stations status on an AP link).

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/qca-vendor.h

index 943446a15ea50aea3847d205eed74fead038e71f..7c75d0804553db1690dae8525176d90b545fefaa 100644 (file)
@@ -158,6 +158,11 @@ enum qca_radiotap_vendor_ids {
  *     timer value. Uses the attributes defines in
  *     enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
  *
+ * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
+ *     link properties of the respective interface. As an event, is used
+ *     to notify the connected station's status. The attributes for this
+ *     command are defined in enum qca_wlan_vendor_attr_link_properties.
+ *
  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  *     start the P2P Listen offload function in device and pass the listen
  *     channel, period, interval, count, device types, and vendor specific
@@ -6217,4 +6222,26 @@ enum qca_vendor_attr_coex_config {
        QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
 };
 
+/**
+ * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
+ *
+ * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
+ * (STA/AP) for the connected link.
+ * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
+ * &struct nl80211_sta_flag_update for the respective connected link. MAC
+ * address of the peer represented by
+ * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
+ */
+enum qca_wlan_vendor_attr_link_properties {
+       QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
+       /* 1 - 3 are reserved */
+       QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
+       QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
+
+       /* Keep last */
+       QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
+       QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
+       QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
+};
+
 #endif /* QCA_VENDOR_H */