mac80211_hwsim: hrtimer beacon
authorThomas Pedersen <thomas@cozybit.com>
Wed, 2 Jan 2013 22:55:17 +0000 (14:55 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Jan 2013 12:58:01 +0000 (13:58 +0100)
commit01e59e467ecf976c782eecd4dc99644802cc60e2
treec7810d37aad6404bc23500520e4e161868edc5df
parent45034bfb8c9ecc62db40b438bea7fe728ac8facf
mac80211_hwsim: hrtimer beacon

For testing various timing-sensitive protocols (power
save, MBCA, etc.), a beacon accuracy of jiffies is not
sufficient. A tasklet_hrtimer is used for the beacon since
it runs the callback in soft-IRQ context with hrtimer
resolution.

Also handle BSS_CHANGED_BEACON_ENABLED for hwsim.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
[simplify timer container_of]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c