projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc366e8
)
Silence SIOCSIWAUTH ioctl failure message.
author
Jouni Malinen
<j@w1.fi>
Thu, 28 Feb 2008 01:47:23 +0000
(17:47 -0800)
committer
Jouni Malinen
<j@w1.fi>
Thu, 28 Feb 2008 01:47:23 +0000
(17:47 -0800)
These are expected in most cases and there is no need to confuse users
with the messages in stderr (perror was used here). These are now only
shown in debug output and EOPNOTSUPP errors are silently ignored.
src/drivers/driver_wext.c
patch
|
blob
|
history
diff --git
a/src/drivers/driver_wext.c
b/src/drivers/driver_wext.c
index
89c0194
..
db43103
100644
(file)
--- a/
src/drivers/driver_wext.c
+++ b/
src/drivers/driver_wext.c
@@
-251,9
+251,11
@@
static int wpa_driver_wext_set_auth_param(struct wpa_driver_wext_data *drv,
iwr.u.param.value = value;
if (ioctl(drv->ioctl_sock, SIOCSIWAUTH, &iwr) < 0) {
- perror("ioctl[SIOCSIWAUTH]");
- fprintf(stderr, "WEXT auth param %d value 0x%x - ",
- idx, value);
+ 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;
}