]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
mac80211_hwsim: fix beacon timing
authorThomas Pedersen <thomas@cozybit.com>
Wed, 2 Jan 2013 22:55:18 +0000 (14:55 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Jan 2013 13:01:55 +0000 (14:01 +0100)
commitc51f878379b1d0677619798b1d9358d053bdbdb1
tree2fdfb9e013fc18094ee4b414bb5f91fdd5f2f7de
parent01e59e467ecf976c782eecd4dc99644802cc60e2
mac80211_hwsim: fix beacon timing

A beacon period starts at TSF time 0. Spoof this by
rounding the starting beacon time to a multiple of the
beacon interval, and keep TBTT aligned on TSF adjustment.

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