Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/net80211 Improve debugging support. The value of t...
details: https://anonhg.NetBSD.org/src-all/rev/ff0a32783a10
branches: trunk
changeset: 1025989:ff0a32783a10
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Wed May 13 17:55:00 2020 +1000
description:
Improve debugging support. The value of the debug sysctl is now updated
on a state change.
diffstat:
sys/dev/pci/if_iwn.c | 1 +
sys/dev/usb/if_urtwn.c | 1 +
sys/net80211/ieee80211_netbsd.c | 2 +-
sys/net80211/ieee80211_netbsd.h | 3 +++
4 files changed, 6 insertions(+), 1 deletions(-)
diffs (47 lines):
diff -r 161d714ba652 -r ff0a32783a10 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c Wed May 13 17:23:57 2020 +1000
+++ b/sys/dev/pci/if_iwn.c Wed May 13 17:55:00 2020 +1000
@@ -2202,6 +2202,7 @@
break;
}
+ vap->iv_debug = ieee80211_debug;
error = (*sc->sc_newstate)(vap, nstate, arg);
return error;
}
diff -r 161d714ba652 -r ff0a32783a10 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c Wed May 13 17:23:57 2020 +1000
+++ b/sys/dev/usb/if_urtwn.c Wed May 13 17:55:00 2020 +1000
@@ -2655,6 +2655,7 @@
mutex_exit(&sc->sc_write_mtx);
/* newstate functions expect the ic to be locked. */
+ vap->iv_debug = ieee80211_debug;
error = (*sc->sc_newstate)(vap, nstate, arg);
splx(s);
diff -r 161d714ba652 -r ff0a32783a10 sys/net80211/ieee80211_netbsd.c
--- a/sys/net80211/ieee80211_netbsd.c Wed May 13 17:23:57 2020 +1000
+++ b/sys/net80211/ieee80211_netbsd.c Wed May 13 17:55:00 2020 +1000
@@ -72,7 +72,7 @@
#define SYSCTL_HANDLER_ARGS SYSCTLFN_ARGS
#ifdef IEEE80211_DEBUG
-static int ieee80211_debug = 0;
+int ieee80211_debug = 0;
#endif
#ifdef notyet
diff -r 161d714ba652 -r ff0a32783a10 sys/net80211/ieee80211_netbsd.h
--- a/sys/net80211/ieee80211_netbsd.h Wed May 13 17:23:57 2020 +1000
+++ b/sys/net80211/ieee80211_netbsd.h Wed May 13 17:55:00 2020 +1000
@@ -49,6 +49,9 @@
#include <net/if.h>
+#ifdef IEEE80211_DEBUG
+extern int ieee80211_debug;
+#endif
/*
* Defines to make the FreeBSD code work on NetBSD
*/
Home |
Main Index |
Thread Index |
Old Index