This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

I am trying to measure distance between two computers who are connected with a wifi ad-hoc by using time of arrival to determine the distance.

I am using TP-Link 722N with Atheros AR9271 chipset and ath9k_htc Driver i am trying to get rx/tx timestamps from the wlan card, is there any way to get rx/tx timestamps to do the necessary calculations to get the distance between the computers?

asked 08 Aug '14, 06:26

Fredrik00's gravatar image

Fredrik00
1111
accept rate: 0%


I don't know if the AR9271 is at all able to generate HW timestamps. Please read my answer to the following questions for similar questions:

http://ask.wireshark.org/questions/28525/wlanwifi-adapters-that-support-hardware-timestamp
http://ask.wireshark.org/questions/28683/recommended-wireless-adapter-usb-with-linux-wireshark-that-reports-mactime-in-radiotap-header

Regards
Kurt

permanent link

answered 10 Aug '14, 07:01

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

With the lines you suggested in one of the other discussions [email protected]:~# airmon-ng start wlan0 [email protected]:~# tcpdump -ni mon0 -w /tmp/k1.pcap

[email protected]:~# tshark -nr /tmp/k1.pcap -T fields -e frame.number -e radiotap.mactime

it does give me values so if I understand you correctly that should mean that the wlan card supports hardware timestamps.

-Fredrik

(11 Aug '14, 04:07) Fredrik00

it does give me values so if I understand you correctly that should mean that the wlan card supports hardware timestamps.

Without having seen a capture file, I'd say: I guess so...

(11 Aug '14, 04:12) Kurt Knochner ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×62
×4

question asked: 08 Aug '14, 06:26

question was seen: 1,721 times

last updated: 11 Aug '14, 04:12

p​o​w​e​r​e​d by O​S​Q​A