]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Introduce QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO
authorSunil Dutt <usdutt@codeaurora.org>
Sat, 25 Jan 2020 11:39:30 +0000 (17:09 +0530)
committerJouni Malinen <jouni@codeaurora.org>
Thu, 13 Feb 2020 16:46:39 +0000 (18:46 +0200)
This acts as a vendor event and is used to update the information
of a station from the driver to userspace.

Add an attribute for the driver to update the channels scanned in
the last connect/roam attempt.

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

index 0f9610b7ea20f4cb51ac29bc7d7eda9c6943a135..b26acc98ab587c209e6316d4563836c4d7faceff 100644 (file)
@@ -629,6 +629,11 @@ enum qca_radiotap_vendor_ids {
  *     user space for the SAR power limits configuration from user space. If
  *     the driver does not get the SAR power limits from user space for all
  *     the retried attempts, it can configure a default SAR power limit.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
+ *     is used to update the information about the station from the driver to
+ *     userspace. Uses attributes from enum
+ *     qca_wlan_vendor_attr_update_sta_info.
  */
 enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
@@ -806,6 +811,7 @@ enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
        QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
        QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
+       QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
 };
 
 enum qca_wlan_vendor_attr {
@@ -8409,4 +8415,27 @@ enum qca_wlan_vendor_attr_get_sta_info {
        QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
 };
 
+/**
+ * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
+ * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
+ *
+ * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
+ * Used in STA mode. This attribute represents the list of channel center
+ * frequencies in MHz (u32) the station has learnt during the last connection
+ * or roaming attempt. This information shall not signify the channels for
+ * an explicit scan request from the user space. Host drivers can update this
+ * information to the user space in both connected and disconnected state.
+ * In the disconnected state this information shall signify the channels
+ * scanned in the last connection/roam attempt that lead to the disconnection.
+ */
+enum qca_wlan_vendor_attr_update_sta_info {
+       QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
+       QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
+
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
+       QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
+};
+
 #endif /* QCA_VENDOR_H */