include $(TOPDIR)/rules.mk
PKG_NAME:=wpa_supplicant
-PKG_VERSION:=0.3.8
-PKG_RELEASE:=2
-PKG_MD5SUM:=c9ced104f0322f834a84336c293b4b57
+PKG_VERSION:=0.4.7
+PKG_RELEASE:=1
+PKG_MD5SUM:=1345730f15d5f93f2f083096ddc903eb
PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
$(PKG_BUILD_DIR)/.built:
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
- CPPFLAGS="-I$(TOPDIR)/package/openwrt/include -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
+ CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
OPT_FLAGS="$(TARGET_CFLAGS)" \
KERNEL=$(LINUX_DIR) \
# rather important
CONFIG_DRIVER_BROADCOM=y
+# CONFIG_DRIVER_HOSTAP is not set
+# CONFIG_DRIVER_MADWIFI is not set
+CONFIG_DRIVER_WEXT=y
+CONFIG_DRIVER_WIRED=y
+
CONFIG_IEEE8021X_EAPOL=y
CONFIG_CTRL_IFACE=y
# optional
CONFIG_MSCHAPV2=y
CONFIG_EAP_TLS=y
+CONFIG_EAP_LEAP=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_TTLS=y
--- /dev/null
+--- wpa_supplicant-0.3.8/Makefile.orig 2005-05-22 12:37:28.000000000 +0200
++++ wpa_supplicant-0.3.8/Makefile 2005-05-22 12:40:04.000000000 +0200
+@@ -304,7 +304,7 @@
+ OBJS += wpa_supplicant.o wpa.o l2_packet.o drivers.o
+
+ wpa_supplicant: .config $(OBJS)
+- $(CC) -o wpa_supplicant $(OBJS) $(LIBS)
++ $(CC) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS)
+
+ eapol_test: .config $(OBJS_t)
+ $(CC) -o eapol_test $(OBJS_t) $(LIBS)
+@@ -313,10 +313,10 @@
+ $(CC) -o preauth_test $(OBJS_t2) $(LIBS)
+
+ wpa_passphrase: $(OBJS_p)
+- $(CC) -o wpa_passphrase $(OBJS_p) $(LIBS_p)
++ $(CC) $(LDFLAGS) -o wpa_passphrase $(OBJS_p) $(LIBS_p)
+
+ wpa_cli: $(OBJS_c)
+- $(CC) -o wpa_cli $(OBJS_c) $(LIBS_c)
++ $(CC) $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
+
+ win_if_list: win_if_list.c
+ $(CC) -o $@ win_if_list.c $(CFLAGS) $(LIBS_w)
--- /dev/null
+--- wpa_supplicant-0.3.8/Makefile.orig 2005-02-14 02:55:47.000000000 +0100
++++ wpa_supplicant-0.3.8/Makefile 2005-05-21 21:06:03.000000000 +0200
+@@ -3,7 +3,8 @@
+ endif
+
+ ifndef CFLAGS
+-CFLAGS = -MMD -O2 -Wall -g
++OPT_FLAGS = -O2 -g
++CFLAGS = -MMD $(OPT_FLAGS) -Wall
+ endif
+
+ # Include directories for CVS version
+++ /dev/null
-Fixes some memory leaks in driver_broadom.c
-
- http://openwrt.org/forum/viewtopic.php?pid=8217#p8217
-
-Thanks Greg (framer99)
-
---- wpa_supplicant-0.3.8/driver_broadcom.c.orig 2005-01-22 05:35:13.000000000 +0100
-+++ wpa_supplicant-0.3.8/driver_broadcom.c 2005-06-10 08:50:14.000000000 +0200
-@@ -289,6 +289,7 @@
- wwh->type);
- break;
- }
-+ free(data.assoc_info.resp_ies);
- }
-
- static void * wpa_driver_broadcom_init(void *ctx, const char *ifname)
-@@ -449,8 +450,10 @@
- wsr->count = 0;
-
- if (broadcom_ioctl(drv, WLC_SCAN_RESULTS, buf, WLC_IOCTL_MAXLEN) <
-- 0)
-+ 0) {
-+ free(buf);
- return -1;
-+ }
-
- memset(results, 0, max_size * sizeof(struct wpa_scan_result));
-
-@@ -490,6 +493,7 @@
- wpa_printf(MSG_MSGDUMP, "Received %d bytes of scan results (%d BSSes)",
- wsr->buflen, ap_num);
-
-+ free(buf);
- return ap_num;
- }
-
+++ /dev/null
---- wpa_supplicant-0.3.8/Makefile.orig 2005-05-22 12:37:28.000000000 +0200
-+++ wpa_supplicant-0.3.8/Makefile 2005-05-22 12:40:04.000000000 +0200
-@@ -304,7 +304,7 @@
- OBJS += wpa_supplicant.o wpa.o l2_packet.o drivers.o
-
- wpa_supplicant: .config $(OBJS)
-- $(CC) -o wpa_supplicant $(OBJS) $(LIBS)
-+ $(CC) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS)
-
- eapol_test: .config $(OBJS_t)
- $(CC) -o eapol_test $(OBJS_t) $(LIBS)
-@@ -313,10 +313,10 @@
- $(CC) -o preauth_test $(OBJS_t2) $(LIBS)
-
- wpa_passphrase: $(OBJS_p)
-- $(CC) -o wpa_passphrase $(OBJS_p) $(LIBS_p)
-+ $(CC) $(LDFLAGS) -o wpa_passphrase $(OBJS_p) $(LIBS_p)
-
- wpa_cli: $(OBJS_c)
-- $(CC) -o wpa_cli $(OBJS_c) $(LIBS_c)
-+ $(CC) $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
-
- win_if_list: win_if_list.c
- $(CC) -o $@ win_if_list.c $(CFLAGS) $(LIBS_w)
+++ /dev/null
---- wpa_supplicant-0.3.8/Makefile.orig 2005-02-14 02:55:47.000000000 +0100
-+++ wpa_supplicant-0.3.8/Makefile 2005-05-21 21:06:03.000000000 +0200
-@@ -3,7 +3,8 @@
- endif
-
- ifndef CFLAGS
--CFLAGS = -MMD -O2 -Wall -g
-+OPT_FLAGS = -O2 -g
-+CFLAGS = -MMD $(OPT_FLAGS) -Wall
- endif
-
- # Include directories for CVS version