Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/net80211 Fix typo preventing delivery of stats for...



details:   https://anonhg.NetBSD.org/src-all/rev/40f5acb64b7a
branches:  trunk
changeset: 949115:40f5acb64b7a
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Sat Dec 19 18:51:21 2020 +0100

description:
Fix typo preventing delivery of stats for ifconfig -v

diffstat:

 sys/net80211/ieee80211_ioctl.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r 3482bd870f13 -r 40f5acb64b7a sys/net80211/ieee80211_ioctl.c
--- a/sys/net80211/ieee80211_ioctl.c    Sat Dec 19 17:21:03 2020 +0100
+++ b/sys/net80211/ieee80211_ioctl.c    Sat Dec 19 18:51:21 2020 +0100
@@ -3856,14 +3856,12 @@
 #if __FreeBSD__
                copyout(&vap->iv_stats, ifr_data_get_ptr(ifr),
                    sizeof (vap->iv_stats));
-#elif__NetBSD__
-               s = splnet();
+#elif __NetBSD__
                error = copyout(&vap->iv_stats, ifr->ifr_buf,
                        sizeof (vap->iv_stats) <= ifr->ifr_buflen
                        ? sizeof (vap->iv_stats) : ifr->ifr_buflen);
                if (error == 0 && cmd == SIOCG80211ZSTATS)
                        (void)memset(&vap->iv_stats, 0, sizeof(vap->iv_stats));
-               splx(s);
 #endif
                break;
        case SIOCSIFMTU:



Home | Main Index | Thread Index | Old Index