]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix enum qca_wlan_vendor_attr_config value prefix
authorSunil Dutt <usdutt@codeaurora.org>
Thu, 20 Feb 2020 09:39:38 +0000 (15:09 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 24 Feb 2020 18:16:56 +0000 (20:16 +0200)
Couple of the attributes were defined with inconsistent prefix in the
name (missing "CONFIG_"). Fix these to use the common prefix for all
enum qca_wlan_vendor_attr_config values. Add defined values for the
incorrect names to avoid issues with existing users.

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

index 44d4e6902b2d3f9a19c508337449f194912d70e4..516f53296b84d9bf47e1f58d70d16f1a421a9171 100644 (file)
@@ -2084,7 +2084,7 @@ enum qca_wlan_vendor_attr_config {
         * take the union of IEs from both of these interfaces and send in
         * further disassoc/deauth frames.
         */
-       QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES = 58,
+       QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
 
        /* 8-bit unsigned value for ELNA bypass.
         * 1-Enable, 0-Disable
@@ -2096,7 +2096,7 @@ enum qca_wlan_vendor_attr_config {
         * scenarios where STA cannot honor the Beacon Report Request from AP.
         * 1-Enable, 0-Disable.
         */
-       QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL = 60,
+       QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
 
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
@@ -2104,6 +2104,14 @@ enum qca_wlan_vendor_attr_config {
        QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
 };
 
+/* Compatibility defines for previously used incorrect enum
+ * qca_wlan_vendor_attr_config names. These values should not be used in any
+ * new implementation. */
+#define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
+       QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
+#define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
+       QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
+
 /**
  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  *