1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 02_debian_doc_examples.patch by Kel Modderman <kelmo@kanotixguide.org>
4
## DP: From: Jouni Malinen <j@w1.fi>
5
## DP: Date: Sat, 23 Feb 2008 03:36:47 +0000 (-0800)
6
## DP: Subject: Silence SIOCSIWAUTH ioctl failure message.
7
## DP: X-Git-Url: http://w1.fi/gitweb/gitweb.cgi?p=hostap.git;a=commitdiff_plain;h=8933ee9a42ae3ddba77a8ae6707396a4fed37778
9
## DP: Silence SIOCSIWAUTH ioctl failure message.
11
## DP: These are expected in most cases and there is no need to confuse users
12
## DP: with the messages in stderr (perror was used here). These are now only
13
## DP: shown in debug output and EOPNOTSUPP errors are silently ignored.
19
iwr.u.param.value = value;
21
if (ioctl(drv->ioctl_sock, SIOCSIWAUTH, &iwr) < 0) {
22
- perror("ioctl[SIOCSIWAUTH]");
23
- fprintf(stderr, "WEXT auth param %d value 0x%x - ",
25
+ if (errno != EOPNOTSUPP) {
26
+ wpa_printf(MSG_DEBUG, "WEXT: SIOCSIWAUTH(param %d "
27
+ "value 0x%x) failed: %s)",
28
+ idx, value, strerror(errno));
30
ret = errno == EOPNOTSUPP ? -2 : -1;