]> 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)
commit6801a9e5f2038656550bbfaa45c49f50b58ddb5f
tree8fd17631d3377a97be2ccb2181739b4077cf8011
parentd714f5d2d0e2751bb9cbd0f00c86bf4e0ec1fd59
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