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/68dbf1b41941
branches:  trunk
changeset: 361433:68dbf1b41941
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 263ad70ea985 -r 68dbf1b41941 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
@@ -3855,14 +3855,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