Fix hostapd for usb-wlan devices
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 7 Jul 2009 22:01:29 +0000 (00:01 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 7 Jul 2009 22:01:29 +0000 (00:01 +0200)
lfs/hostapd
src/patches/hostapd-usb_hw_did_not_ack.patch [new file with mode: 0644]

index be00a8f29639fa89528d5daf43355bcca07643a8..026ba107a714a3c41933c842c6a38fd2dd0ce7fd 100644 (file)
@@ -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 (file)
index 0000000..2f555e5
--- /dev/null
@@ -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) :