All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu1011@gmail.com>
To: linux-wireless@vger.kernel.org, linuxwifi@intel.com
Subject: Precise time synchronization via wifi interface (intel AX201 iwlwifi driver)
Date: Thu, 5 Mar 2020 10:07:29 +0100	[thread overview]
Message-ID: <032f07e2-2771-619b-52b4-a25c8cd10f86@gmail.com> (raw)

Hi,

I am trying to achieve precise time synchronization via wifi interface.

I used intel AX201 card, certified with TimeSync, 802.11v, mc. So I 
assume it has the capability to do hardware time stamp when running 
applications like linux ptp (http://linuxptp.sourceforge.net/) and gptp 
(https://github.com/Avnu/gptp). However I get error that seems to 
suggest the timestamp mode is not supported.

After reading some source code, I discover that the /ptp4l/ application, 
or /gptp/, or /ethtool/ /-T/ , they all use a system call /ioctl/, which 
uses ethtool_ops call back to determine whether the hardware can do 
software/hardware timestamp.

However when searching in the driver/net/wireless/iwlwifi directory, I 
don't see anywhere /ethtool_ops/ is being implemented in the driver. So 
this most likely is why all user space tools I tried seem to determine 
the card cannot do hardware and also software (driver level) transmit 
timestamp.

Can someone tell me how I could run ptp like application to fully make 
use of the Timesync feature of intel card?

Some more details below:

root@localhost:/debug/tracing# ethtool -i wlp2s0
driver: iwlwifi
version: 5.4.6-050406-generic
firmware-version: 48.4fa0041f.0
expansion-rom-version:
bus-info: 0000:02:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

root@localhost:/debug/tracing# ethtool -T wlp2s0
Time stamping parameters for wlp2s0:
Capabilities:
         software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
         software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none

             reply	other threads:[~2020-03-05  9:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-05  9:07 Wei Liu [this message]
2020-03-05 11:29 ` Precise time synchronization via wifi interface (intel AX201 iwlwifi driver) Toke Høiland-Jørgensen
2020-03-05 13:57   ` Wei Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=032f07e2-2771-619b-52b4-a25c8cd10f86@gmail.com \
    --to=wei.liu1011@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linuxwifi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.