Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/net80211 Avoid a superflous unlock/lock



details:   https://anonhg.NetBSD.org/src-all/rev/a8d11b0e32f0
branches:  trunk
changeset: 370620:a8d11b0e32f0
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Tue Sep 20 20:52:26 2022 +0200

description:
Avoid a superflous unlock/lock

diffstat:

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

diffs (13 lines):

diff -r ef3ab5345d0a -r a8d11b0e32f0 sys/net80211/ieee80211_ioctl.c
--- a/sys/net80211/ieee80211_ioctl.c    Tue Sep 20 20:43:21 2022 +0200
+++ b/sys/net80211/ieee80211_ioctl.c    Tue Sep 20 20:52:26 2022 +0200
@@ -2794,8 +2794,8 @@
                            sr->sr_ssid[i].ssid, sr->sr_ssid[i].len);
                }
                vap->iv_flags_ext |= IEEE80211_FEXT_SCANREQ;
+               ieee80211_new_state_locked(vap, IEEE80211_S_SCAN, 0);
                IEEE80211_UNLOCK(ic);
-               ieee80211_new_state(vap, IEEE80211_S_SCAN, 0);
        } else {
                vap->iv_flags_ext &= ~IEEE80211_FEXT_SCANREQ;
                if (sr->sr_flags & IEEE80211_IOC_SCAN_CHECK) {



Home | Main Index | Thread Index | Old Index