Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/usb Wrap up debug vars with IEEE80211_DEBUG.



details:   https://anonhg.NetBSD.org/src-all/rev/6d42d5438c2c
branches:  trunk
changeset: 939220:6d42d5438c2c
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Tue Jun 02 01:10:49 2020 +1000

description:
Wrap up debug vars with IEEE80211_DEBUG.

diffstat:

 sys/dev/usb/if_urtwn.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 9fd5ec788432 -r 6d42d5438c2c sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Sun May 24 19:04:22 2020 +1000
+++ b/sys/dev/usb/if_urtwn.c    Tue Jun 02 01:10:49 2020 +1000
@@ -2646,7 +2646,9 @@
        mutex_exit(&sc->sc_write_mtx);
 
        /* newstate functions expect the ic to be locked. */
+#ifdef IEEE80211_DEBUG
        vap->iv_debug = ieee80211_debug;
+#endif
        error = (*sc->sc_newstate)(vap, nstate, arg);
        
        splx(s);



Home | Main Index | Thread Index | Old Index