Browse Source

Remove src/common from default header file path

This makes it clearer which files are including header from src/common.
Some of these cases should probably be cleaned up in the future not to
do that.

In addition, src/common/nl80211_copy.h and wireless_copy.h were moved
into src/drivers since they are only used by driver wrappers and do not
need to live in src/common.
Jouni Malinen 15 years ago
parent
commit
90973fb2fd
82 changed files with 106 additions and 114 deletions
  1. 0 1
      hostapd/Makefile
  2. 1 1
      hostapd/config.c
  3. 2 2
      hostapd/config.h
  4. 1 1
      hostapd/eapol_sm.h
  5. 1 2
      hostapd/hostapd.c
  6. 2 2
      hostapd/hostapd_cli.c
  7. 2 2
      hostapd/hw_features.c
  8. 1 1
      hostapd/ieee802_11.c
  9. 2 2
      hostapd/ieee802_11.h
  10. 2 2
      hostapd/ieee802_1x.c
  11. 1 1
      hostapd/main.c
  12. 0 1
      hostapd/peerkey.c
  13. 1 1
      hostapd/preauth.c
  14. 1 1
      hostapd/sta_info.h
  15. 1 1
      hostapd/tkip_countermeasures.c
  16. 3 3
      hostapd/wpa.h
  17. 0 1
      hostapd/wpa_ft.c
  18. 3 3
      hostapd/wps_hostapd.c
  19. 1 1
      src/drivers/driver.h
  20. 1 1
      src/drivers/driver_atheros.c
  21. 1 1
      src/drivers/driver_bsd.c
  22. 1 1
      src/drivers/driver_hostap.c
  23. 1 1
      src/drivers/driver_madwifi.c
  24. 1 1
      src/drivers/driver_ndis.c
  25. 1 1
      src/drivers/driver_nl80211.c
  26. 1 1
      src/drivers/driver_none.c
  27. 1 1
      src/drivers/driver_privsep.c
  28. 2 2
      src/drivers/driver_ps3.c
  29. 1 1
      src/drivers/driver_ralink.c
  30. 1 1
      src/drivers/driver_test.c
  31. 2 2
      src/drivers/driver_wext.c
  32. 0 0
      src/drivers/nl80211_copy.h
  33. 1 1
      src/drivers/scan_helpers.c
  34. 0 0
      src/drivers/wireless_copy.h
  35. 1 1
      src/eap_peer/eap.c
  36. 1 1
      src/eap_peer/eap.h
  37. 1 1
      src/eap_peer/eap_mschapv2.c
  38. 1 1
      src/eap_server/eap.h
  39. 1 1
      src/eapol_supp/eapol_supp_sm.c
  40. 1 1
      src/eapol_supp/eapol_supp_sm.h
  41. 1 1
      src/l2_packet/l2_packet_privsep.c
  42. 0 1
      src/radius/radius_server.c
  43. 1 1
      src/rsn_supp/peerkey.c
  44. 1 1
      src/rsn_supp/preauth.c
  45. 1 1
      src/rsn_supp/wpa.c
  46. 3 3
      src/rsn_supp/wpa.h
  47. 2 2
      src/rsn_supp/wpa_ft.c
  48. 1 1
      src/rsn_supp/wpa_ie.c
  49. 1 1
      src/wps/wps.c
  50. 1 1
      src/wps/wps_registrar.c
  51. 0 1
      wpa_supplicant/Makefile
  52. 1 1
      wpa_supplicant/config_ssid.h
  53. 2 2
      wpa_supplicant/ctrl_iface.c
  54. 1 1
      wpa_supplicant/ctrl_iface_dbus_handlers.c
  55. 1 1
      wpa_supplicant/ctrl_iface_dbus_new_handlers.c
  56. 1 1
      wpa_supplicant/ctrl_iface_named_pipe.c
  57. 1 1
      wpa_supplicant/ctrl_iface_udp.c
  58. 2 2
      wpa_supplicant/events.c
  59. 2 2
      wpa_supplicant/mlme.c
  60. 1 1
      wpa_supplicant/nmake.mak
  61. 2 2
      wpa_supplicant/sme.c
  62. 1 1
      wpa_supplicant/symbian/wpa_supplicant.mmp
  63. 1 1
      wpa_supplicant/tests/test_wpa.c
  64. 2 2
      wpa_supplicant/vs2005/eapol_test/eapol_test.vcproj
  65. 2 2
      wpa_supplicant/vs2005/wpa_cli/wpa_cli.vcproj
  66. 2 2
      wpa_supplicant/vs2005/wpa_supplicant/wpa_supplicant.vcproj
  67. 2 2
      wpa_supplicant/vs2005/wpasvc/wpasvc.vcproj
  68. 2 2
      wpa_supplicant/wpa_cli.c
  69. 1 1
      wpa_supplicant/wpa_gui-qt4/addinterface.cpp
  70. 1 1
      wpa_supplicant/wpa_gui-qt4/peers.cpp
  71. 1 1
      wpa_supplicant/wpa_gui-qt4/userdatarequest.cpp
  72. 1 1
      wpa_supplicant/wpa_gui-qt4/wpa_gui.pro
  73. 1 1
      wpa_supplicant/wpa_gui-qt4/wpagui.cpp
  74. 1 1
      wpa_supplicant/wpa_gui/scanresults.ui
  75. 1 1
      wpa_supplicant/wpa_gui/userdatarequest.ui
  76. 1 1
      wpa_supplicant/wpa_gui/wpa_gui.pro
  77. 1 1
      wpa_supplicant/wpa_gui/wpagui.ui
  78. 3 3
      wpa_supplicant/wpa_priv.c
  79. 3 3
      wpa_supplicant/wpa_supplicant.c
  80. 3 3
      wpa_supplicant/wpas_glue.c
  81. 4 4
      wpa_supplicant/wps_supplicant.c
  82. 0 2
      wpa_supplicant/xcode/wpa_supplicant.xcodeproj/project.pbxproj

