From 38c35b92e34a39612f6884f6e954e5eac8974189 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Wed, 8 Jul 2009 00:01:29 +0200 Subject: [PATCH] Fix hostapd for usb-wlan devices --- lfs/hostapd | 3 ++- src/patches/hostapd-usb_hw_did_not_ack.patch | 21 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 src/patches/hostapd-usb_hw_did_not_ack.patch diff --git a/lfs/hostapd b/lfs/hostapd index be00a8f296..026ba107a7 100644 --- a/lfs/hostapd +++ b/lfs/hostapd @@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = hostapd -PAK_VER = 12 +PAK_VER = 13 DEPS = "" @@ -77,6 +77,7 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/hostapd-usb_hw_did_not_ack.patch -cp /usr/src/linux/include/linux/genetlink.h /usr/include/linux/ -cp /usr/src/linux/include/linux/netfilter/nfnetlink.h /usr/include/linux/netfilter/ -cp /usr/src/linux/include/linux/netfilter/nfnetlink_compat.h /usr/include/linux/netfilter/ diff --git a/src/patches/hostapd-usb_hw_did_not_ack.patch b/src/patches/hostapd-usb_hw_did_not_ack.patch new file mode 100644 index 0000000000..2f555e5399 --- /dev/null +++ b/src/patches/hostapd-usb_hw_did_not_ack.patch @@ -0,0 +1,21 @@ +diff -Naur hostapd-0.6.9.org/hostapd/ieee802_11.c hostapd-0.6.9/hostapd/ieee802_11.c +--- hostapd-0.6.9.org/hostapd/ieee802_11.c 2009-03-23 15:06:28.000000000 +0100 ++++ hostapd-0.6.9/hostapd/ieee802_11.c 2009-07-07 23:13:37.000000000 +0200 +@@ -1497,7 +1497,7 @@ + hostapd_logger(hapd, mgmt->da, HOSTAPD_MODULE_IEEE80211, + HOSTAPD_LEVEL_NOTICE, + "did not acknowledge authentication response"); +- return; ++ //return; + } + + if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.auth)) { +@@ -1571,7 +1571,7 @@ + hostapd_logger(hapd, mgmt->da, HOSTAPD_MODULE_IEEE80211, + HOSTAPD_LEVEL_DEBUG, + "did not acknowledge association response"); +- return; ++ //return; + } + + if (len < IEEE80211_HDRLEN + (reassoc ? sizeof(mgmt->u.reassoc_resp) : -- 2.39.2