Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/net80211 Unlock ic lock before cancelling scans.



details:   https://anonhg.NetBSD.org/src-all/rev/0597387361e7
branches:  trunk
changeset: 377109:0597387361e7
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sun Aug 07 20:22:34 2022 +1000

description:
Unlock ic lock before cancelling scans.

Cancel scan reaquires the lock.

diffstat:

 sys/net80211/ieee80211_output.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 9514effa2a48 -r 0597387361e7 sys/net80211/ieee80211_output.c
--- a/sys/net80211/ieee80211_output.c   Sun Aug 07 20:19:36 2022 +1000
+++ b/sys/net80211/ieee80211_output.c   Sun Aug 07 20:22:34 2022 +1000
@@ -379,8 +379,11 @@ ieee80211_start_pkt(struct ieee80211vap 
        /*
         * Cancel any background scan.
         */
-       if (ic->ic_flags & IEEE80211_F_SCAN)
+       if (ic->ic_flags & IEEE80211_F_SCAN) {
+               IEEE80211_UNLOCK(ic);
                ieee80211_cancel_anyscan(vap);
+               IEEE80211_LOCK(ic);
+       }
        /* 
         * Find the node for the destination so we can do
         * things like power save and fast frames aggregation.



Home | Main Index | Thread Index | Old Index