+ 0 - 1
hostapd/Makefile

@@ -13,7 +13,6 @@ CFLAGS += -DHOSTAPD_DUMP_STATE
 CFLAGS += -I../src
 CFLAGS += -I../src/crypto
 CFLAGS += -I../src/utils
-CFLAGS += -I../src/common
 
 # Uncomment following line and set the path to your kernel tree include
 # directory if your C library does not include all header files.

+ 1 - 1
hostapd/config.c

@@ -23,7 +23,7 @@
 #include "sha1.h"
 #include "eap_server/eap.h"
 #include "radius/radius_client.h"
-#include "wpa_common.h"
+#include "common/wpa_common.h"
 #include "wpa.h"
 #include "uuid.h"
 #include "eap_common/eap_wsc_common.h"

+ 2 - 2
hostapd/config.h

@@ -16,9 +16,9 @@
 #ifndef CONFIG_H
 #define CONFIG_H
 
-#include "defs.h"
+#include "common/defs.h"
 #include "ip_addr.h"
-#include "wpa_common.h"
+#include "common/wpa_common.h"
 
 typedef u8 macaddr[ETH_ALEN];
 

+ 1 - 1
hostapd/eapol_sm.h

@@ -15,7 +15,7 @@
 #ifndef EAPOL_SM_H
 #define EAPOL_SM_H
 
-#include "defs.h"
+#include "common/defs.h"
 #include "radius/radius.h"
 
 /* IEEE Std 802.1X-2004, Ch. 8.2 */

+ 1 - 2
hostapd/hostapd.c

@@ -22,7 +22,7 @@
 #include "accounting.h"
 #include "eapol_sm.h"
 #include "iapp.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "ieee802_11_auth.h"
 #include "sta_info.h"
 #include "ap_list.h"
@@ -37,7 +37,6 @@
 #include "eap_server/eap_sim_db.h"
 #include "eap_server/eap.h"
 #include "eap_server/tncs.h"
-#include "version.h"
 #include "l2_packet/l2_packet.h"
 #include "wps_hostapd.h"
 #include "tkip_countermeasures.h"

+ 2 - 2
hostapd/hostapd_cli.c

@@ -15,9 +15,9 @@
 #include "includes.h"
 #include <dirent.h>
 
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 #include "common.h"
-#include "version.h"
+#include "common/version.h"
 
 
 static const char *hostapd_cli_version =

+ 2 - 2
hostapd/hw_features.c

@@ -17,8 +17,8 @@
 #include "includes.h"
 
 #include "hostapd.h"
-#include "ieee802_11_defs.h"
-#include "ieee802_11_common.h"
+#include "common/ieee802_11_defs.h"
+#include "common/ieee802_11_common.h"
 #include "eloop.h"
 #include "hw_features.h"
 #include "driver_i.h"

+ 1 - 1
hostapd/ieee802_11.c

@@ -36,7 +36,7 @@
 #include "accounting.h"
 #include "driver_i.h"
 #include "mlme.h"
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 
 
 u8 * hostapd_eid_supp_rates(struct hostapd_data *hapd, u8 *eid)

+ 2 - 2
hostapd/ieee802_11.h

@@ -16,8 +16,8 @@
 #ifndef IEEE802_11_H
 #define IEEE802_11_H
 
-#include "ieee802_11_defs.h"
-#include "ieee802_11_common.h"
+#include "common/ieee802_11_defs.h"
+#include "common/ieee802_11_common.h"
 
 struct hostapd_iface;
 struct hostapd_data;

+ 2 - 2
hostapd/ieee802_1x.c

@@ -30,8 +30,8 @@
 #include "driver_i.h"
 #include "hw_features.h"
 #include "eap_server/eap.h"
