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/cb61adceddbd
branches: trunk
changeset: 368824:cb61adceddbd
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 464062ac5929 -r cb61adceddbd 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 @@
/*
* 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