Re: [ath5k-devel] [PATCH] ath5k: RX timestamp is reported at end of frame

2012-11-14 Thread Bob Copeland
On Tue, Nov 13, 2012 at 08:27:43AM -0800, Sam Leffler wrote: It's close enough that if you adjust by the air time for the frame you'll get an accurate measure of when the preamble was received at the sta--at least accurate enough for me to synchronize clocks over 100+ km. Details are

Re: [ath5k-devel] [PATCH] ath5k: RX timestamp is reported at end of frame

2012-11-13 Thread Nick Kossifidis
2012/11/13 Bob Copeland m...@bobcopeland.com: On Mon, Nov 12, 2012 at 11:40:15AM -0800, Sam Leffler wrote: I'll do some testing tonight with whatever cards I have around here to see if we can at least get a better idea of which chipsets do what. From my experience doing tdma on ath chipsets

Re: [ath5k-devel] [PATCH] ath5k: RX timestamp is reported at end of frame

2012-11-13 Thread Sam Leffler
On Mon, Nov 12, 2012 at 8:32 PM, Bob Copeland m...@bobcopeland.com wrote: On Mon, Nov 12, 2012 at 11:40:15AM -0800, Sam Leffler wrote: I'll do some testing tonight with whatever cards I have around here to see if we can at least get a better idea of which chipsets do what. From my

[ath5k-devel] [PATCH] ath5k: RX timestamp is reported at end of frame

2012-11-13 Thread Thomas Pedersen
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 tho...@cozybit.com Tested-by: Bob Copeland m...@bobcopeland.com Acked-by: Nick Kossifidis mickfl...@gmail.com --- drivers/net/wireless/ath/ath5k/base.c |

Re: [ath5k-devel] [PATCH] ath5k: RX timestamp is reported at end of frame

2012-11-12 Thread Sam Leffler
On Mon, Nov 12, 2012 at 11:28 AM, Bob Copeland m...@bobcopeland.com wrote: On Mon, Nov 12, 2012 at 11:17:36AM -0800, Adrian Chadd wrote: [undid top-post] On 12 November 2012 10:53, Thomas Pedersen tho...@cozybit.com wrote: This is true for at least AR5213, and shouldn't be different for other

Re: [ath5k-devel] [PATCH] ath5k: RX timestamp is reported at end of frame

2012-11-12 Thread Bob Copeland
On Mon, Nov 12, 2012 at 11:17:36AM -0800, Adrian Chadd wrote: [undid top-post] On 12 November 2012 10:53, Thomas Pedersen tho...@cozybit.com wrote: This is true for at least AR5213, and shouldn't be different for other ath5k PHYs. It may be; that's the problem. :/ I'll do some testing

Re: [ath5k-devel] [PATCH] ath5k: RX timestamp is reported at end of frame

2012-11-12 Thread Adrian Chadd
Hi, It may be; that's the problem. :/ Adrian On 12 November 2012 10:53, Thomas Pedersen tho...@cozybit.com wrote: This is true for at least AR5213, and shouldn't be different for other ath5k PHYs. Signed-off-by: Thomas Pedersen tho...@cozybit.com ---

Re: [ath5k-devel] [PATCH] ath5k: RX timestamp is reported at end of frame

2012-11-12 Thread Adrian Chadd
On 12 November 2012 11:40, Sam Leffler sleff...@google.com wrote: From my experience doing tdma on ath chipsets I know the timestamp is a snapshot of the tsf recorded by the dma engine when it writes the descriptor on dma completion. This was only legacy frames; don't know how things work

Re: [ath5k-devel] [PATCH] ath5k: RX timestamp is reported at end of frame

2012-11-12 Thread Bob Copeland
On Mon, Nov 12, 2012 at 11:40:15AM -0800, Sam Leffler wrote: I'll do some testing tonight with whatever cards I have around here to see if we can at least get a better idea of which chipsets do what. From my experience doing tdma on ath chipsets I know the timestamp is a snapshot of the

[ath5k-devel] [PATCH] ath5k: RX timestamp is reported at end of frame

2012-11-12 Thread Thomas Pedersen
This is true for at least AR5213, and shouldn't be different for other ath5k PHYs. Signed-off-by: Thomas Pedersen tho...@cozybit.com --- drivers/net/wireless/ath/ath5k/base.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/net/wireless/ath/ath5k/base.c