OSDN Git Service

mac80211: allow reservation of a running chanctx
authorLuciano Coelho <luciano.coelho@intel.com>
Thu, 27 Feb 2014 12:33:47 +0000 (14:33 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 9 Apr 2014 08:55:56 +0000 (10:55 +0200)
commit5d52ee81101943c507f45c76368026935f6bb75a
treec048e3cf544e0e87448d4974a9b41e7f435a098a
parent11335a550b6ac924634f0b77b7a84b6c4f3d8477
mac80211: allow reservation of a running chanctx

With single-channel drivers, we need to be able to change a running
chanctx if we want to use chanctx reservation.  Not all drivers may be
able to do this, so add a flag that indicates support for it.

Changing a running chanctx can also be used as an optimization in
multi-channel drivers when the context needs to be reserved for future
usage.

Introduce IEEE80211_CHANCTX_RESERVED chanctx mode to mark a channel as
reserved so nobody else can use it (since we know it's going to
change).  In the future, we may allow several vifs to use the same
reservation as long as they plan to use the chanctx on the same
future channel.

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