Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/wpa/dist/src/drivers wpa_supplicant: don't log ...
details: https://anonhg.NetBSD.org/src/rev/ea02b7afc4c2
branches: trunk
changeset: 936212:ea02b7afc4c2
user: roy <roy%NetBSD.org@localhost>
date: Tue Jul 21 10:34:16 2020 +0000
description:
wpa_supplicant: don't log SIOCG80211 errors during interface setup
Unless debugging.
wpa_supplicant will log it failed to initialized the driver for the
interface anyway so this just silences some noise for users.
diffstat:
external/bsd/wpa/dist/src/drivers/driver_bsd.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (34 lines):
diff -r 39f9ee5ebbb7 -r ea02b7afc4c2 external/bsd/wpa/dist/src/drivers/driver_bsd.c
--- a/external/bsd/wpa/dist/src/drivers/driver_bsd.c Tue Jul 21 06:39:31 2020 +0000
+++ b/external/bsd/wpa/dist/src/drivers/driver_bsd.c Tue Jul 21 10:34:16 2020 +0000
@@ -137,7 +137,9 @@
ireq->i_data = arg;
if (ioctl(drv->global->sock, SIOCG80211, ireq) < 0) {
- wpa_printf(MSG_ERROR, "ioctl[SIOCG80211, op=%u, "
+ int level = drv->if_removed ? MSG_DEBUG : MSG_ERROR;
+
+ wpa_printf(level, "ioctl[SIOCG80211, op=%u, "
"arg_len=%u]: %s", op, arg_len, strerror(errno));
return -1;
}
@@ -1467,6 +1469,9 @@
drv->global = priv;
os_strlcpy(drv->ifname, ifname, sizeof(drv->ifname));
+ /* Set the interface as removed until proven to work. */
+ drv->if_removed = 1;
+
if (!GETPARAM(drv, IEEE80211_IOC_ROAMING, drv->prev_roaming)) {
wpa_printf(MSG_DEBUG, "%s: failed to get roaming state: %s",
__func__, strerror(errno));
@@ -1490,6 +1495,9 @@
if (bsd_get_iface_flags(drv) < 0)
goto fail;
+ /* Proven to work, lets go! */
+ drv->if_removed = 0;
+
drv->opmode = get80211opmode(drv);
dl_list_add(&drv->global->ifaces, &drv->list);
Home |
Main Index |
Thread Index |
Old Index