Skip to content

Commit e576def

Browse files
twpedersenlinvjw
authored andcommitted
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>
1 parent 75d7dbc commit e576def

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

  • drivers/net/wireless/ath/ath5k

‎drivers/net/wireless/ath/ath5k/base.c‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,20 +1336,9 @@ ath5k_receive_frame(struct ath5k_hw *ah, struct sk_buff *skb,
13361336
* 15bit only. that means TSF extension has to be done within
13371337
* 32768usec (about 32ms). it might be necessary to move this to
13381338
* 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...
13501339
*/
13511340
rxs->mactime = ath5k_extend_tsf(ah, rs->rs_tstamp);
1352-
rxs->flag |= RX_FLAG_MACTIME_START;
1341+
rxs->flag |= RX_FLAG_MACTIME_END;
13531342

13541343
rxs->freq = ah->curchan->center_freq;
13551344
rxs->band = ah->curchan->band;

0 commit comments

Comments
 (0)