diff options
author | Thomas Pedersen <thomas@cozybit.com> | 2012-12-10 17:48:03 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-12-11 16:00:39 -0500 |
commit | e576defd1fe1ade5afe590eadd556dce5473fc26 (patch) | |
tree | 3db058be2463a95314dcf7ef108830fb5c9f6bc0 /drivers | |
parent | 75d7dbc280bb75d2bdce59c5969a812f38255f54 (diff) |
ath5k: RX timestamp is reported at end of frame
This is true for at least AR5213, and shouldn't be different for other
ath5k PHYs. Tested on AR2413 and AR5414.
Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Tested-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 4ad40cfe9ce0..30ca0a60a64c 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c | |||
@@ -1336,20 +1336,9 @@ ath5k_receive_frame(struct ath5k_hw *ah, struct sk_buff *skb, | |||
1336 | * 15bit only. that means TSF extension has to be done within | 1336 | * 15bit only. that means TSF extension has to be done within |
1337 | * 32768usec (about 32ms). it might be necessary to move this to | 1337 | * 32768usec (about 32ms). it might be necessary to move this to |
1338 | * the interrupt handler, like it is done in madwifi. | 1338 | * the interrupt handler, like it is done in madwifi. |
1339 | * | ||
1340 | * Unfortunately we don't know when the hardware takes the rx | ||
1341 | * timestamp (beginning of phy frame, data frame, end of rx?). | ||
1342 | * The only thing we know is that it is hardware specific... | ||
1343 | * On AR5213 it seems the rx timestamp is at the end of the | ||
1344 | * frame, but I'm not sure. | ||
1345 | * | ||
1346 | * NOTE: mac80211 defines mactime at the beginning of the first | ||
1347 | * data symbol. Since we don't have any time references it's | ||
1348 | * impossible to comply to that. This affects IBSS merge only | ||
1349 | * right now, so it's not too bad... | ||
1350 | */ | 1339 | */ |
1351 | rxs->mactime = ath5k_extend_tsf(ah, rs->rs_tstamp); | 1340 | rxs->mactime = ath5k_extend_tsf(ah, rs->rs_tstamp); |
1352 | rxs->flag |= RX_FLAG_MACTIME_START; | 1341 | rxs->flag |= RX_FLAG_MACTIME_END; |
1353 | 1342 | ||
1354 | rxs->freq = ah->curchan->center_freq; | 1343 | rxs->freq = ah->curchan->center_freq; |
1355 | rxs->band = ah->curchan->band; | 1344 | rxs->band = ah->curchan->band; |