mac80211_hwsim: fix beacon timestamp and mactime
authorThomas Pedersen <thomas@cozybit.com>
Mon, 7 Jan 2013 22:48:07 +0000 (14:48 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 11 Jan 2013 19:49:58 +0000 (14:49 -0500)
commitb66851c3c89629e72a2eaa54d1b838fb74dad644
treedd914ded35614222b2fde3970a35b6d191d9c2b9
parent29b7d9ad9112a95757c8030421dc3bd1b28ad8b5
mac80211_hwsim: fix beacon timestamp and mactime

Set the beacon timestamp once during "transmission" so the
monitor interface also gets a timestamped beacon.

Also use a common base between TX timestamp and RX
mactime. This eliminates "TX" path delay, which shows up
as a constant error in Toffset.

Get the global TSF once before iterating over all RX HWs,
so they all set a mactime with the same time base.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mac80211_hwsim.c