]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: add explicit monitor interface if needed
authorJohannes Berg <johannes.berg@intel.com>
Tue, 3 Apr 2012 12:35:57 +0000 (14:35 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 11 Apr 2012 20:23:49 +0000 (16:23 -0400)
commit319a4e5d243977abd57b9fbaa495c8e350e983c5
tree7d79667ca414d70b99cb82a646d1a3c2cc466670
parent17443829e71efa8921d69f94f7f91a918f9d6f9a
mac80211: add explicit monitor interface if needed

The queue mapping redesign that I'm planning to do
will break pure injection unless we handle monitor
interfaces explicitly. One possible option would
be to have the driver tell mac80211 about monitor
mode queues etc., but that would duplicate the API
since we already need to have queue assignments
handled per virtual interface.

So in order to solve this, have a virtual monitor
interface that is added whenever all active vifs
are monitors. We could also use the state of one
of the monitor interfaces, but managing that would
be complicated, so allocate separate state.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mac80211_hwsim.c
include/net/mac80211.h
net/mac80211/driver-ops.h
net/mac80211/ieee80211_i.h
net/mac80211/iface.c
net/mac80211/pm.c
net/mac80211/tx.c
net/mac80211/util.c