mac80211: refactor ieee80211_assign/unassign_vif_chanctx into one
authorLuciano Coelho <luciano.coelho@intel.com>
Tue, 11 Mar 2014 16:24:12 +0000 (18:24 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 9 Apr 2014 08:55:52 +0000 (10:55 +0200)
commit77eeba974fad3046d48697f004de43cae3706927
tree1008a4f0b6e29a0e19522317333e912c4c2e2898
parent33ffd952c252b7943dd5d051af3eeacc0bb3c23e
mac80211: refactor ieee80211_assign/unassign_vif_chanctx into one

Combine the functions into one, so that we can switch from one context
to the other without having to unassign and assign separately.  This
is needed by the channel reservation functionality because otherwise
we have a small period of time when the chanctx is set to NULL, which
can cause problems if someone else is trying to dereference it.

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