mac80211: split ieee80211_vif_change_channel in two
authorLuciano Coelho <luciano.coelho@intel.com>
Thu, 30 Jan 2014 20:08:16 +0000 (22:08 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 9 Apr 2014 08:55:50 +0000 (10:55 +0200)
commit33ffd952c252b7943dd5d051af3eeacc0bb3c23e
tree454d4a14501be70d702a85f31457023f2b28be2b
parent4e141dad266908735967b0961c8d90187825e0bc
mac80211: split ieee80211_vif_change_channel in two

ieee80211_vif_change_channel() locks chanctx_mtx.  When implementing
channel reservation for CS, we will need to call the function to
change channel when the lock is already held, so split the part that
requires the lock out and leave the locking in the original function.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c