aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-07-30 10:46:07 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-08-16 15:26:37 -0400
commita1699b75a1db31a1da2f0fc610ee696d02a19280 (patch)
treef10a936a42a4bd35b39496d64426b61e465c43a6 /net/mac80211/ieee80211_i.h
parentc240879f3488ae0904a7ba5bdaaa54638b2d8852 (diff)
mac80211: unify scan and work mutexes
Having both scan and work mutexes is not just a bit too fine grained, it also creates issues when there's code that needs both since they then need to be acquired in the right order, which can be hard to do. Therefore, use just a single mutex for both. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 79d56454484a..fb4363e148f2 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -634,7 +634,6 @@ struct ieee80211_local {
634 /* 634 /*
635 * work stuff, potentially off-channel (in the future) 635 * work stuff, potentially off-channel (in the future)
636 */ 636 */
637 struct mutex work_mtx;
638 struct list_head work_list; 637 struct list_head work_list;
639 struct timer_list work_timer; 638 struct timer_list work_timer;
640 struct work_struct work_work; 639 struct work_struct work_work;
@@ -746,9 +745,10 @@ struct ieee80211_local {
746 */ 745 */
747 struct mutex key_mtx; 746 struct mutex key_mtx;
748 747
748 /* mutex for scan and work locking */
749 struct mutex mtx;
749 750
750 /* Scanning and BSS list */ 751 /* Scanning and BSS list */
751 struct mutex scan_mtx;
752 unsigned long scanning; 752 unsigned long scanning;
753 struct cfg80211_ssid scan_ssid; 753 struct cfg80211_ssid scan_ssid;
754 struct cfg80211_scan_request *int_scan_req; 754 struct cfg80211_scan_request *int_scan_req;