summaryrefslogtreecommitdiff
path: root/package/wpa_supplicant/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-08-20 18:54:29 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-08-20 18:54:29 +0200
commit3596b341df7305e069293e6118f8161c7423fd00 (patch)
tree38b11cc67331dbac43ecb50604d645c81f0f3284 /package/wpa_supplicant/patches
parentffe6bcdc035fe26b30b25d9b7742b35ce13f402f (diff)
update wpa_supplicant to latest upstream, enable internal crypto as choice
Diffstat (limited to 'package/wpa_supplicant/patches')
-rw-r--r--package/wpa_supplicant/patches/patch-src_drivers_drivers_mak11
-rw-r--r--package/wpa_supplicant/patches/patch-src_drivers_drivers_mk11
-rw-r--r--package/wpa_supplicant/patches/patch-src_drivers_linux_wext_h19
-rw-r--r--package/wpa_supplicant/patches/patch-wpa_supplicant_Makefile12
-rw-r--r--package/wpa_supplicant/patches/patch-wpa_supplicant_Makefile.orig25
5 files changed, 78 insertions, 0 deletions
diff --git a/package/wpa_supplicant/patches/patch-src_drivers_drivers_mak b/package/wpa_supplicant/patches/patch-src_drivers_drivers_mak
new file mode 100644
index 000000000..3d32a84eb
--- /dev/null
+++ b/package/wpa_supplicant/patches/patch-src_drivers_drivers_mak
@@ -0,0 +1,11 @@
+--- wpa_supplicant-2.0.orig/src/drivers/drivers.mak 2013-01-12 16:42:53.000000000 +0100
++++ wpa_supplicant-2.0/src/drivers/drivers.mak 2013-08-20 17:17:08.430074246 +0200
+@@ -30,7 +30,7 @@ NEED_RFKILL=y
+ ifdef CONFIG_LIBNL32
+ DRV_LIBS += -lnl-3
+ DRV_LIBS += -lnl-genl-3
+- DRV_CFLAGS += -DCONFIG_LIBNL20 -I/usr/include/libnl3
++ DRV_CFLAGS += -DCONFIG_LIBNL20
+ else
+ ifdef CONFIG_LIBNL_TINY
+ DRV_LIBS += -lnl-tiny
diff --git a/package/wpa_supplicant/patches/patch-src_drivers_drivers_mk b/package/wpa_supplicant/patches/patch-src_drivers_drivers_mk
new file mode 100644
index 000000000..fc029e499
--- /dev/null
+++ b/package/wpa_supplicant/patches/patch-src_drivers_drivers_mk
@@ -0,0 +1,11 @@
+--- wpa_supplicant-2.0.orig/src/drivers/drivers.mk 2013-01-12 16:42:53.000000000 +0100
++++ wpa_supplicant-2.0/src/drivers/drivers.mk 2013-08-20 17:16:43.386389087 +0200
+@@ -30,7 +30,7 @@ NEED_RFKILL=y
+ ifdef CONFIG_LIBNL32
+ DRV_LIBS += -lnl-3
+ DRV_LIBS += -lnl-genl-3
+- DRV_CFLAGS += -DCONFIG_LIBNL20 -I/usr/include/libnl3
++ DRV_CFLAGS += -DCONFIG_LIBNL20
+ else
+ ifdef CONFIG_LIBNL_TINY
+ DRV_LIBS += -lnl-tiny
diff --git a/package/wpa_supplicant/patches/patch-src_drivers_linux_wext_h b/package/wpa_supplicant/patches/patch-src_drivers_linux_wext_h
new file mode 100644
index 000000000..babe847dd
--- /dev/null
+++ b/package/wpa_supplicant/patches/patch-src_drivers_linux_wext_h
@@ -0,0 +1,19 @@
+--- wpa_supplicant-2.0.orig/src/drivers/linux_wext.h 2013-01-12 16:42:53.000000000 +0100
++++ wpa_supplicant-2.0/src/drivers/linux_wext.h 2013-08-20 17:10:28.179106082 +0200
+@@ -21,11 +21,11 @@
+
+ #include <sys/types.h>
+ #include <net/if.h>
+-typedef __uint32_t __u32;
+-typedef __int32_t __s32;
+-typedef __uint16_t __u16;
+-typedef __int16_t __s16;
+-typedef __uint8_t __u8;
++typedef u_int32_t __u32;
++typedef int32_t __s32;
++typedef u_int16_t __u16;
++typedef int16_t __s16;
++typedef u_int8_t __u8;
+ #ifndef __user
+ #define __user
+ #endif /* __user */
diff --git a/package/wpa_supplicant/patches/patch-wpa_supplicant_Makefile b/package/wpa_supplicant/patches/patch-wpa_supplicant_Makefile
new file mode 100644
index 000000000..23704a1ad
--- /dev/null
+++ b/package/wpa_supplicant/patches/patch-wpa_supplicant_Makefile
@@ -0,0 +1,12 @@
+--- wpa_supplicant-2.0.orig/wpa_supplicant/Makefile 2013-01-12 16:42:53.000000000 +0100
++++ wpa_supplicant-2.0/wpa_supplicant/Makefile 2013-08-20 17:31:22.311339505 +0200
+@@ -999,9 +999,6 @@ CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
+ ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST
+ CFLAGS += -DLTM_FAST
+ endif
+-else
+-LIBS += -ltommath
+-LIBS_p += -ltommath
+ endif
+ CONFIG_INTERNAL_AES=y
+ CONFIG_INTERNAL_DES=y
diff --git a/package/wpa_supplicant/patches/patch-wpa_supplicant_Makefile.orig b/package/wpa_supplicant/patches/patch-wpa_supplicant_Makefile.orig
new file mode 100644
index 000000000..9bea219d6
--- /dev/null
+++ b/package/wpa_supplicant/patches/patch-wpa_supplicant_Makefile.orig
@@ -0,0 +1,25 @@
+--- wpa_supplicant-2.0.orig/wpa_supplicant/Makefile 2013-01-12 16:42:53.000000000 +0100
++++ wpa_supplicant-2.0/wpa_supplicant/Makefile 2013-08-20 17:30:19.132133775 +0200
+@@ -999,9 +999,6 @@ CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
+ ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST
+ CFLAGS += -DLTM_FAST
+ endif
+-else
+-LIBS += -ltommath
+-LIBS_p += -ltommath
+ endif
+ CONFIG_INTERNAL_AES=y
+ CONFIG_INTERNAL_DES=y
+@@ -1519,10 +1516,12 @@ preauth_test: $(OBJS_t2)
+ @$(E) " LD " $@
+
+ wpa_passphrase: $(OBJS_p)
++ echo crypto: $(CONFIG_CRYPTO)
+ $(Q)$(LDO) $(LDFLAGS) -o wpa_passphrase $(OBJS_p) $(LIBS_p)
+ @$(E) " LD " $@
+
+ wpa_cli: $(OBJS_c)
++ echo crypto: $(CONFIG_CRYPTO)
+ $(Q)$(LDO) $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
+ @$(E) " LD " $@
+