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/593826c05a0b
branches:  trunk
changeset: 375821:593826c05a0b
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 73c8a935bd62 -r 593826c05a0b 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 @@ ieee80211_scanreq(struct ieee80211vap *v
                            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