summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mac80211_hwsim.c
diff options
context:
space:
mode:
authorJavier Cardona <javier@cozybit.com>2012-04-12 23:32:21 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-04-16 20:19:29 +0200
commitb6ba82c893c48cfe48a98ee3dc50011832e764bd (patch)
tree896863b5b594c7efe043ad4f1d63ff34a74e636e /drivers/net/wireless/mac80211_hwsim.c
parentmac80211: Set the correct values for hwmp (1) and airtimeLinkMetric (1) (diff)
downloadlinux-b6ba82c893c48cfe48a98ee3dc50011832e764bd.tar.xz
linux-b6ba82c893c48cfe48a98ee3dc50011832e764bd.zip
mac80211_hwsim: fixup for tsf setting
Last patch I sent failed to take into account the offset of each phy. Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index 2d2bfce24fc1..3edd473d8acd 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -694,6 +694,7 @@ static bool mac80211_hwsim_tx_frame_no_nl(struct ieee80211_hw *hw,
ieee80211_is_probe_resp(mgmt->frame_control))
mgmt->u.beacon.timestamp = cpu_to_le64(
rx_status.mactime +
+ (data->tsf_offset - data2->tsf_offset) +
24 * 8 * 10 / txrate->bitrate);
memcpy(IEEE80211_SKB_RXCB(nskb), &rx_status, sizeof(rx_status));