summaryrefslogtreecommitdiff
path: root/package/network/services/hostapd/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-19 21:58:48 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-19 21:58:48 +0000
commit239b3c09c9ff902e21a761ba453d4ae6293832ad (patch)
treee9eaeaa75eb876a8614b4d466750656326777e54 /package/network/services/hostapd/patches
parent00776714accb008a4ddf2221be02abb332cf9ce5 (diff)
downloadmtk-20170518-239b3c09c9ff902e21a761ba453d4ae6293832ad.zip
mtk-20170518-239b3c09c9ff902e21a761ba453d4ae6293832ad.tar.gz
mtk-20170518-239b3c09c9ff902e21a761ba453d4ae6293832ad.tar.bz2
hostapd: add a package for eapol_test
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40782
Diffstat (limited to 'package/network/services/hostapd/patches')
-rw-r--r--package/network/services/hostapd/patches/200-multicall.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/200-multicall.patch b/package/network/services/hostapd/patches/200-multicall.patch
index 1511b19..b485895 100644
--- a/package/network/services/hostapd/patches/200-multicall.patch
+++ b/package/network/services/hostapd/patches/200-multicall.patch
@@ -242,3 +242,35 @@
#ifdef CONFIG_DRIVER_WEXT
extern struct wpa_driver_ops wpa_driver_wext_ops; /* driver_wext.c */
#endif /* CONFIG_DRIVER_WEXT */
+--- a/wpa_supplicant/eapol_test.c
++++ b/wpa_supplicant/eapol_test.c
+@@ -28,8 +28,12 @@
+ #include "ctrl_iface.h"
+ #include "pcsc_funcs.h"
+ #include "wpas_glue.h"
++#include "drivers/driver.h"
+
+
++void (*wpa_supplicant_event)(void *ctx, enum wpa_event_type event,
++ union wpa_event_data *data);
++
+ struct wpa_driver_ops *wpa_drivers[] = { NULL };
+
+
+@@ -1140,6 +1144,8 @@ static void usage(void)
+ "option several times.\n");
+ }
+
++extern void supplicant_event(void *ctx, enum wpa_event_type event,
++ union wpa_event_data *data);
+
+ int main(int argc, char *argv[])
+ {
+@@ -1158,6 +1164,7 @@ int main(int argc, char *argv[])
+ if (os_program_init())
+ return -1;
+
++ wpa_supplicant_event = supplicant_event;
+ hostapd_logger_register_cb(hostapd_logger_cb);
+
+ os_memset(&eapol_test, 0, sizeof(eapol_test));