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/24b05127dc54
branches: trunk
changeset: 952070:24b05127dc54
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 89c0c8c8b92a -r 24b05127dc54 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 89c0c8c8b92a -r 24b05127dc54 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
@@ -2654,6 +2654,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 89c0c8c8b92a -r 24b05127dc54 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 89c0c8c8b92a -r 24b05127dc54 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