Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148171728
D5475.id13858.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
881 B
Referenced Files
None
Subscribers
None
D5475.id13858.diff
View Options
Index: head/sys/net80211/ieee80211.c
===================================================================
--- head/sys/net80211/ieee80211.c
+++ head/sys/net80211/ieee80211.c
@@ -714,7 +714,8 @@
(vap->iv_caps & IEEE80211_C_TDMA) == 0)))
return;
- IEEE80211_LOCK(ic);
+ IEEE80211_LOCK_ASSERT(ic);
+
if (on) {
if (++ic->ic_promisc == 1)
ieee80211_runtask(ic, &ic->ic_promisc_task);
@@ -724,7 +725,6 @@
if (--ic->ic_promisc == 0)
ieee80211_runtask(ic, &ic->ic_promisc_task);
}
- IEEE80211_UNLOCK(ic);
}
/*
@@ -736,7 +736,8 @@
{
struct ieee80211com *ic = vap->iv_ic;
- IEEE80211_LOCK(ic);
+ IEEE80211_LOCK_ASSERT(ic);
+
if (on) {
if (++ic->ic_allmulti == 1)
ieee80211_runtask(ic, &ic->ic_mcast_task);
@@ -746,7 +747,6 @@
if (--ic->ic_allmulti == 0)
ieee80211_runtask(ic, &ic->ic_mcast_task);
}
- IEEE80211_UNLOCK(ic);
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 17, 6:29 AM (20 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29812048
Default Alt Text
D5475.id13858.diff (881 B)
Attached To
Mode
D5475: net80211: remove redundant locking
Attached
Detach File
Event Timeline
Log In to Comment