Browse Source

Conver hostapd specific files to include common.h

Instead of getting this via hostapd.h, include it as the first
non-system header file in all source code files in the same way as
used in all other files.
Jouni Malinen 15 years ago
parent
commit
4dbfe5c58a

+ 1 - 0
hostapd/accounting.c

@@ -14,6 +14,7 @@
 
 #include "includes.h"
 
+#include "common.h"
 #include "hostapd.h"
 #include "radius/radius.h"
 #include "radius/radius_client.h"

+ 1 - 0
hostapd/ap_list.c

@@ -17,6 +17,7 @@
 
 #include "includes.h"
 
+#include "common.h"
 #include "hostapd.h"
 #include "config.h"
 #include "ieee802_11.h"

+ 1 - 0
hostapd/beacon.c

@@ -19,6 +19,7 @@
 
 #ifndef CONFIG_NATIVE_WINDOWS
 
+#include "common.h"
 #include "hostapd.h"
 #include "ieee802_11.h"
 #include "wpa.h"

+ 1 - 0
hostapd/config.c

@@ -18,6 +18,7 @@
 #include <grp.h>
 #endif /* CONFIG_NATIVE_WINDOWS */
 
+#include "common.h"
 #include "hostapd.h"
 #include "drivers/driver.h"
 #include "sha1.h"

+ 1 - 0
hostapd/ctrl_iface.c

@@ -20,6 +20,7 @@
 #include <sys/stat.h>
 #include <stddef.h>
 
+#include "common.h"
 #include "hostapd.h"
 #include "eloop.h"
 #include "config.h"

+ 1 - 0
hostapd/ctrl_iface_ap.c

@@ -14,6 +14,7 @@
 
 #include "includes.h"
 
+#include "common.h"
 #include "hostapd.h"
 #include "ieee802_1x.h"
 #include "wpa.h"

+ 1 - 0
hostapd/drv_callbacks.c

@@ -14,6 +14,7 @@
 
 #include "includes.h"
 
+#include "common.h"
 #include "hostapd.h"
 #include "driver_i.h"
 #include "ieee802_11.h"

+ 1 - 0
hostapd/hostapd.c

@@ -14,6 +14,7 @@
 
 #include "includes.h"
 
+#include "common.h"
 #include "eloop.h"
 #include "hostapd.h"
 #include "ieee802_1x.h"

+ 0 - 2
hostapd/hostapd.h

@@ -17,8 +17,6 @@
 #ifndef HOSTAPD_H
 #define HOSTAPD_H
 
-#include "common.h"
-
 #define MAX_VLAN_ID 4094
 
 struct wpa_driver_ops;

+ 1 - 0
hostapd/hw_features.c

@@ -16,6 +16,7 @@
 
 #include "includes.h"
 
+#include "common.h"
 #include "hostapd.h"
 #include "common/ieee802_11_defs.h"
 #include "common/ieee802_11_common.h"

+ 1 - 0
hostapd/iapp.c

@@ -46,6 +46,7 @@
 #include <netpacket/packet.h>
 #endif /* USE_KERNEL_HEADERS */
 
+#include "common.h"
 #include "hostapd.h"
 #include "config.h"
 #include "ieee802_11.h"

+ 1 - 0
hostapd/ieee802_11.c

@@ -19,6 +19,7 @@
 
 #include <net/if.h>
 
+#include "common.h"
 #include "eloop.h"
 #include "hostapd.h"
 #include "ieee802_11.h"

+ 1 - 0
hostapd/ieee802_11_auth.c

@@ -21,6 +21,7 @@
 
 #ifndef CONFIG_NATIVE_WINDOWS
 
+#include "common.h"
 #include "hostapd.h"
 #include "config.h"
 #include "ieee802_11.h"

+ 1 - 0
hostapd/ieee802_1x.c

@@ -14,6 +14,7 @@
 
 #include "includes.h"
 
+#include "common.h"
 #include "hostapd.h"
 #include "ieee802_1x.h"
 #include "accounting.h"

+ 2 - 1
hostapd/main.c

@@ -17,8 +17,9 @@
 #include <syslog.h>
 #endif /* CONFIG_NATIVE_WINDOWS */
 
-#include "eloop.h"
+#include "common.h"
 #include "hostapd.h"
+#include "eloop.h"
 #include "common/version.h"
 #include "config.h"
 #include "tls.h"

+ 1 - 1
hostapd/mlme.c

@@ -16,7 +16,7 @@
 
 #include "includes.h"
 
-#include "hostapd.h"
+#include "common.h"
 #include "ieee802_11.h"
 #include "wpa.h"
 #include "sta_flags.h"

+ 1 - 0
hostapd/preauth.c

@@ -16,6 +16,7 @@
 
 #ifdef CONFIG_RSN_PREAUTH
 
+#include "common.h"
 #include "hostapd.h"
 #include "config.h"
 #include "l2_packet/l2_packet.h"

+ 1 - 0
hostapd/sta_info.c

@@ -15,6 +15,7 @@
 
 #include "includes.h"
 
+#include "common.h"
 #include "hostapd.h"
 #include "sta_flags.h"
 #include "sta_info.h"

+ 1 - 0
hostapd/tkip_countermeasures.c

@@ -14,6 +14,7 @@
 
 #include "includes.h"
 
+#include "common.h"
 #include "hostapd.h"
 #include "eloop.h"
 #include "driver_i.h"

+ 1 - 0
hostapd/vlan_init.c

@@ -15,6 +15,7 @@
 
 #include "includes.h"
 
+#include "common.h"
 #include "hostapd.h"
 #include "driver_i.h"
 #include "vlan_init.h"

+ 1 - 0
hostapd/wme.c

@@ -15,6 +15,7 @@
 
 #include "includes.h"
 
+#include "common.h"
 #include "hostapd.h"
 #include "ieee802_11.h"
 #include "wme.h"

+ 1 - 0
hostapd/wps_hostapd.c

@@ -14,6 +14,7 @@
 
 #include "includes.h"
 
+#include "common.h"
 #include "hostapd.h"
 #include "driver_i.h"
 #include "eloop.h"