Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

p54: improve TSF timestamp precision

The LMAC API states that the TSF clock value of
every rx'ed frame is a "usec accurate timestamp
of the hardware clock at the end of frame
(before OFDM SIFS EOF padding)".

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Christian Lamparter and committed by
John W. Linville
725d255e 1d815ef4

+5 -1
+5 -1
drivers/net/wireless/p54/txrx.c
··· 369 369 rx_status->mactime = ((u64)priv->tsf_high32) << 32 | tsf32; 370 370 priv->tsf_low32 = tsf32; 371 371 372 - rx_status->flag |= RX_FLAG_MACTIME_START; 372 + /* LMAC API Page 10/29 - s_lm_data_in - clock 373 + * "usec accurate timestamp of hardware clock 374 + * at end of frame (before OFDM SIFS EOF padding" 375 + */ 376 + rx_status->flag |= RX_FLAG_MACTIME_END; 373 377 374 378 if (hdr->flags & cpu_to_le16(P54_HDR_FLAG_DATA_ALIGN)) 375 379 header_len += hdr->align[0];