-#include "ieee802_11_defs.h"
-#include "wpa_ctrl.h"
+#include "common/ieee802_11_defs.h"
+#include "common/wpa_ctrl.h"
 
 
 static void ieee802_1x_finished(struct hostapd_data *hapd,

+ 1 - 1
hostapd/main.c

@@ -19,7 +19,7 @@
 
 #include "eloop.h"
 #include "hostapd.h"
-#include "version.h"
+#include "common/version.h"
 #include "config.h"
 #include "tls.h"
 #include "eap_server/eap.h"

+ 0 - 1
hostapd/peerkey.c

@@ -19,7 +19,6 @@
 #include "sha1.h"
 #include "sha256.h"
 #include "wpa.h"
-#include "defs.h"
 #include "wpa_auth_i.h"
 #include "wpa_auth_ie.h"
 

+ 1 - 1
hostapd/preauth.c

@@ -22,7 +22,7 @@
 #include "ieee802_1x.h"
 #include "eloop.h"
 #include "sta_info.h"
-#include "wpa_common.h"
+#include "common/wpa_common.h"
 #include "eapol_sm.h"
 #include "wpa.h"
 #include "preauth.h"

+ 1 - 1
hostapd/sta_info.h

@@ -18,7 +18,7 @@
 #include "sta_flags.h"
 
 #ifdef CONFIG_IEEE80211N
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #endif /* CONFIG_IEEE80211N */
 
 /* Maximum number of supported rates (from both Supported Rates and Extended

+ 1 - 1
hostapd/tkip_countermeasures.c

@@ -20,7 +20,7 @@
 #include "sta_info.h"
 #include "mlme.h"
 #include "wpa.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "tkip_countermeasures.h"
 
 

+ 3 - 3
hostapd/wpa.h

@@ -15,9 +15,9 @@
 #ifndef WPA_AUTH_H
 #define WPA_AUTH_H
 
-#include "defs.h"
-#include "eapol_common.h"
-#include "wpa_common.h"
+#include "common/defs.h"
+#include "common/eapol_common.h"
+#include "common/wpa_common.h"
 
 #ifdef _MSC_VER
 #pragma pack(push, 1)

+ 0 - 1
hostapd/wpa_ft.c

@@ -20,7 +20,6 @@
 #include "aes_wrap.h"
 #include "ieee802_11.h"
 #include "wme.h"
-#include "defs.h"
 #include "wpa_auth_i.h"
 #include "wpa_auth_ie.h"
 

+ 3 - 3
hostapd/wps_hostapd.c

@@ -18,9 +18,9 @@
 #include "driver_i.h"
 #include "eloop.h"
 #include "uuid.h"
-#include "wpa_ctrl.h"
-#include "ieee802_11_defs.h"
-#include "ieee802_11_common.h"
+#include "common/wpa_ctrl.h"
+#include "common/ieee802_11_defs.h"
+#include "common/ieee802_11_common.h"
 #include "sta_info.h"
 #include "eapol_sm.h"
 #include "wps/wps.h"

+ 1 - 1
src/drivers/driver.h

@@ -17,7 +17,7 @@
 
 #define WPA_SUPPLICANT_DRIVER_VERSION 4
 
-#include "defs.h"
+#include "common/defs.h"
 
 #define HOSTAPD_CHAN_DISABLED 0x00000001
 #define HOSTAPD_CHAN_PASSIVE_SCAN 0x00000002

+ 1 - 1
src/drivers/driver_atheros.c

@@ -67,7 +67,7 @@
 #include "l2_packet/l2_packet.h"
 
 #include "../hostapd/wps_hostapd.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 
 
 struct madwifi_driver_data {

+ 1 - 1
src/drivers/driver_bsd.c

@@ -19,7 +19,7 @@
 #include "common.h"
 #include "driver.h"
 #include "eloop.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 
 #include <net/if.h>
 

+ 1 - 1
src/drivers/driver_hostap.c

@@ -29,7 +29,7 @@
 #include <netpacket/packet.h>
 
 #include "priv_netlink.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "../../hostapd/hostapd.h"
 #include "../../hostapd/hw_features.h"
 #include "../../hostapd/sta_flags.h"

+ 1 - 1
src/drivers/driver_madwifi.c

@@ -26,7 +26,7 @@
 #include "driver.h"
 #include "driver_wext.h"
 #include "eloop.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "wireless_copy.h"
 
 /*

+ 1 - 1
src/drivers/driver_ndis.c

@@ -40,7 +40,7 @@ int close(int fd);
 #include "common.h"
 #include "driver.h"
 #include "eloop.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "driver_ndis.h"
 
 int wpa_driver_register_event_cb(struct wpa_driver_ndis_data *drv);

+ 1 - 1
src/drivers/driver_nl80211.c

@@ -28,7 +28,7 @@
 #include "common.h"
 #include "driver.h"
 #include "eloop.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 
 #if defined(CONFIG_AP) || defined(HOSTAPD)
 #include <netpacket/packet.h>

+ 1 - 1
src/drivers/driver_none.c

@@ -14,7 +14,7 @@
 
 #include "includes.h"
 
-#include "../hostapd/hostapd.h"
+#include "common.h"
 #include "driver.h"
 
 

+ 1 - 1
src/drivers/driver_privsep.c

@@ -18,7 +18,7 @@
 #include "common.h"
 #include "driver.h"
 #include "eloop.h"
-#include "privsep_commands.h"
+#include "common/privsep_commands.h"
 
 
 struct wpa_driver_privsep_data {

+ 2 - 2
src/drivers/driver_ps3.c

@@ -16,11 +16,11 @@
 #include <sys/ioctl.h>
 #include "wireless_copy.h"
 #include "common.h"
-#include "wpa_common.h"
+#include "common/wpa_common.h"
 #include "driver.h"
 #include "eloop.h"
 #include "driver_wext.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 
 static int wpa_driver_ps3_set_wpa_key(struct wpa_driver_wext_data *drv,
 				struct wpa_driver_associate_params *params)

+ 1 - 1
src/drivers/driver_ralink.c

@@ -22,7 +22,7 @@
 #include "driver.h"
 #include "l2_packet/l2_packet.h"
 #include "eloop.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "priv_netlink.h"
 #include "driver_ralink.h"
 

+ 1 - 1
src/drivers/driver_test.c

@@ -32,7 +32,7 @@
 #include "l2_packet/l2_packet.h"
 #include "eloop.h"
 #include "sha1.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 
 #include "../../hostapd/hostapd.h"
 #include "../../hostapd/wpa.h"

+ 2 - 2
src/drivers/driver_wext.c

@@ -28,8 +28,8 @@
 #include "eloop.h"
 #include "priv_netlink.h"
 #include "driver_wext.h"
-#include "ieee802_11_defs.h"
-#include "wpa_common.h"
+#include "common/ieee802_11_defs.h"
+#include "common/wpa_common.h"
 
 
 static int wpa_driver_wext_flush_pmkid(void *priv);

+ 0 - 0
src/common/nl80211_copy.h → src/drivers/nl80211_copy.h


+ 1 - 1
src/drivers/scan_helpers.c

@@ -16,7 +16,7 @@
 
 #include "common.h"
 #include "drivers/driver.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 
 
 const u8 * wpa_scan_get_ie(const struct wpa_scan_res *res, u8 ie)

+ 0 - 0
src/common/wireless_copy.h → src/drivers/wireless_copy.h


+ 1 - 1
src/eap_peer/eap.c

@@ -29,7 +29,7 @@
 #include "tls.h"
 #include "crypto.h"
 #include "pcsc_funcs.h"
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 #include "state_machine.h"
 #include "eap_common/eap_wsc_common.h"
 

+ 1 - 1
src/eap_peer/eap.h

@@ -15,7 +15,7 @@
 #ifndef EAP_H
 #define EAP_H
 
-#include "defs.h"
+#include "common/defs.h"
 #include "eap_common/eap_defs.h"
 #include "eap_peer/eap_methods.h"
 

+ 1 - 1
src/eap_peer/eap_mschapv2.c

@@ -25,7 +25,7 @@
 #include "eap_i.h"
 #include "eap_config.h"
 #include "ms_funcs.h"
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 #include "mschapv2.h"
 
 

+ 1 - 1
src/eap_server/eap.h

@@ -15,7 +15,7 @@
 #ifndef EAP_H
 #define EAP_H
 
-#include "defs.h"
+#include "common/defs.h"
 #include "eap_common/eap_defs.h"
 #include "eap_server/eap_methods.h"
 #include "wpabuf.h"

+ 1 - 1
src/eapol_supp/eapol_supp_sm.c

@@ -18,7 +18,7 @@
 #include "eapol_supp_sm.h"
 #include "eap_peer/eap.h"
 #include "eloop.h"
-#include "eapol_common.h"
+#include "common/eapol_common.h"
 #include "md5.h"
 #include "crypto.h"
 #include "state_machine.h"

+ 1 - 1
src/eapol_supp/eapol_supp_sm.h

@@ -15,7 +15,7 @@
 #ifndef EAPOL_SUPP_SM_H
 #define EAPOL_SUPP_SM_H
 
-#include "defs.h"
+#include "common/defs.h"
 
 typedef enum { Unauthorized, Authorized } PortStatus;
 typedef enum { Auto, ForceUnauthorized, ForceAuthorized } PortControl;

+ 1 - 1
src/l2_packet/l2_packet_privsep.c

@@ -18,7 +18,7 @@
 #include "common.h"
 #include "eloop.h"
 #include "l2_packet.h"
-#include "privsep_commands.h"
+#include "common/privsep_commands.h"
 
 
 struct l2_packet_data {

+ 0 - 1
src/radius/radius_server.c

@@ -18,7 +18,6 @@
 #include "common.h"
 #include "radius.h"
 #include "eloop.h"
-#include "defs.h"
 #include "eap_server/eap.h"
 #include "radius_server.h"
 

+ 1 - 1
src/rsn_supp/peerkey.c

@@ -23,7 +23,7 @@
 #include "wpa.h"
 #include "wpa_i.h"
 #include "wpa_ie.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "peerkey.h"
 
 

+ 1 - 1
src/rsn_supp/preauth.c

@@ -22,7 +22,7 @@
 #include "preauth.h"
 #include "pmksa_cache.h"
 #include "wpa_i.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 
 
 #if defined(IEEE8021X_EAPOL) && !defined(CONFIG_NO_WPA2)

+ 1 - 1
src/rsn_supp/wpa.c

@@ -25,7 +25,7 @@
 #include "wpa_i.h"
 #include "wpa_ie.h"
 #include "peerkey.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 
 
 /**

+ 3 - 3
src/rsn_supp/wpa.h

@@ -15,9 +15,9 @@
 #ifndef WPA_H
 #define WPA_H
 
-#include "defs.h"
-#include "eapol_common.h"
-#include "wpa_common.h"
+#include "common/defs.h"
+#include "common/eapol_common.h"
+#include "common/wpa_common.h"
 
 struct wpa_sm;
 struct eapol_sm;

+ 2 - 2
src/rsn_supp/wpa_ft.c

@@ -19,8 +19,8 @@
 #include "wpa_i.h"
 #include "wpa_ie.h"
 #include "aes_wrap.h"
-#include "ieee802_11_defs.h"
-#include "ieee802_11_common.h"
+#include "common/ieee802_11_defs.h"
+#include "common/ieee802_11_common.h"
 
 #ifdef CONFIG_IEEE80211R
 

+ 1 - 1
src/rsn_supp/wpa_ie.c

@@ -17,7 +17,7 @@
 #include "common.h"
 #include "wpa.h"
 #include "pmksa_cache.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "wpa_i.h"
 #include "wpa_ie.h"
 

+ 1 - 1
src/wps/wps.c

@@ -18,7 +18,7 @@
 #include "dh_group5.h"
 #include "wps_i.h"
 #include "wps_dev_attr.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 
 
 /**

+ 1 - 1
src/wps/wps_registrar.c

@@ -17,7 +17,7 @@
 #include "common.h"
 #include "sha256.h"
 #include "base64.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "eloop.h"
 #include "wps_i.h"
 #include "wps_dev_attr.h"

+ 0 - 1
wpa_supplicant/Makefile

@@ -12,7 +12,6 @@ export BINDIR ?= /usr/local/sbin/
 CFLAGS += -I../src
 CFLAGS += -I../src/crypto
 CFLAGS += -I../src/utils
-CFLAGS += -I../src/common
 CFLAGS += -I../src/rsn_supp
 
 ALL=wpa_supplicant wpa_passphrase wpa_cli

+ 1 - 1
wpa_supplicant/config_ssid.h

@@ -15,7 +15,7 @@
 #ifndef CONFIG_SSID_H
 #define CONFIG_SSID_H
 
-#include "defs.h"
+#include "common/defs.h"
 #include "eap_peer/eap_config.h"
 
 #define MAX_SSID_LEN 32

+ 2 - 2
wpa_supplicant/ctrl_iface.c

@@ -25,9 +25,9 @@
 #include "l2_packet/l2_packet.h"
 #include "preauth.h"
 #include "pmksa_cache.h"
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 #include "eap_peer/eap.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "wps_supplicant.h"
 #include "wps/wps.h"
 #include "ibss_rsn.h"

+ 1 - 1
wpa_supplicant/ctrl_iface_dbus_handlers.c

@@ -23,7 +23,7 @@
 #include "notify.h"
 #include "eap_peer/eap_methods.h"
 #include "dbus_dict_helpers.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "wpas_glue.h"
 #include "eapol_supp/eapol_supp_sm.h"
 #include "wps_supplicant.h"

+ 1 - 1
wpa_supplicant/ctrl_iface_dbus_new_handlers.c

@@ -25,7 +25,7 @@
 #include "notify.h"
 #include "eap_peer/eap_methods.h"
 #include "dbus_dict_helpers.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "wpas_glue.h"
 #include "eapol_supp/eapol_supp_sm.h"
 #include "wps_supplicant.h"

+ 1 - 1
wpa_supplicant/ctrl_iface_named_pipe.c

@@ -20,7 +20,7 @@
 #include "eapol_supp/eapol_supp_sm.h"
 #include "wpa_supplicant_i.h"
 #include "ctrl_iface.h"
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 
 #ifdef __MINGW32_VERSION
 /* mingw-w32api v3.1 does not yet include sddl.h, so define needed parts here

+ 1 - 1
wpa_supplicant/ctrl_iface_udp.c

@@ -20,7 +20,7 @@
 #include "eapol_supp/eapol_supp_sm.h"
 #include "wpa_supplicant_i.h"
 #include "ctrl_iface.h"
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 
 
 #define COOKIE_LEN 8

+ 2 - 2
wpa_supplicant/events.c

@@ -25,10 +25,10 @@
 #include "pcsc_funcs.h"
 #include "preauth.h"
 #include "pmksa_cache.h"
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 #include "eap_peer/eap.h"
 #include "notify.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "blacklist.h"
 #include "wpas_glue.h"
 #include "wps_supplicant.h"

+ 2 - 2
wpa_supplicant/mlme.c

@@ -23,8 +23,8 @@
 #include "notify.h"
 #include "driver_i.h"
 #include "wpa.h"
-#include "ieee802_11_defs.h"
-#include "ieee802_11_common.h"
+#include "common/ieee802_11_defs.h"
+#include "common/ieee802_11_common.h"
 #include "mlme.h"
 
 

+ 1 - 1
wpa_supplicant/nmake.mak

@@ -48,7 +48,7 @@ CFLAGS = $(CFLAGS) /DPCSC_FUNCS
 CFLAGS = $(CFLAGS) /DCONFIG_CTRL_IFACE
 CFLAGS = $(CFLAGS) /DCONFIG_CTRL_IFACE_NAMED_PIPE
 CFLAGS = $(CFLAGS) /DCONFIG_DRIVER_NDIS
-CFLAGS = $(CFLAGS) /I..\src /I..\src\utils /I..\src\common /I..\src\crypto
+CFLAGS = $(CFLAGS) /I..\src /I..\src\utils /I..\src\crypto
 CFLAGS = $(CFLAGS) /I..\src\rsn_supp /I..\src\eapol_supp /I.
 CFLAGS = $(CFLAGS) /DWIN32
 CFLAGS = $(CFLAGS) /Fo$(OBJDIR)\\ /c

+ 2 - 2
wpa_supplicant/sme.c

@@ -15,9 +15,9 @@
 #include "includes.h"
 
 #include "common.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "eapol_supp/eapol_supp_sm.h"
-#include "wpa_common.h"
+#include "common/wpa_common.h"
 #include "wpa.h"
 #include "pmksa_cache.h"
 #include "config.h"

+ 1 - 1
wpa_supplicant/symbian/wpa_supplicant.mmp

@@ -5,7 +5,7 @@ TARGETTYPE	exe
 
 SYSTEMINCLUDE \epoc32\include \epoc32\include\variant \epoc32\include\ecom \epoc32\include\libc
 
-USERINCLUDE	.. ..\..\src ..\..\src\utils ..\..\src\common ..\..\src\crypto ..\..\src\rsn_supp
+USERINCLUDE	.. ..\..\src ..\..\src\utils ..\..\src\crypto ..\..\src\rsn_supp
 
 SOURCEPATH	..
 SOURCE		main_symbian.cpp

+ 1 - 1
wpa_supplicant/tests/test_wpa.c

@@ -16,7 +16,7 @@
 
 #include "common.h"
 #include "eloop.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "../config.h"
 #include "wpa.h"
 #include "wpa_ie.h"

+ 2 - 2
wpa_supplicant/vs2005/eapol_test/eapol_test.vcproj

@@ -40,7 +40,7 @@
 			<Tool
 				Name="VCCLCompilerTool"
 				Optimization="0"
-				AdditionalIncludeDirectories="..\..;..\..\..\src;..\..\..\src\utils;..\..\..\src\common;..\..\..\src\crypto;..\..\..\src\rsn_supp;C:\dev\WpdPack\include;C:\dev\openssl\include"
+				AdditionalIncludeDirectories="..\..;..\..\..\src;..\..\..\src\utils;..\..\..\src\crypto;..\..\..\src\rsn_supp;C:\dev\WpdPack\include;C:\dev\openssl\include"
 				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;CONFIG_WIN32_DEFAULTS"
 				MinimalRebuild="true"
 				BasicRuntimeChecks="3"
@@ -119,7 +119,7 @@
 			/>
 			<Tool
 				Name="VCCLCompilerTool"
-				AdditionalIncludeDirectories="..\..;..\..\..\src;..\..\..\src\utils;..\..\..\src\common;..\..\..\src\crypto;..\..\..\src\rsn_supp;C:\dev\WpdPack\include;C:\dev\openssl\include"
+				AdditionalIncludeDirectories="..\..;..\..\..\src;..\..\..\src\utils;..\..\..\src\crypto;..\..\..\src\rsn_supp;C:\dev\WpdPack\include;C:\dev\openssl\include"
 				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;CONFIG_WIN32_DEFAULTS"
 				RuntimeLibrary="2"
 				UsePrecompiledHeader="0"

+ 2 - 2
wpa_supplicant/vs2005/wpa_cli/wpa_cli.vcproj

@@ -40,7 +40,7 @@
 			<Tool
 				Name="VCCLCompilerTool"
 				Optimization="0"
-				AdditionalIncludeDirectories="..\..\..\src\utils;..\..\..\src\common"
+				AdditionalIncludeDirectories="..\..\..\src\utils"
 				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;CONFIG_WIN32_DEFAULTS"
 				MinimalRebuild="true"
 				BasicRuntimeChecks="3"
@@ -118,7 +118,7 @@
 			/>
 			<Tool
 				Name="VCCLCompilerTool"
-				AdditionalIncludeDirectories="..\..\..\src\utils;..\..\..\src\common"
+				AdditionalIncludeDirectories="..\..\..\src\utils"
 				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;CONFIG_WIN32_DEFAULTS"
 				RuntimeLibrary="2"
 				UsePrecompiledHeader="0"

+ 2 - 2
wpa_supplicant/vs2005/wpa_supplicant/wpa_supplicant.vcproj

@@ -40,7 +40,7 @@
 			<Tool
 				Name="VCCLCompilerTool"
 				Optimization="0"
-				AdditionalIncludeDirectories="..\..;..\..\..\src;..\..\..\src\utils;..\..\..\src\common;..\..\..\src\crypto;..\..\..\src\rsn_supp;C:\dev\WpdPack\include;C:\dev\openssl\include"
+				AdditionalIncludeDirectories="..\..;..\..\..\src;..\..\..\src\utils;..\..\..\src\crypto;..\..\..\src\rsn_supp;C:\dev\WpdPack\include;C:\dev\openssl\include"
 				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;CONFIG_WIN32_DEFAULTS"
 				MinimalRebuild="true"
 				BasicRuntimeChecks="3"
@@ -119,7 +119,7 @@
 			/>
 			<Tool
 				Name="VCCLCompilerTool"
-				AdditionalIncludeDirectories="..\..;..\..\..\src;..\..\..\src\utils;..\..\..\src\common;..\..\..\src\crypto;..\..\..\src\rsn_supp;C:\dev\WpdPack\include;C:\dev\openssl\include"
+				AdditionalIncludeDirectories="..\..;..\..\..\src;..\..\..\src\utils;..\..\..\src\crypto;..\..\..\src\rsn_supp;C:\dev\WpdPack\include;C:\dev\openssl\include"
 				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;CONFIG_WIN32_DEFAULTS"
 				RuntimeLibrary="2"
 				UsePrecompiledHeader="0"

+ 2 - 2
wpa_supplicant/vs2005/wpasvc/wpasvc.vcproj

@@ -40,7 +40,7 @@
 			<Tool
 				Name="VCCLCompilerTool"
 				Optimization="0"
-				AdditionalIncludeDirectories="..\..;..\..\..\src;..\..\..\src\utils;..\..\..\src\common;..\..\..\src\crypto;..\..\..\src\rsn_supp;C:\dev\WpdPack\include;C:\dev\openssl\include"
+				AdditionalIncludeDirectories="..\..;..\..\..\src;..\..\..\src\utils;..\..\..\src\crypto;..\..\..\src\rsn_supp;C:\dev\WpdPack\include;C:\dev\openssl\include"
 				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;CONFIG_WIN32_DEFAULTS"
 				MinimalRebuild="true"
 				BasicRuntimeChecks="3"
@@ -119,7 +119,7 @@
 			/>
 			<Tool
 				Name="VCCLCompilerTool"
-				AdditionalIncludeDirectories="..\..;..\..\..\src;..\..\..\src\utils;..\..\..\src\common;..\..\..\src\crypto;..\..\..\src\rsn_supp;C:\dev\WpdPack\include;C:\dev\openssl\include"
+				AdditionalIncludeDirectories="..\..;..\..\..\src;..\..\..\src\utils;..\..\..\src\crypto;..\..\..\src\rsn_supp;C:\dev\WpdPack\include;C:\dev\openssl\include"
 				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;CONFIG_WIN32_DEFAULTS"
 				RuntimeLibrary="2"
 				UsePrecompiledHeader="0"

+ 2 - 2
wpa_supplicant/wpa_cli.c

@@ -24,9 +24,9 @@
 #include <readline/history.h>
 #endif /* CONFIG_READLINE */
 
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 #include "common.h"
-#include "version.h"
+#include "common/version.h"
 
 
 static const char *wpa_cli_version =

+ 1 - 1
wpa_supplicant/wpa_gui-qt4/addinterface.cpp

@@ -13,7 +13,7 @@
  */
 
 #include <cstdio>
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 
 #include <QMessageBox>
 

+ 1 - 1
wpa_supplicant/wpa_gui-qt4/peers.cpp

@@ -16,7 +16,7 @@
 #include <QImageReader>
 #include <QMessageBox>
 
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 #include "wpagui.h"
 #include "stringquery.h"
 #include "peers.h"

+ 1 - 1
wpa_supplicant/wpa_gui-qt4/userdatarequest.cpp

@@ -14,7 +14,7 @@
 
 #include "userdatarequest.h"
 #include "wpagui.h"
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 
 
 UserDataRequest::UserDataRequest(QWidget *parent, const char *, bool,

+ 1 - 1
wpa_supplicant/wpa_gui-qt4/wpa_gui.pro

@@ -27,7 +27,7 @@ win32 {
   SOURCES += ../../src/utils/os_unix.c
 }
 
-INCLUDEPATH	+= . .. ../../src/utils ../../src/common
+INCLUDEPATH	+= . .. ../../src ../../src/utils
 
 HEADERS	+= wpamsg.h \
 	wpagui.h \

+ 1 - 1
wpa_supplicant/wpa_gui-qt4/wpagui.cpp

@@ -29,7 +29,7 @@
 
 #include "wpagui.h"
 #include "dirent.h"
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 #include "userdatarequest.h"
 #include "networkconfig.h"
 

+ 1 - 1
wpa_supplicant/wpa_gui/scanresults.ui

@@ -151,7 +151,7 @@
     </connection>
 </connections>
 <includes>
-    <include location="local" impldecl="in implementation">wpa_ctrl.h</include>
+    <include location="local" impldecl="in implementation">common/wpa_ctrl.h</include>
     <include location="local" impldecl="in implementation">wpagui.h</include>
     <include location="local" impldecl="in implementation">networkconfig.h</include>
     <include location="local" impldecl="in implementation">scanresults.ui.h</include>

+ 1 - 1
wpa_supplicant/wpa_gui/userdatarequest.ui

@@ -140,7 +140,7 @@
     </connection>
 </connections>
 <includes>
-    <include location="local" impldecl="in implementation">wpa_ctrl.h</include>
+    <include location="local" impldecl="in implementation">common/wpa_ctrl.h</include>
     <include location="local" impldecl="in implementation">wpagui.h</include>
     <include location="local" impldecl="in implementation">userdatarequest.ui.h</include>
 </includes>

+ 1 - 1
wpa_supplicant/wpa_gui/wpa_gui.pro

@@ -19,7 +19,7 @@ win32 {
   SOURCES += ../../src/utils/os_unix.c
 }
 
-INCLUDEPATH	+= . .. ../../src/utils ../../src/common
+INCLUDEPATH	+= . .. ../../src ../../src/utils
 
 HEADERS	+= wpamsg.h
 

+ 1 - 1
wpa_supplicant/wpa_gui/wpagui.ui

@@ -414,7 +414,7 @@
     <include location="local" impldecl="in declaration">wpamsg.h</include>
     <include location="local" impldecl="in declaration">eventhistory.h</include>
     <include location="local" impldecl="in declaration">scanresults.h</include>
-    <include location="local" impldecl="in implementation">wpa_ctrl.h</include>
+    <include location="local" impldecl="in implementation">common/wpa_ctrl.h</include>
     <include location="global" impldecl="in implementation">dirent.h</include>
     <include location="global" impldecl="in implementation">qmessagebox.h</include>
     <include location="global" impldecl="in implementation">qapplication.h</include>

+ 3 - 3
wpa_supplicant/wpa_priv.c

@@ -21,11 +21,11 @@
 
 #include "common.h"
 #include "eloop.h"
-#include "version.h"
+#include "common/version.h"
 #include "drivers/driver.h"
 #include "l2_packet/l2_packet.h"
-#include "privsep_commands.h"
-#include "ieee802_11_defs.h"
+#include "common/privsep_commands.h"
+#include "common/ieee802_11_defs.h"
 
 
 struct wpa_priv_interface {

+ 3 - 3
wpa_supplicant/wpa_supplicant.c

@@ -30,12 +30,12 @@
 #include "driver_i.h"
 #include "ctrl_iface.h"
 #include "pcsc_funcs.h"
-#include "version.h"
+#include "common/version.h"
 #include "preauth.h"
 #include "pmksa_cache.h"
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 #include "mlme.h"
-#include "ieee802_11_defs.h"
+#include "common/ieee802_11_defs.h"
 #include "blacklist.h"
 #include "wpas_glue.h"
 #include "wps_supplicant.h"

+ 3 - 3
wpa_supplicant/wpas_glue.c

@@ -20,14 +20,14 @@
 #include "eloop.h"
 #include "config.h"
 #include "l2_packet/l2_packet.h"
-#include "wpa_common.h"
+#include "common/wpa_common.h"
 #include "wpa_supplicant_i.h"
 #include "driver_i.h"
 #include "pmksa_cache.h"
 #include "mlme.h"
 #include "sme.h"
-#include "ieee802_11_defs.h"
-#include "wpa_ctrl.h"
+#include "common/ieee802_11_defs.h"
+#include "common/wpa_ctrl.h"
 #include "wpas_glue.h"
 #include "wps_supplicant.h"
 

+ 4 - 4
wpa_supplicant/wps_supplicant.c

@@ -15,16 +15,16 @@
 #include "includes.h"
 
 #include "common.h"
-#include "ieee802_11_defs.h"
-#include "ieee802_11_common.h"
-#include "wpa_common.h"
+#include "common/ieee802_11_defs.h"
+#include "common/ieee802_11_common.h"
+#include "common/wpa_common.h"
 #include "config.h"
 #include "eap_peer/eap.h"
 #include "wpa_supplicant_i.h"
 #include "driver_i.h"
 #include "eloop.h"
 #include "uuid.h"
-#include "wpa_ctrl.h"
+#include "common/wpa_ctrl.h"
 #include "notify.h"
 #include "eap_common/eap_wsc_common.h"
 #include "blacklist.h"

+ 0 - 2
wpa_supplicant/xcode/wpa_supplicant.xcodeproj/project.pbxproj

@@ -455,7 +455,6 @@
 					../../src,
 					../../src/crypto,
 					../../src/utils,
-					../../src/common,
 					../../src/rsn_supp,
 				);
 				ONLY_ACTIVE_ARCH = YES;
@@ -479,7 +478,6 @@
 					../../src,
 					../../src/crypto,
 					../../src/utils,
-					../../src/common,
 					../../src/rsn_supp,
 				);
 				OTHER_CFLAGS = "-DCONFIG_XCODE_DEFAULTS";