[PATCH 3/4] include: Move DOT11_PHY_TYPE to windot11.h

Alex Henrie alexhenrie24 at gmail.com
Thu Aug 5 00:56:50 CDT 2021


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 include/windot11.h | 38 ++++++++++++++++++++++++++++++++++++++
 include/wlanapi.h  | 18 ++----------------
 2 files changed, 40 insertions(+), 16 deletions(-)
 create mode 100644 include/windot11.h

diff --git a/include/windot11.h b/include/windot11.h
new file mode 100644
index 00000000000..e14ed738213
--- /dev/null
+++ b/include/windot11.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2021 Alex Henrie
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef _WINDOT11_H
+#define _WINDOT11_H
+
+typedef enum _DOT11_PHY_TYPE
+{
+    dot11_phy_type_unknown = 0x00,
+    dot11_phy_type_any = 0x00,
+    dot11_phy_type_fhss = 0x01,
+    dot11_phy_type_dsss = 0x02,
+    dot11_phy_type_irbaseband = 0x03,
+    dot11_phy_type_ofdm = 0x04,
+    dot11_phy_type_hrdsss = 0x05,
+    dot11_phy_type_erp = 0x06,
+    dot11_phy_type_ht = 0x07,
+    dot11_phy_type_vht = 0x08,
+    dot11_phy_type_IHV_start = 0x80000000,
+    dot11_phy_type_IHV_end = 0xFFFFFFFF
+} DOT11_PHY_TYPE, *PDOT11_PHY_TYPE;
+
+#endif /* _WINDOT11_H */
diff --git a/include/wlanapi.h b/include/wlanapi.h
index 80de128a60f..02b787e09a1 100644
--- a/include/wlanapi.h
+++ b/include/wlanapi.h
@@ -19,6 +19,8 @@
 #ifndef _WLAN_WLANAPI_H
 #define _WLAN_WLANAPI_H
 
+#include <windot11.h>
+
 typedef enum _WLAN_INTERFACE_STATE
 {
     wlan_interface_state_not_ready,
@@ -105,22 +107,6 @@ typedef enum _DOT11_CIPHER_ALGORITHM
     DOT11_CIPHER_ALGO_IHV_END = 0xFFFFFFFF
 } DOT11_CIPHER_ALGORITHM, *PDOT11_CIPHER_ALGORITHM;
 
-typedef enum _DOT11_PHY_TYPE
-{
-    dot11_phy_type_unknown = 0x00,
-    dot11_phy_type_any = 0x00,
-    dot11_phy_type_fhss = 0x01,
-    dot11_phy_type_dsss = 0x02,
-    dot11_phy_type_irbaseband = 0x03,
-    dot11_phy_type_ofdm = 0x04,
-    dot11_phy_type_hrdsss = 0x05,
-    dot11_phy_type_erp = 0x06,
-    dot11_phy_type_ht = 0x07,
-    dot11_phy_type_vht = 0x08,
-    dot11_phy_type_IHV_start = 0x80000000,
-    dot11_phy_type_IHV_end = 0xFFFFFFFF
-} DOT11_PHY_TYPE, *PDOT11_PHY_TYPE;
-
 #define WLAN_MAX_PHY_TYPE_NUMBER 8
 
 typedef struct _WLAN_AVAILABLE_NETWORK
-- 
2.32.0




More information about the wine-devel mailing list