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/51ffbb2ea0b3
branches:  trunk
changeset: 371182:51ffbb2ea0b3
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 c8d8465b809e -r 51ffbb2ea0b3 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