rpms/wpa_supplicant/devel wpa_supplicant-ssid-len-fix.patch, NONE, 1.1 wpa_supplicant.spec, 1.13, 1.14

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Sun Apr 2 15:05:46 UTC 2006


Author: dcbw

Update of /cvs/dist/rpms/wpa_supplicant/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv14962

Modified Files:
	wpa_supplicant.spec 
Added Files:
	wpa_supplicant-ssid-len-fix.patch 
Log Message:
* Sun Apr  2 2006 Dan Williams <dcbw at redhat.com> - 0.4.8-7
- Work around older & incorrect drivers that return null-terminated SSIDs



wpa_supplicant-ssid-len-fix.patch:
 wpa_supplicant.c |    3 +++
 1 files changed, 3 insertions(+)

--- NEW FILE wpa_supplicant-ssid-len-fix.patch ---
--- wpa_supplicant-0.4.8/wpa_supplicant.c.ssid-len-fix	2006-04-01 15:02:58.000000000 -0500
+++ wpa_supplicant-0.4.8/wpa_supplicant.c	2006-04-01 15:03:02.000000000 -0500
@@ -1425,6 +1425,9 @@
 		return NULL;
 	}
 
+	if ((ssid_len > 0) && (ssid[ssid_len-1] == '\0'))
+		ssid_len--;
+
 	if (wpa_drv_get_bssid(wpa_s, bssid) < 0) {
 		wpa_printf(MSG_WARNING, "Could not read BSSID from driver.");
 		return NULL;


Index: wpa_supplicant.spec
===================================================================
RCS file: /cvs/dist/rpms/wpa_supplicant/devel/wpa_supplicant.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- wpa_supplicant.spec	27 Mar 2006 19:06:52 -0000	1.13
+++ wpa_supplicant.spec	2 Apr 2006 15:05:15 -0000	1.14
@@ -2,7 +2,7 @@
 Name: wpa_supplicant
 Epoch: 1
 Version: 0.4.8
-Release: 6.fc6
+Release: 7.fc6
 License: GPL
 Group: System Environment/Base
 Source0: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
@@ -17,6 +17,7 @@
 Patch3: wpa_supplicant-assoc-timeout.patch
 Patch4: wpa_supplicant-driver-wext-debug.patch
 Patch5: wpa_supplicant-wep-key-fix.patch
+Patch6: wpa_supplicant-ssid-len-fix.patch
 URL: http://hostap.epitest.fi/wpa_supplicant/
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -48,6 +49,7 @@
 %patch3 -p1 -b .assoc-timeout
 %patch4 -p1 -b .driver-wext-debug
 %patch5 -p1 -b .wep-key-fix
+%patch6 -p1 -b .ssid-len-fix
 
 %build
 cp %{SOURCE1} ./.config
@@ -125,6 +127,9 @@
 %{_bindir}/wpa_gui
 
 %changelog
+* Sun Apr  2 2006 Dan Williams <dcbw at redhat.com> - 0.4.8-7
+- Work around older & incorrect drivers that return null-terminated SSIDs
+
 * Mon Mar 27 2006 Dan Williams <dcbw at redhat.com> - 0.4.8-6
 - Add patch to make orinoco happy with WEP keys
 - Enable Prism54-specific driver




More information about the fedora-cvs-commits mailing list