From fec7c824b85b587e2e999d4b1c7209396b32b201 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Sun, 31 Mar 2013 19:48:00 +0200 Subject: [PATCH] fix start of wpa_supplicant --- testing/scripts/recipes/004_wpa_supplicant.mk | 39 ++++++++++++++++++++++ testing/scripts/recipes/012_wpa_supplicant.mk | 39 ---------------------- .../scripts/recipes/patches/wpa_supplicant-eap-tnc | 24 +++++++++---- testing/start-testing | 3 ++ 4 files changed, 60 insertions(+), 45 deletions(-) create mode 100644 testing/scripts/recipes/004_wpa_supplicant.mk delete mode 100644 testing/scripts/recipes/012_wpa_supplicant.mk diff --git a/testing/scripts/recipes/004_wpa_supplicant.mk b/testing/scripts/recipes/004_wpa_supplicant.mk new file mode 100644 index 0000000..14b64ea --- /dev/null +++ b/testing/scripts/recipes/004_wpa_supplicant.mk @@ -0,0 +1,39 @@ +#!/usr/bin/make + +PV = 2.0 +PKG = wpa_supplicant-$(PV) +TAR = $(PKG).tar.gz +SRC = http://hostap.epitest.fi/releases/$(TAR) + +NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN) + +CONFIG_OPTS = + +PATCHES = \ + wpa_supplicant-eap-tnc + +SUBDIR = wpa_supplicant + +all: install + +$(TAR): + wget $(SRC) + +.$(PKG)-unpacked: $(TAR) + tar xfz $(TAR) + @touch $@ + +.$(PKG)-patches-applied: .$(PKG)-unpacked + cd $(PKG) && cat $(addprefix ../patches/, $(PATCHES)) | patch -p1 + @touch $@ + +.$(PKG)-configured: .$(PKG)-patches-applied + cp $(PKG)/$(SUBDIR)/defconfig $(PKG)/$(SUBDIR)/.config + @touch $@ + +.$(PKG)-built: .$(PKG)-configured + cd $(PKG)/$(SUBDIR) && make -j $(NUM_CPUS) + @touch $@ + +install: .$(PKG)-built + cd $(PKG)/$(SUBDIR) && make install diff --git a/testing/scripts/recipes/012_wpa_supplicant.mk b/testing/scripts/recipes/012_wpa_supplicant.mk deleted file mode 100644 index 14b64ea..0000000 --- a/testing/scripts/recipes/012_wpa_supplicant.mk +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/make - -PV = 2.0 -PKG = wpa_supplicant-$(PV) -TAR = $(PKG).tar.gz -SRC = http://hostap.epitest.fi/releases/$(TAR) - -NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN) - -CONFIG_OPTS = - -PATCHES = \ - wpa_supplicant-eap-tnc - -SUBDIR = wpa_supplicant - -all: install - -$(TAR): - wget $(SRC) - -.$(PKG)-unpacked: $(TAR) - tar xfz $(TAR) - @touch $@ - -.$(PKG)-patches-applied: .$(PKG)-unpacked - cd $(PKG) && cat $(addprefix ../patches/, $(PATCHES)) | patch -p1 - @touch $@ - -.$(PKG)-configured: .$(PKG)-patches-applied - cp $(PKG)/$(SUBDIR)/defconfig $(PKG)/$(SUBDIR)/.config - @touch $@ - -.$(PKG)-built: .$(PKG)-configured - cd $(PKG)/$(SUBDIR) && make -j $(NUM_CPUS) - @touch $@ - -install: .$(PKG)-built - cd $(PKG)/$(SUBDIR) && make install diff --git a/testing/scripts/recipes/patches/wpa_supplicant-eap-tnc b/testing/scripts/recipes/patches/wpa_supplicant-eap-tnc index 6767d8a..2e00e5b 100644 --- a/testing/scripts/recipes/patches/wpa_supplicant-eap-tnc +++ b/testing/scripts/recipes/patches/wpa_supplicant-eap-tnc @@ -1,6 +1,18 @@ -diff -urN wpa_supplicant-2.0/wpa_supplicant/defconfig wpa_supplicant-2.0-patched/wpa_supplicant/defconfig ---- wpa_supplicant-2.0/wpa_supplicant/defconfig 2013-01-12 16:42:53.000000000 +0100 -+++ wpa_supplicant-2.0-patched/wpa_supplicant/defconfig 2013-03-11 10:19:58.012981151 +0100 +diff -urN wpa_supplicant-2.0.ori/src/eap_peer/tncc.c wpa_supplicant-2.0/src/eap_peer/tncc.c +--- wpa_supplicant-2.0.ori/src/eap_peer/tncc.c 2013-01-12 16:42:53.000000000 +0100 ++++ wpa_supplicant-2.0/src/eap_peer/tncc.c 2013-03-23 13:10:22.151059154 +0100 +@@ -465,7 +465,7 @@ + return -1; + } + #else /* CONFIG_NATIVE_WINDOWS */ +- imc->dlhandle = dlopen(imc->path, RTLD_LAZY); ++ imc->dlhandle = dlopen(imc->path, RTLD_LAZY | RTLD_GLOBAL); + if (imc->dlhandle == NULL) { + wpa_printf(MSG_ERROR, "TNC: Failed to open IMC '%s' (%s): %s", + imc->name, imc->path, dlerror()); +diff -urN wpa_supplicant-2.0.ori/wpa_supplicant/defconfig wpa_supplicant-2.0/wpa_supplicant/defconfig +--- wpa_supplicant-2.0.ori/wpa_supplicant/defconfig 2013-01-12 16:42:53.000000000 +0100 ++++ wpa_supplicant-2.0/wpa_supplicant/defconfig 2013-03-23 13:06:08.759052370 +0100 @@ -86,7 +86,7 @@ CONFIG_DRIVER_WEXT=y @@ -19,9 +31,9 @@ diff -urN wpa_supplicant-2.0/wpa_supplicant/defconfig wpa_supplicant-2.0-patched # Wi-Fi Protected Setup (WPS) #CONFIG_WPS=y -diff -urN wpa_supplicant-2.0/wpa_supplicant/Makefile wpa_supplicant-2.0-patched/wpa_supplicant/Makefile ---- wpa_supplicant-2.0/wpa_supplicant/Makefile 2013-01-12 16:42:53.000000000 +0100 -+++ wpa_supplicant-2.0-patched/wpa_supplicant/Makefile 2013-03-11 10:38:03.020998741 +0100 +diff -urN wpa_supplicant-2.0.ori/wpa_supplicant/Makefile wpa_supplicant-2.0/wpa_supplicant/Makefile +--- wpa_supplicant-2.0.ori/wpa_supplicant/Makefile 2013-01-12 16:42:53.000000000 +0100 ++++ wpa_supplicant-2.0/wpa_supplicant/Makefile 2013-03-23 13:06:08.759052370 +0100 @@ -6,8 +6,8 @@ CFLAGS = -MMD -O2 -Wall -g endif diff --git a/testing/start-testing b/testing/start-testing index 46aa4a2..45cf4c9 100755 --- a/testing/start-testing +++ b/testing/start-testing @@ -46,3 +46,6 @@ do echo 2 > $vnet/multicast_router done done + +echo 0x08 > /sys/devices/virtual/net/test-br0/bridge/group_fwd_mask + -- 2.7.4