The fix described in the third post is incorrect. The backported patches
applied in -3 have already reordered this part of the code so that it
works correctly with madwifi.

Unfortunately that backport missed the final component of the fix, which
was to all the hostapd_flush_old_stations call to fail when setting up
an interface. eg:

http://hostap.epitest.fi/cgi-bin/viewcvs.cgi/hostap/hostapd/hostapd.c.diff?r2=1.168&r1=1.167&diff_format=u

I will upload an NMU fixing this shortly. NMU diff is attached

-- 
Matt Brown
Debian Developer
[EMAIL PROTECTED]
Mob +64 21 611 544 www.mattb.net.nz
diff -u hostapd-0.5.5/debian/patches/00list hostapd-0.5.5/debian/patches/00list
--- hostapd-0.5.5/debian/patches/00list
+++ hostapd-0.5.5/debian/patches/00list
@@ -4,0 +5 @@
+22_madwifi_plaintext
diff -u hostapd-0.5.5/debian/changelog hostapd-0.5.5/debian/changelog
--- hostapd-0.5.5/debian/changelog
+++ hostapd-0.5.5/debian/changelog
@@ -1,3 +1,14 @@
+hostapd (1:0.5.5-3.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Backport hostapd.c fix from CVS: (Closes: #398466)
+    - Allow hostapd_flush_old_stations to fail, otherwise configuration
+      of unencrypted modes failed with madwifi. (1.168)
+      The correct setup is handled by the backported fixes in the
+      previous revision.
+
+ -- Matt Brown <[EMAIL PROTECTED]>  Fri,  8 Dec 2006 23:40:42 +1300
+
 hostapd (1:0.5.5-3) unstable; urgency=medium
 
   * Update madwifi headers to r1757.
only in patch2:
unchanged:
--- hostapd-0.5.5.orig/debian/patches/22_madwifi_plaintext.dpatch
+++ hostapd-0.5.5/debian/patches/22_madwifi_plaintext.dpatch
@@ -0,0 +1,21 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## madwifi_plaintext.patch by Matt Brown <[EMAIL PROTECTED]>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Backport fixes for madwifi from 0.5.6
+## DP: 
+## DP: Allow the hostapd_flush_old_stations call to fail
+
[EMAIL PROTECTED]@
+--- hostapd.orig/hostapd.c    2006/10/07 00:06:53 1.167
++++ hostapd/hostapd.c    2006/10/16 00:00:11 1.168
+@@ -839,8 +839,7 @@
+ 		printf("Could not select hw_mode and channel.\n");
+ 	}
+ 
+-	if (hostapd_flush_old_stations(hapd))
+-		return -1;
++	hostapd_flush_old_stations(hapd);
+ 
+ 	if (hostapd_ctrl_iface_init(hapd)) {
+ 		printf("Failed to setup control interface\n");

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to