cfg80211/mac80211: use cfg80211 wdev mutex in mac80211
authorJohannes Berg <johannes.berg@intel.com>
Fri, 10 May 2013 10:32:47 +0000 (12:32 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 24 May 2013 22:02:16 +0000 (00:02 +0200)
commit8d61ffa5e01c5f676431d12caba17db164a48a86
treec3df0dc13fdc8d2327712db10c1c654f428f11a3
parent5fe231e873729fa2f57cdc417d5c1f80871e2d7d
cfg80211/mac80211: use cfg80211 wdev mutex in mac80211

Using separate locks in cfg80211 and mac80211 has always
caused issues, for example having to unlock in places in
mac80211 to call cfg80211, which even needed a framework
to make cfg80211 calls after some functions returned etc.

Additionally, I suspect some issues people have reported
with the cfg80211 state getting confused could be due to
such issues, when cfg80211 is asking mac80211 to change
state but mac80211 is in the process of telling cfg80211
that the state changed (in another way.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
14 files changed:
Documentation/DocBook/80211.tmpl
include/net/cfg80211.h
net/mac80211/cfg.c
net/mac80211/debugfs_netdev.c
net/mac80211/ht.c
net/mac80211/ibss.c
net/mac80211/ieee80211_i.h
net/mac80211/main.c
net/mac80211/mesh.c
net/mac80211/mesh_plink.c
net/mac80211/mlme.c
net/mac80211/util.c
net/wireless/mlme.c
net/wireless/trace.h