]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Move generic AP functionality implementation into src/ap
authorJouni Malinen <j@w1.fi>
Thu, 24 Dec 2009 23:12:50 +0000 (01:12 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 24 Dec 2009 23:12:50 +0000 (01:12 +0200)
This code can be shared by both hostapd and wpa_supplicant and this
is an initial step in getting the generic code moved to be under the
src directories. Couple of generic files still remain under the
hostapd directory due to direct dependencies to files there. Once the
dependencies have been removed, they will also be moved to the src/ap
directory to allow wpa_supplicant to be built without requiring anything
from the hostapd directory.

55 files changed:
hostapd/Makefile
hostapd/ap_drv_ops.c
hostapd/config_file.c
hostapd/ctrl_iface.c
hostapd/ctrl_iface_ap.c
hostapd/driver_i.h
hostapd/drv_callbacks.c
hostapd/dump_state.c
hostapd/hostapd.c
hostapd/hw_features.c
hostapd/iapp.c
hostapd/main.c
hostapd/wps_hostapd.c
src/Makefile
src/ap/Makefile [new file with mode: 0644]
src/ap/accounting.c [moved from hostapd/accounting.c with 100% similarity]
src/ap/accounting.h [moved from hostapd/accounting.h with 100% similarity]
src/ap/ap_list.c [moved from hostapd/ap_list.c with 98% similarity]
src/ap/ap_list.h [moved from hostapd/ap_list.h with 100% similarity]
src/ap/beacon.c [moved from hostapd/beacon.c with 99% similarity]
src/ap/beacon.h [moved from hostapd/beacon.h with 100% similarity]
src/ap/config.c [moved from hostapd/config.c with 100% similarity]
src/ap/config.h [moved from hostapd/config.h with 100% similarity]
src/ap/hostapd.h [moved from hostapd/hostapd.h with 100% similarity]
src/ap/ieee802_11.c [moved from hostapd/ieee802_11.c with 99% similarity]
src/ap/ieee802_11.h [moved from hostapd/ieee802_11.h with 100% similarity]
src/ap/ieee802_11_auth.c [moved from hostapd/ieee802_11_auth.c with 100% similarity]
src/ap/ieee802_11_auth.h [moved from hostapd/ieee802_11_auth.h with 100% similarity]
src/ap/ieee802_11_ht.c [moved from hostapd/ieee802_11_ht.c with 100% similarity]
src/ap/ieee802_1x.c [moved from hostapd/ieee802_1x.c with 99% similarity]
src/ap/ieee802_1x.h [moved from hostapd/ieee802_1x.h with 100% similarity]
src/ap/mlme.c [moved from hostapd/mlme.c with 100% similarity]
src/ap/mlme.h [moved from hostapd/mlme.h with 100% similarity]
src/ap/peerkey.c [moved from hostapd/peerkey.c with 100% similarity]
src/ap/pmksa_cache.c [moved from hostapd/pmksa_cache.c with 100% similarity]
src/ap/pmksa_cache.h [moved from hostapd/pmksa_cache.h with 100% similarity]
src/ap/preauth.c [moved from hostapd/preauth.c with 100% similarity]
src/ap/preauth.h [moved from hostapd/preauth.h with 100% similarity]
src/ap/sta_info.c [moved from hostapd/sta_info.c with 99% similarity]
src/ap/sta_info.h [moved from hostapd/sta_info.h with 100% similarity]
src/ap/tkip_countermeasures.c [moved from hostapd/tkip_countermeasures.c with 100% similarity]
src/ap/tkip_countermeasures.h [moved from hostapd/tkip_countermeasures.h with 100% similarity]
src/ap/vlan_init.c [moved from hostapd/vlan_init.c with 100% similarity]
src/ap/vlan_init.h [moved from hostapd/vlan_init.h with 100% similarity]
src/ap/wmm.c [moved from hostapd/wme.c with 99% similarity]
src/ap/wmm.h [moved from hostapd/wme.h with 100% similarity]
src/ap/wpa.c [moved from hostapd/wpa.c with 100% similarity]
src/ap/wpa.h [moved from hostapd/wpa.h with 100% similarity]
src/ap/wpa_auth_i.h [moved from hostapd/wpa_auth_i.h with 100% similarity]
src/ap/wpa_auth_ie.c [moved from hostapd/wpa_auth_ie.c with 100% similarity]
src/ap/wpa_auth_ie.h [moved from hostapd/wpa_auth_ie.h with 100% similarity]
src/ap/wpa_ft.c [moved from hostapd/wpa_ft.c with 99% similarity]
wpa_supplicant/Makefile
wpa_supplicant/ap.c
wpa_supplicant/ibss_rsn.c

index f3e4275234418a0c92fd20298b4142cdfe75c599..b50a230b1220700d820663a8baf339e7aefe3d0f 100644 (file)
@@ -32,14 +32,23 @@ CFLAGS += -DCONFIG_NATIVE_WINDOWS
 LIBS += -lws2_32
 endif
 
-OBJS = hostapd.o main.o ieee802_1x.o \
-       config.o config_file.o ieee802_11_auth.o \
-       sta_info.o wpa.o \
-       preauth.o pmksa_cache.o \
-       drv_callbacks.o \
-       tkip_countermeasures.o \
-       mlme.o wpa_auth_ie.o
+OBJS = hostapd.o
+OBJS += main.o
+OBJS += config_file.o
+OBJS += drv_callbacks.o
 OBJS += ap_drv_ops.o
+
+OBJS += ../src/ap/ieee802_1x.o
+OBJS += ../src/ap/config.o
+OBJS += ../src/ap/ieee802_11_auth.o
+OBJS += ../src/ap/sta_info.o
+OBJS += ../src/ap/wpa.o
+OBJS += ../src/ap/tkip_countermeasures.o
+OBJS += ../src/ap/mlme.o
+OBJS += ../src/ap/wpa_auth_ie.o
+OBJS += ../src/ap/preauth.o
+OBJS += ../src/ap/pmksa_cache.o
+
 NEED_RC4=y
 NEED_AES=y
 NEED_MD5=y
@@ -93,13 +102,13 @@ endif
 ifdef CONFIG_NO_ACCOUNTING
 CFLAGS += -DCONFIG_NO_ACCOUNTING
 else
-OBJS += accounting.o
+OBJS += ../src/ap/accounting.o
 endif
 
 ifdef CONFIG_NO_VLAN
 CFLAGS += -DCONFIG_NO_VLAN
 else
-OBJS += vlan_init.o
+OBJS += ../src/ap/vlan_init.o
 endif
 
 ifdef CONFIG_NO_CTRL_IFACE
@@ -125,7 +134,7 @@ endif
 
 ifdef CONFIG_PEERKEY
 CFLAGS += -DCONFIG_PEERKEY
-OBJS += peerkey.o
+OBJS += ../src/ap/peerkey.o
 endif
 
 ifdef CONFIG_IEEE80211W
@@ -136,7 +145,7 @@ endif
 
 ifdef CONFIG_IEEE80211R
 CFLAGS += -DCONFIG_IEEE80211R
-OBJS += wpa_ft.o
+OBJS += ../src/ap/wpa_ft.o
 NEED_SHA256=y
 NEED_AES_OMAC1=y
 NEED_AES_UNWRAP=y
@@ -677,10 +686,13 @@ OBJS += ../src/utils/base64.o
 endif
 
 ifdef NEED_AP_MLME
-OBJS += beacon.o wme.o ap_list.o ieee802_11.o
+OBJS += ../src/ap/beacon.o
+OBJS += ../src/ap/wmm.o
+OBJS += ../src/ap/ap_list.o
+OBJS += ../src/ap/ieee802_11.o
 OBJS += hw_features.o
 ifdef CONFIG_IEEE80211N
-OBJS += ieee802_11_ht.o
+OBJS += ../src/ap/ieee802_11_ht.o
 endif
 CFLAGS += -DNEED_AP_MLME
 endif
index 26e2f8ce241496e0735c077ae25435e27af8dfe7..2324dc4af218d707384c6fe579260a017089ba8e 100644 (file)
@@ -15,9 +15,9 @@
 #include "includes.h"
 
 #include "common.h"
-#include "hostapd.h"
-#include "ieee802_11.h"
-#include "sta_info.h"
+#include "ap/hostapd.h"
+#include "ap/ieee802_11.h"
+#include "ap/sta_info.h"
 #include "driver_i.h"
 
 
index c0a59dbd304c2455253511e4c1ed7d8529c6ee9d..8983f447a6d55b18d46336f1c43e5f563794e5c3 100644 (file)
@@ -23,8 +23,9 @@
 #include "drivers/driver.h"
 #include "eap_server/eap.h"
 #include "radius/radius_client.h"
-#include "wpa.h"
-#include "config.h"
+#include "ap/wpa.h"
+#include "ap/config.h"
+#include "config_file.h"
 
 
 extern struct wpa_driver_ops *wpa_drivers[];
index c6edb42f7ba3dd6253f6711f91c30e009cad9385..d0aac0ecca7c1323f86613f558468a062dd01e39 100644 (file)
 #include <stddef.h>
 
 #include "common.h"
-#include "hostapd.h"
 #include "eloop.h"
-#include "config.h"
-#include "ieee802_1x.h"
-#include "wpa.h"
+#include "drivers/driver.h"
 #include "radius/radius_client.h"
-#include "ieee802_11.h"
+#include "ap/hostapd.h"
+#include "ap/config.h"
+#include "ap/ieee802_1x.h"
+#include "ap/wpa.h"
+#include "ap/ieee802_11.h"
+#include "ap/sta_info.h"
+#include "ap/accounting.h"
 #include "ctrl_iface.h"
-#include "sta_info.h"
-#include "accounting.h"
 #include "wps_hostapd.h"
-#include "drivers/driver.h"
 #include "ctrl_iface_ap.h"
 
 
index 2465f7028d229380c2820b7a302f83093fa4abb8..3c1f8aa2f6965fc1831e333564701f44cec45134 100644 (file)
 #include "includes.h"
 
 #include "common.h"
-#include "hostapd.h"
-#include "ieee802_1x.h"
-#include "wpa.h"
-#include "ieee802_11.h"
-#include "sta_info.h"
+#include "ap/hostapd.h"
+#include "ap/ieee802_1x.h"
+#include "ap/wpa.h"
+#include "ap/ieee802_11.h"
+#include "ap/sta_info.h"
 #include "wps_hostapd.h"
 #include "ctrl_iface_ap.h"
 
index 51aa4b1df90753bc926afd2d3a810d461e22674b..3d80ad7348697921728c1374b772b36457fc873f 100644 (file)
@@ -16,7 +16,7 @@
 #define DRIVER_I_H
 
 #include "drivers/driver.h"
-#include "config.h"
+#include "ap/config.h"
 
 static inline void *
 hostapd_driver_init(struct hostapd_data *hapd, const u8 *bssid)
index 9d63f525e46867625f8566a3f8312d5df9102d3e..9b652b31d7a918bfebd6e25b24baf955a33f33fa 100644 (file)
 #include "includes.h"
 
 #include "common.h"
-#include "hostapd.h"
-#include "driver_i.h"
-#include "ieee802_11.h"
 #include "radius/radius.h"
-#include "sta_info.h"
-#include "accounting.h"
-#include "tkip_countermeasures.h"
-#include "ieee802_1x.h"
-#include "wpa.h"
+#include "ap/hostapd.h"
+#include "ap/ieee802_11.h"
+#include "ap/sta_info.h"
+#include "ap/accounting.h"
+#include "ap/tkip_countermeasures.h"
+#include "ap/ieee802_1x.h"
+#include "ap/wpa.h"
+#include "ap/wmm.h"
+#include "driver_i.h"
 #include "iapp.h"
-#include "wme.h"
 #include "wps_hostapd.h"
 
 
index 0a191dc7993f5b5f6d0d9a8335297ddfe1cf5d58..0ef6f1cba56f728130ec48b691efedf3ae2cd8ca 100644 (file)
@@ -21,9 +21,9 @@
 #include "eapol_auth/eapol_auth_sm.h"
 #include "eapol_auth/eapol_auth_sm_i.h"
 #include "eap_server/eap.h"
-#include "hostapd.h"
-#include "config.h"
-#include "sta_info.h"
+#include "ap/hostapd.h"
+#include "ap/config.h"
+#include "ap/sta_info.h"
 
 
 static void fprint_char(FILE *f, char c)
index 07b9423cb6b8ff0944f200f39c9f2b59fef5c9c4..f480291af3d9500554af02ee10b4e2d15db2c804 100644 (file)
 #include "eap_server/eap.h"
 #include "eap_server/tncs.h"
 #include "l2_packet/l2_packet.h"
-#include "hostapd.h"
-#include "ieee802_1x.h"
-#include "beacon.h"
+#include "ap/hostapd.h"
+#include "ap/sta_info.h"
+#include "ap/accounting.h"
+#include "ap/ap_list.h"
+#include "ap/beacon.h"
+#include "ap/ieee802_1x.h"
+#include "ap/ieee802_11_auth.h"
+#include "ap/preauth.h"
+#include "ap/tkip_countermeasures.h"
+#include "ap/vlan_init.h"
+#include "ap/wpa.h"
 #include "hw_features.h"
-#include "accounting.h"
 #include "iapp.h"
-#include "ieee802_11_auth.h"
-#include "sta_info.h"
-#include "ap_list.h"
 #include "driver_i.h"
-#include "wpa.h"
-#include "preauth.h"
-#include "vlan_init.h"
 #include "ctrl_iface.h"
 #include "wps_hostapd.h"
-#include "tkip_countermeasures.h"
 
 
 static int hostapd_flush_old_stations(struct hostapd_data *hapd);
index ef1e174c8deab161bc9b6c9ab4f7a13460821709..e89c9d7e568c27ffdbc1e711b277fe63730a3032 100644 (file)
@@ -2,7 +2,7 @@
  * hostapd / Hardware feature query and different modes
  * Copyright 2002-2003, Instant802 Networks, Inc.
  * Copyright 2005-2006, Devicescape Software, Inc.
- * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2008-2009, Jouni Malinen <j@w1.fi>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
  * See README and COPYING for more details.
  */
 
-#include "includes.h"
+#include "utils/includes.h"
 
-#include "common.h"
-#include "hostapd.h"
+#include "utils/common.h"
+#include "utils/eloop.h"
 #include "common/ieee802_11_defs.h"
 #include "common/ieee802_11_common.h"
-#include "eloop.h"
+#include "ap/hostapd.h"
+#include "ap/config.h"
 #include "hw_features.h"
 #include "driver_i.h"
-#include "config.h"
 
 
 void hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
index 806dc196a819f1f5cc54d918808e4a7e53ff77fb..4545bfaf42ea0869ad0d998286f1881e2a7ae48c 100644 (file)
@@ -37,7 +37,7 @@
  * - IEEE 802.11 context transfer
  */
 
-#include "includes.h"
+#include "utils/includes.h"
 #include <net/if.h>
 #include <sys/ioctl.h>
 #ifdef USE_KERNEL_HEADERS
 #include <netpacket/packet.h>
 #endif /* USE_KERNEL_HEADERS */
 
-#include "common.h"
-#include "hostapd.h"
-#include "config.h"
-#include "ieee802_11.h"
+#include "utils/common.h"
+#include "utils/eloop.h"
+#include "ap/hostapd.h"
+#include "ap/config.h"
+#include "ap/ieee802_11.h"
+#include "ap/sta_info.h"
 #include "iapp.h"
-#include "eloop.h"
-#include "sta_info.h"
 
 
 #define IAPP_MULTICAST "224.0.1.178"
index 9c0b7e2d96136b7775c05a92706698388d5a10a5..abbab1882c8d395f343a5cca6a1f722c1eb9e5a2 100644 (file)
@@ -23,8 +23,8 @@
 #include "common/version.h"
 #include "eap_server/eap.h"
 #include "eap_server/tncs.h"
-#include "hostapd.h"
-#include "config.h"
+#include "ap/hostapd.h"
+#include "ap/config.h"
 #include "config_file.h"
 
 
index 3004ba1e1a5f25d988d2f6c0cd251e8ef1dd3236..f4a39098c8ed7608995d59e2f62450018ee200cd 100644 (file)
  * See README and COPYING for more details.
  */
 
-#include "includes.h"
+#include "utils/includes.h"
 
-#include "common.h"
-#include "eloop.h"
-#include "uuid.h"
+#include "utils/common.h"
+#include "utils/eloop.h"
+#include "utils/uuid.h"
 #include "crypto/dh_groups.h"
 #include "common/wpa_ctrl.h"
 #include "common/ieee802_11_defs.h"
@@ -26,9 +26,9 @@
 #include "wps/wps.h"
 #include "wps/wps_defs.h"
 #include "wps/wps_dev_attr.h"
-#include "hostapd.h"
-#include "config.h"
-#include "sta_info.h"
+#include "ap/hostapd.h"
+#include "ap/config.h"
+#include "ap/sta_info.h"
 #include "wps_hostapd.h"
 
 
index faa5893045ad8188092c605dacd662fac857ee6a..f47da7b5ac735c0162d4905a2a4a96792bb76212 100644 (file)
@@ -1,4 +1,4 @@
-SUBDIRS=common crypto drivers eapol_auth eapol_supp eap_common eap_peer eap_server l2_packet radius rsn_supp tls utils wps
+SUBDIRS=ap common crypto drivers eapol_auth eapol_supp eap_common eap_peer eap_server l2_packet radius rsn_supp tls utils wps
 
 all:
        for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d; done
diff --git a/src/ap/Makefile b/src/ap/Makefile
new file mode 100644 (file)
index 0000000..cffba62
--- /dev/null
@@ -0,0 +1,9 @@
+all:
+       @echo Nothing to be made.
+
+clean:
+       for d in $(SUBDIRS); do make -C $$d clean; done
+       rm -f *~ *.o *.d
+
+install:
+       @echo Nothing to be made.
similarity index 100%
rename from hostapd/accounting.c
rename to src/ap/accounting.c
similarity index 100%
rename from hostapd/accounting.h
rename to src/ap/accounting.h
similarity index 98%
rename from hostapd/ap_list.c
rename to src/ap/ap_list.c
index ec6c2c06cafb546de08ad44d29b7f29707e8940b..4878104cda624d8bac104169a44eb014e37dc5d1 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * hostapd / AP table
- * Copyright (c) 2002-2003, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi>
  * Copyright (c) 2003-2004, Instant802 Networks, Inc.
  * Copyright (c) 2006, Devicescape Software, Inc.
  *
  * See README and COPYING for more details.
  */
 
-#include "includes.h"
+#include "utils/includes.h"
 
-#include "common.h"
+#include "utils/common.h"
+#include "utils/eloop.h"
+#include "drivers/driver.h"
 #include "hostapd.h"
 #include "config.h"
 #include "ieee802_11.h"
-#include "eloop.h"
 #include "sta_info.h"
-#include "ap_list.h"
-#include "hw_features.h"
 #include "beacon.h"
-#include "drivers/driver.h"
+#include "ap_list.h"
 
 
 /* AP list is a double linked list with head->prev pointing to the end of the
similarity index 100%
rename from hostapd/ap_list.h
rename to src/ap/ap_list.h
similarity index 99%
rename from hostapd/beacon.c
rename to src/ap/beacon.c
index a796cc3a207b3ccae807325bf8f1f66ede0922aa..d2a012ab9b70ad2531b596fd9acecc8555b540b2 100644 (file)
@@ -22,9 +22,8 @@
 #include "hostapd.h"
 #include "ieee802_11.h"
 #include "wpa.h"
-#include "wme.h"
+#include "wmm.h"
 #include "beacon.h"
-#include "hw_features.h"
 #include "drivers/driver.h"
 #include "config.h"
 #include "sta_info.h"
similarity index 100%
rename from hostapd/beacon.h
rename to src/ap/beacon.h
similarity index 100%
rename from hostapd/config.c
rename to src/ap/config.c
similarity index 100%
rename from hostapd/config.h
rename to src/ap/config.h
similarity index 100%
rename from hostapd/hostapd.h
rename to src/ap/hostapd.h
similarity index 99%
rename from hostapd/ieee802_11.c
rename to src/ap/ieee802_11.c
index cf81add2e37d0c4605e6d88463cc5072fb8470a4..316965b14285c57ca4044448864c55cf54207bae 100644 (file)
  * See README and COPYING for more details.
  */
 
-#include "includes.h"
+#include "utils/includes.h"
 
 #ifndef CONFIG_NATIVE_WINDOWS
 
-#include "common.h"
-#include "eloop.h"
+#include "utils/common.h"
+#include "utils/eloop.h"
 #include "crypto/crypto.h"
 #include "drivers/driver.h"
 #include "common/wpa_ctrl.h"
 #include "hostapd.h"
 #include "ieee802_11.h"
 #include "beacon.h"
-#include "hw_features.h"
 #include "ieee802_11_auth.h"
 #include "sta_info.h"
 #include "ieee802_1x.h"
 #include "wpa.h"
-#include "wme.h"
+#include "wmm.h"
 #include "ap_list.h"
 #include "accounting.h"
 #include "config.h"
similarity index 100%
rename from hostapd/ieee802_11.h
rename to src/ap/ieee802_11.h
similarity index 99%
rename from hostapd/ieee802_1x.c
rename to src/ap/ieee802_1x.c
index a6c934a39ef85516487d48bfdba93049f2a493b7..a619b157140e003ceb8ead205c7806a78f7da307 100644 (file)
@@ -32,7 +32,6 @@
 #include "preauth.h"
 #include "pmksa_cache.h"
 #include "config.h"
-#include "hw_features.h"
 #include "eap_server/eap.h"
 
 
similarity index 100%
rename from hostapd/ieee802_1x.h
rename to src/ap/ieee802_1x.h
similarity index 100%
rename from hostapd/mlme.c
rename to src/ap/mlme.c
similarity index 100%
rename from hostapd/mlme.h
rename to src/ap/mlme.h
similarity index 100%
rename from hostapd/peerkey.c
rename to src/ap/peerkey.c
similarity index 100%
rename from hostapd/pmksa_cache.c
rename to src/ap/pmksa_cache.c
similarity index 100%
rename from hostapd/pmksa_cache.h
rename to src/ap/pmksa_cache.h
similarity index 100%
rename from hostapd/preauth.c
rename to src/ap/preauth.c
similarity index 100%
rename from hostapd/preauth.h
rename to src/ap/preauth.h
similarity index 99%
rename from hostapd/sta_info.c
rename to src/ap/sta_info.c
index 0c7acc30fab72b12950c7c7c506c7cab3401a165..4016bd82f45985fc3aea5dca4242c7925550674c 100644 (file)
@@ -28,7 +28,6 @@
 #include "preauth.h"
 #include "config.h"
 #include "beacon.h"
-#include "hw_features.h"
 #include "mlme.h"
 #include "vlan_init.h"
 
similarity index 100%
rename from hostapd/sta_info.h
rename to src/ap/sta_info.h
similarity index 100%
rename from hostapd/vlan_init.c
rename to src/ap/vlan_init.c
similarity index 100%
rename from hostapd/vlan_init.h
rename to src/ap/vlan_init.h
similarity index 99%
rename from hostapd/wme.c
rename to src/ap/wmm.c
index a575fbc7bb3ab4ee81c5624fec6a04d1c365ed37..2db2d8da5ebb4fd11d16460cfc52c2340a2dca95 100644 (file)
@@ -18,9 +18,9 @@
 #include "common.h"
 #include "hostapd.h"
 #include "ieee802_11.h"
-#include "wme.h"
 #include "sta_info.h"
 #include "config.h"
+#include "wmm.h"
 
 
 /* TODO: maintain separate sequence and fragment numbers for each AC
similarity index 100%
rename from hostapd/wme.h
rename to src/ap/wmm.h
similarity index 100%
rename from hostapd/wpa.c
rename to src/ap/wpa.c
similarity index 100%
rename from hostapd/wpa.h
rename to src/ap/wpa.h
similarity index 100%
rename from hostapd/wpa_auth_i.h
rename to src/ap/wpa_auth_i.h
similarity index 100%
rename from hostapd/wpa_auth_ie.c
rename to src/ap/wpa_auth_ie.c
similarity index 100%
rename from hostapd/wpa_auth_ie.h
rename to src/ap/wpa_auth_ie.h
similarity index 99%
rename from hostapd/wpa_ft.c
rename to src/ap/wpa_ft.c
index 65d673ade2d066570773753cee0adad0dfd70934..172a07ccbf11e1d83f51aed2f4524686ca6937dc 100644 (file)
@@ -19,7 +19,7 @@
 #include "config.h"
 #include "wpa.h"
 #include "ieee802_11.h"
-#include "wme.h"
+#include "wmm.h"
 #include "wpa_auth_i.h"
 #include "wpa_auth_ie.h"
 
index 725d51f3c629f200145b758ec37cc185bdd93191..adbae08fb97c1f8a22e85889f337b288f48600ab 100644 (file)
@@ -588,14 +588,14 @@ CFLAGS += -DCONFIG_NO_RADIUS
 CFLAGS += -DCONFIG_NO_ACCOUNTING
 CFLAGS += -DCONFIG_NO_VLAN
 OBJS += ../hostapd/hostapd.o
-OBJS += ../hostapd/config.o
+OBJS += ../src/ap/config.o
 OBJS += ../src/utils/ip_addr.o
-OBJS += ../hostapd/sta_info.o
-OBJS += ../hostapd/tkip_countermeasures.o
-OBJS += ../hostapd/mlme.o
-OBJS += ../hostapd/ieee802_1x.o
+OBJS += ../src/ap/sta_info.o
+OBJS += ../src/ap/tkip_countermeasures.o
+OBJS += ../src/ap/mlme.o
+OBJS += ../src/ap/ieee802_1x.o
 OBJS += ../src/eapol_auth/eapol_auth_sm.o
-OBJS += ../hostapd/ieee802_11_auth.o
+OBJS += ../src/ap/ieee802_11_auth.o
 OBJS += ../hostapd/drv_callbacks.o
 OBJS += ../hostapd/ap_drv_ops.o
 ifdef CONFIG_CTRL_IFACE
@@ -612,13 +612,13 @@ CFLAGS += -DCONFIG_IEEE80211N
 endif
 
 ifdef NEED_AP_MLME
-OBJS += ../hostapd/beacon.o
-OBJS += ../hostapd/wme.o
-OBJS += ../hostapd/ap_list.o
-OBJS += ../hostapd/ieee802_11.o
+OBJS += ../src/ap/beacon.o
+OBJS += ../src/ap/wmm.o
+OBJS += ../src/ap/ap_list.o
+OBJS += ../src/ap/ieee802_11.o
 OBJS += ../hostapd/hw_features.o
 ifdef CONFIG_IEEE80211N
-OBJS += ../hostapd/ieee802_11_ht.o
+OBJS += ../src/ap/ieee802_11_ht.o
 endif
 CFLAGS += -DNEED_AP_MLME
 endif
@@ -632,14 +632,14 @@ endif
 ifdef NEED_RSN_AUTHENTICATOR
 CFLAGS += -DCONFIG_NO_RADIUS
 NEED_AES_WRAP=y
-OBJS += ../hostapd/wpa.o
-OBJS += ../hostapd/wpa_auth_ie.o
-OBJS += ../hostapd/pmksa_cache.o
+OBJS += ../src/ap/wpa.o
+OBJS += ../src/ap/wpa_auth_ie.o
+OBJS += ../src/ap/pmksa_cache.o
 ifdef CONFIG_IEEE80211R
-OBJS += ../hostapd/wpa_ft.o
+OBJS += ../src/ap/wpa_ft.o
 endif
 ifdef CONFIG_PEERKEY
-OBJS += ../hostapd/peerkey.o
+OBJS += ../src/ap/peerkey.o
 endif
 endif
 
@@ -658,18 +658,18 @@ endif
 
 ifdef CONFIG_AUTHENTICATOR
 OBJS_h += ../src/eapol_auth/eapol_auth_sm.o
-OBJS_h += ../hostapd/ieee802_1x.o
+OBJS_h += ../src/ap/ieee802_1x.o
 endif
 
 ifdef CONFIG_WPA_AUTHENTICATOR
-OBJS_h += ../hostapd/wpa.o
-OBJS_h += ../hostapd/wpa_auth_ie.o
-OBJS_h += ../hostapd/pmksa_cache.o
+OBJS_h += ../src/ap/wpa.o
+OBJS_h += ../src/ap/wpa_auth_ie.o
+OBJS_h += ../src/ap/pmksa_cache.o
 ifdef CONFIG_IEEE80211R
-OBJS_h += ../hostapd/wpa_ft.o
+OBJS_h += ../src/ap/wpa_ft.o
 endif
 ifdef CONFIG_PEERKEY
-OBJS_h += ../hostapd/peerkey.o
+OBJS_h += ../src/ap/peerkey.o
 endif
 endif
 
index 1cbcde05cb1cf7705430999acf488c97452d73e3..0713469b709d660f6077ddf4190cd86d390c4dc6 100644 (file)
 #include "includes.h"
 
 #include "common.h"
-#include "../hostapd/hostapd.h"
-#include "../hostapd/config.h"
+#include "ap/hostapd.h"
+#include "ap/config.h"
 #ifdef NEED_AP_MLME
-#include "../hostapd/ieee802_11.h"
+#include "ap/ieee802_11.h"
 #endif /* NEED_AP_MLME */
 #include "../hostapd/wps_hostapd.h"
 #include "../hostapd/ctrl_iface_ap.h"
index a9f49d9458cee15e6b3f6477555c5b44c22f3a9c..8545effed989461f5e783aaa73555dea8d4b2bc8 100644 (file)
 
 #include "common.h"
 #include "l2_packet/l2_packet.h"
-#include "wpa_supplicant_i.h"
 #include "rsn_supp/wpa.h"
 #include "rsn_supp/wpa_ie.h"
+#include "ap/wpa.h"
+#include "wpa_supplicant_i.h"
 #include "driver_i.h"
-#include "../hostapd/wpa.h"
 #include "ibss_rsn.h"