]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2271e0a2da68e31bbdeee64bf94968530ddcc300
tree1008a4f0b6e29a0e19522317333e912c4c2e2898
parent4830256e7239017385d55fda36b0f49be87ecf2f
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