]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: add a single-transaction driver op to switch contexts
authorLuciano Coelho <luciano.coelho@intel.com>
Fri, 23 May 2014 11:33:12 +0000 (14:33 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 26 May 2014 09:04:41 +0000 (11:04 +0200)
commit8e1f012e11d2288df73544a3a67518f4461761dc
tree8fd17631d3377a97be2ccb2181739b4077cf8011
parente9f5df598f084f11105c1eadc2e012335ea20fbe
mac80211: add a single-transaction driver op to switch contexts

In some cases, when the driver is already using all the channel
contexts it can handle at once, we have to do an in-place switch
(ie. we cannot afford using an extra context temporarily for the
transaction).  But some drivers may not support switching the channel
context assigned to a vif on the fly (ie. without unassigning and
assigning it) while others may only work if the context is changed on
the fly, without unassigning it first.

To allow these different scenarios, add a new driver operation that
let's the driver decide how to handle an in-place switch.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/driver-ops.h
net/mac80211/trace.h