]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: explicitly copy channels to VLANs where needed
authorJohannes Berg <johannes.berg@intel.com>
Fri, 8 Feb 2013 11:07:44 +0000 (12:07 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Feb 2013 17:44:57 +0000 (18:44 +0100)
commitc558b728d2416a9128139061fdad5f69f1143ad8
treed7ae579e6dff49cfc5c8eca2812fa04faa7246fc
parent0023326ca789e9668da429ecb976c650135243b6
mac80211: explicitly copy channels to VLANs where needed

Currently the code assigns channel contexts to VLANs
(for use by the TX/RX code) when the AP master gets
its channel context assigned. This works fine, but
in the upcoming radar detection work the VLANs don't
require a channel context (during radar detection)
and assigning one to them anyway causes issues with
locking and also inconsistencies -- a VLAN interface
that is added before radar detection would get the
channel context, while one added during it wouldn't.

Fix these issues moving the channel context copying
to a new explicit operation that will not be used
in the radar detection code.

Acked-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/chan.c
net/mac80211/ieee80211_i.h