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

Geting rx/tx timestamps from TP-Link 722N

0

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%


One Answer:

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

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 ♦