Skip to content

Commit

Permalink
mac80211_hwsim: fixup for tsf setting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Javier Cardona authored and John W. Linville committed Apr 16, 2012
1 parent dcca1cf commit b6ba82c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/mac80211_hwsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit b6ba82c

Please sign in to comment.