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/eb9f8e3ae145
branches: trunk
changeset: 932897:eb9f8e3ae145
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 ad6b5e8909f8 -r eb9f8e3ae145 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
@@ -2129,6 +2129,7 @@
break;
}
+ vap->iv_debug = ieee80211_debug;
error = (*sc->sc_newstate)(vap, nstate, arg);
return error;
}
diff -r ad6b5e8909f8 -r eb9f8e3ae145 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
@@ -2650,6 +2650,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 ad6b5e8909f8 -r eb9f8e3ae145 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 ad6b5e8909f8 -r eb9f8e3ae145 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