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/514b6c8c3300
branches:  trunk
changeset: 375279:514b6c8c3300
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 817a4fff1a25 -r 514b6c8c3300 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