diff options
author | Jouni Malinen <j@w1.fi> | 2008-02-28 01:47:23 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2008-02-28 01:47:23 (GMT) |
commit | 6076f6ce085c188398e918ed9530089d69d5f573 (patch) | |
tree | 10241d6acf98fbc38d7266c4c0d6a1172af87ee2 | |
parent | dc366e8e854c9df0416bea087c99d08ed7ad01d7 (diff) | |
download | hostap-6076f6ce085c188398e918ed9530089d69d5f573.zip hostap-6076f6ce085c188398e918ed9530089d69d5f573.tar.gz hostap-6076f6ce085c188398e918ed9530089d69d5f573.tar.bz2 |
Silence SIOCSIWAUTH ioctl failure message.
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.
-rw-r--r-- | src/drivers/driver_wext.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/drivers/driver_wext.c b/src/drivers/driver_wext.c index 89c0194..db43103 100644 --- 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; } |