]> git.ipfire.org Git - people/ms/linux.git/commit - drivers/net/wireless/mac80211_hwsim.c
mac80211_hwsim: allow using channel contexts
authorJohannes Berg <johannes.berg@intel.com>
Fri, 27 Jul 2012 17:48:26 +0000 (19:48 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 30 Oct 2012 08:11:33 +0000 (09:11 +0100)
commite826117142d87c5fbdfd17a053f6a33ec90b20a4
tree6e8f73db4cda6d333080a33e1ee97edb13681aa0
parent6fb47de9cf1be4710fb9f364c500ff216fb47b34
mac80211_hwsim: allow using channel contexts

To use mac80211_hwsim for testing channel contexts it
has to support them, and for that it has to support
hw scan and hw-remain-on-channel.

Since it's pure software, the off-channel activities
are really not off-channel but listening and sending
on a second channel. Also, the multi-channel isn't
really doing TDM, it's just on both channels at the
same time.

For testing purposes, you can specify the number of
concurrent channels with a module parameter, it is
set to one by default. When set to two or more, the
userspace API for wmediumd is disabled as it has no
provisions for multi-channel yet.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c