]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add subcmd QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP
authorPaul Zhang <paulz@codeaurora.org>
Tue, 7 May 2019 09:02:47 +0000 (17:02 +0800)
committerJouni Malinen <j@w1.fi>
Tue, 7 May 2019 10:03:51 +0000 (13:03 +0300)
In practice, some APs have interop issues with the DUT. This sub command
is used to transfer the AP info between the driver and user space. This
works both as a command and event. As a command, it configures the
stored list of APs from user space to firmware; as an event, it
indicates the AP info detected by the firmware to user space for
persistent storage. The attributes defined in enum
qca_vendor_attr_interop_issues_ap are used to deliver the parameters.

Signed-off-by: Paul Zhang <paulz@codeaurora.org>
src/common/qca-vendor.h

index 1d03a518d1483d1fc453da124aa1cc2f305b9af5..df3e155a85f79bbc3ea3bce9234b5c6698646245 100644 (file)
@@ -571,6 +571,14 @@ enum qca_radiotap_vendor_ids {
  *
  *     All the attributes used with this command are defined in
  *     enum qca_wlan_vendor_attr_beacon_reporting_params.
+ * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
+ *     interop issues with the DUT. This sub command is used to transfer the
+ *     AP info between the driver and user space. This works both as a command
+ *     and an event. As a command, it configures the stored list of APs from
+ *     user space to firmware; as an event, it indicates the AP info detected
+ *     by the firmware to user space for persistent storage. The attributes
+ *     defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
+ *     the parameters.
  */
 enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
@@ -740,6 +748,7 @@ enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
        QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
        QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
+       QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
 };
 
 enum qca_wlan_vendor_attr {
@@ -6945,4 +6954,46 @@ enum qca_wlan_vendor_attr_beacon_reporting_params {
                QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
 };
 
+/**
+ * enum qca_vendor_interop_issues_ap_type - Interop issue types
+ * This enum defines the valid set of values of interop issue types. These
+ * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
+ *
+ * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
+ * when the STA's Qpower feature is enabled.
+ */
+enum qca_vendor_interop_issues_ap_type {
+       QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
+       QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
+};
+
+/**
+ * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
+ * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
+ *
+ * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
+ * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
+ * 32-bit unsigned value. The values defined in enum
+ * qca_vendor_interop_issues_ap_type are used.
+ * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
+ * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
+ * It is present and mandatory for the command but is not used for the event
+ * since only a single BSSID is reported in an event.
+ * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
+ * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
+ * attribute in command case and without such encapsulation in the event case.
+ * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
+ * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
+ */
+enum qca_vendor_attr_interop_issues_ap {
+       QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
+       QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
+       QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
+       QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
+               QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
+};
+
 #endif /* QCA_VENDOR_H */