OBJS += src/ap/p2p_hostapd.c
endif
+OBJS += src/drivers/driver_common.c
+
ifdef CONFIG_NO_STDOUT_DEBUG
L_CFLAGS += -DCONFIG_NO_STDOUT_DEBUG
endif
CFLAGS += -DCONFIG_INTERWORKING
endif
+OBJS += ../src/drivers/driver_common.o
+
ifdef CONFIG_WPA_CLI_EDIT
OBJS_c += ../src/utils/edit.o
else
wpa_supplicant_event(ctx, EVENT_EAPOL_RX, &event);
}
-static inline void wpa_scan_results_free(struct wpa_scan_results *res)
-{
- size_t i;
-
- if (res == NULL)
- return;
-
- for (i = 0; i < res->num; i++)
- os_free(res->res[i]);
- os_free(res->res);
- os_free(res);
-}
+/* driver_common.c */
+void wpa_scan_results_free(struct wpa_scan_results *res);
#endif /* DRIVER_H */
--- /dev/null
+/*
+ * Common driver-related functions
+ * Copyright (c) 2003-2011, 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
+ * published by the Free Software Foundation.
+ *
+ * Alternatively, this software may be distributed under the terms of BSD
+ * license.
+ *
+ * See README and COPYING for more details.
+ */
+
+#include "includes.h"
+#include "utils/common.h"
+#include "driver.h"
+
+void wpa_scan_results_free(struct wpa_scan_results *res)
+{
+ size_t i;
+
+ if (res == NULL)
+ return;
+
+ for (i = 0; i < res->num; i++)
+ os_free(res->res[i]);
+ os_free(res->res);
+ os_free(res);
+}
L_CFLAGS += -DCONFIG_OFFCHANNEL
endif
+OBJS += src/drivers/driver_common.c
+
OBJS_wpa_rm := ctrl_iface.c ctrl_iface_unix.c
OBJS_wpa := $(filter-out $(OBJS_wpa_rm),$(OBJS)) $(OBJS_h) tests/test_wpa.c
ifdef CONFIG_AUTHENTICATOR
CFLAGS += -DCONFIG_OFFCHANNEL
endif
+OBJS += ../src/drivers/driver_common.o
+
OBJS_wpa_rm := ctrl_iface.o ctrl_iface_unix.o
OBJS_wpa := $(filter-out $(OBJS_wpa_rm),$(OBJS)) $(OBJS_h) tests/test_wpa.o
ifdef CONFIG_AUTHENTICATOR
SOURCEPATH ..\..\src\rsn_supp
SOURCE wpa.c preauth.c pmksa_cache.c peerkey.c wpa_ie.c
SOURCEPATH ..\..\src\drivers
-SOURCE drivers.c
+SOURCE drivers.c driver_common.c
SOURCEPATH ..\..\src\common
SOURCE wpa_common.c
SOURCEPATH ..\..\src\utils
>\r
</File>\r
<File\r
+ RelativePath="..\..\..\src\drivers\driver_common.c"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath="..\..\..\src\eap_peer\eap.c"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\..\src\drivers\driver_common.c"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath="..\..\..\src\drivers\driver_ndis.c"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\..\src\drivers\driver_common.c"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath="..\..\..\src\drivers\driver_ndis.c"\r
>\r
</File>\r