wpa_supplicant/wpa_supplicant-errormsg.patch
Stephan Kulow ca3a782fcb Accepting request 30877 from home:a_jaeger:branches:openSUSE:Factory
Copy from home:a_jaeger:branches:openSUSE:Factory/wpa_supplicant via accept of submit request 30877 revision 5.
Request was accepted with message:
as noone cared, I simply push it

OBS-URL: https://build.opensuse.org/request/show/30877
OBS-URL: https://build.opensuse.org/package/show/hardware/wpa_supplicant?expand=0&rev=6
2010-02-11 15:10:10 +00:00

20 lines
611 B
Diff

Index: src/drivers/driver_wext.c
===================================================================
--- src/drivers/driver_wext.c.orig
+++ src/drivers/driver_wext.c
@@ -54,12 +54,13 @@ int wpa_driver_wext_set_auth_param(struc
iwr.u.param.value = value;
if (ioctl(drv->ioctl_sock, SIOCSIWAUTH, &iwr) < 0) {
+ int saved_errno = errno;
if (errno != EOPNOTSUPP) {
wpa_printf(MSG_DEBUG, "WEXT: SIOCSIWAUTH(param %d "
"value 0x%x) failed: %s)",
idx, value, strerror(errno));
}
- ret = errno == EOPNOTSUPP ? -2 : -1;
+ ret = saved_errno == EOPNOTSUPP ? -2 : -1;
}
return ret;