All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Pedersen <thomas@cozybit.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] ath9k_htc and reported mactime
Date: Sat, 20 Oct 2012 19:41:14 -0700	[thread overview]
Message-ID: <20121021024114.GA9558@shredder> (raw)
In-Reply-To: <CAG6hwVP5YkBEN9vZPGGEHbK=9ow2wJJ1x_BvSQbDzUscTiOHTA@mail.gmail.com>

re-sending non-HTML to l-w.

Hi list,
 
We're seeing some issue with reported mactime by the ath9k_htc (AR9271)
card. Here is a mesh node sampling peer beacons:
 
[  327.928774] got beacon from 00:03:7f:10:4e:1a at 80969926, now is: 80940131. offset == 29795
[  329.716530] got beacon from 64:70:02:0a:4e:a8 at 82824946, now is: 82727604. offset == 97342
[  329.974276] got beacon from 00:03:7f:10:4d:f7 at 83082820, now is: 82985314. offset == 97506
[  329.977528] got beacon from 00:03:7f:10:4e:1a at 83084622, now is: 82988562. offset == 96060
[  331.764782] got beacon from 64:70:02:0a:4e:a8 at 84774638, now is: 84775531. offset == -893
[  332.022278] got beacon from 00:03:7f:10:4e:1a at 85064980, now is: 85033000. offset == 31980
[  332.025529] got beacon from 00:03:7f:10:4d:f7 at 85033451, now is: 85036249. offset == -2798
[  333.814536] got beacon from 64:70:02:0a:4e:a8 at 86824159, now is: 86824975. offset == -816
[  334.260908] got beacon from 00:03:7f:10:4e:11 at 87270487, now is: 87271277. offset == -790
[  335.861412] got beacon from 64:70:02:0a:4e:a8 at 89100008, now is: 88871534. offset == 228474
[  336.119176] got beacon from 00:03:7f:10:4d:f7 at 89128456, now is: 89129238. offset == -782
[  336.308535] got beacon from 00:03:7f:10:4e:11 at 89317801, now is: 89318590. offset == -789
[  337.909662] got beacon from 64:70:02:0a:4e:a8 at 90951396, now is: 90919468. offset == 31928
[  338.168034] got beacon from 00:03:7f:10:4e:1a at 91209720, now is: 91177797. offset == 31923
[  338.171285] got beacon from 00:03:7f:10:4d:f7 at 91211047, now is: 91181053. offset == 29994
[  338.356286] got beacon from 00:03:7f:10:4e:11 at 91463481, now is: 91366022. offset == 97459
[  338.734784] got beacon from f8:d1:11:65:92:e4 at 91743653, now is: 91744461. offset == -808
[  339.958041] got beacon from 64:70:02:0a:4e:a8 at 92966623, now is: 92967531. offset == -908
[  340.217914] got beacon from 00:03:7f:10:4d:f7 at 93226490, now is: 93227356. offset == -866
[  340.408290] got beacon from 00:03:7f:10:4e:11 at 93449578, now is: 93417704. offset == 31874
[  342.006291] got beacon from 64:70:02:0a:4e:a8 at 95014620, now is: 95015461. offset == -841
[  342.264413] got beacon from 00:03:7f:10:4e:1a at 95272637, now is: 95273538. offset == -901
[  342.453286] got beacon from 00:03:7f:10:4e:11 at 95461607, now is: 95462386. offset == -779
[  342.833168] got beacon from f8:d1:11:65:92:e4 at 95939657, now is: 95842204. offset == 97453

The number after "at" is rx_status->mactime, "now" is drv_get_tsf(), and
offset (ie. stack delay) is mactime - tsf. RX_FLAG_MACTIME_MPDU is on for
all frames, and mesh sync is not adjusting the TSF.

How can we possibly receive frames from the future!?

Thanks in advance,
Thomas

WARNING: multiple messages have this Message-ID (diff)
From: Thomas Pedersen <thomas@cozybit.com>
To: ath9k-devel@lists.ath9k.org,
	linux-wireless <linux-wireless@vger.kernel.org>
Cc: Bob Copeland <me@bobcopeland.com>
Subject: Re: ath9k_htc and reported mactime
Date: Sat, 20 Oct 2012 19:41:14 -0700	[thread overview]
Message-ID: <20121021024114.GA9558@shredder> (raw)
In-Reply-To: <CAG6hwVP5YkBEN9vZPGGEHbK=9ow2wJJ1x_BvSQbDzUscTiOHTA@mail.gmail.com>

re-sending non-HTML to l-w.

Hi list,
 
We're seeing some issue with reported mactime by the ath9k_htc (AR9271)
card. Here is a mesh node sampling peer beacons:
 
[  327.928774] got beacon from 00:03:7f:10:4e:1a at 80969926, now is: 80940131. offset == 29795
[  329.716530] got beacon from 64:70:02:0a:4e:a8 at 82824946, now is: 82727604. offset == 97342
[  329.974276] got beacon from 00:03:7f:10:4d:f7 at 83082820, now is: 82985314. offset == 97506
[  329.977528] got beacon from 00:03:7f:10:4e:1a at 83084622, now is: 82988562. offset == 96060
[  331.764782] got beacon from 64:70:02:0a:4e:a8 at 84774638, now is: 84775531. offset == -893
[  332.022278] got beacon from 00:03:7f:10:4e:1a at 85064980, now is: 85033000. offset == 31980
[  332.025529] got beacon from 00:03:7f:10:4d:f7 at 85033451, now is: 85036249. offset == -2798
[  333.814536] got beacon from 64:70:02:0a:4e:a8 at 86824159, now is: 86824975. offset == -816
[  334.260908] got beacon from 00:03:7f:10:4e:11 at 87270487, now is: 87271277. offset == -790
[  335.861412] got beacon from 64:70:02:0a:4e:a8 at 89100008, now is: 88871534. offset == 228474
[  336.119176] got beacon from 00:03:7f:10:4d:f7 at 89128456, now is: 89129238. offset == -782
[  336.308535] got beacon from 00:03:7f:10:4e:11 at 89317801, now is: 89318590. offset == -789
[  337.909662] got beacon from 64:70:02:0a:4e:a8 at 90951396, now is: 90919468. offset == 31928
[  338.168034] got beacon from 00:03:7f:10:4e:1a at 91209720, now is: 91177797. offset == 31923
[  338.171285] got beacon from 00:03:7f:10:4d:f7 at 91211047, now is: 91181053. offset == 29994
[  338.356286] got beacon from 00:03:7f:10:4e:11 at 91463481, now is: 91366022. offset == 97459
[  338.734784] got beacon from f8:d1:11:65:92:e4 at 91743653, now is: 91744461. offset == -808
[  339.958041] got beacon from 64:70:02:0a:4e:a8 at 92966623, now is: 92967531. offset == -908
[  340.217914] got beacon from 00:03:7f:10:4d:f7 at 93226490, now is: 93227356. offset == -866
[  340.408290] got beacon from 00:03:7f:10:4e:11 at 93449578, now is: 93417704. offset == 31874
[  342.006291] got beacon from 64:70:02:0a:4e:a8 at 95014620, now is: 95015461. offset == -841
[  342.264413] got beacon from 00:03:7f:10:4e:1a at 95272637, now is: 95273538. offset == -901
[  342.453286] got beacon from 00:03:7f:10:4e:11 at 95461607, now is: 95462386. offset == -779
[  342.833168] got beacon from f8:d1:11:65:92:e4 at 95939657, now is: 95842204. offset == 97453

The number after "at" is rx_status->mactime, "now" is drv_get_tsf(), and
offset (ie. stack delay) is mactime - tsf. RX_FLAG_MACTIME_MPDU is on for
all frames, and mesh sync is not adjusting the TSF.

How can we possibly receive frames from the future!?

Thanks in advance,
Thomas

  reply	other threads:[~2012-10-21  2:41 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-21  2:32 [ath9k-devel] ath9k_htc and reported mactime Thomas Pedersen
2012-10-21  2:41 ` Thomas Pedersen [this message]
2012-10-21  2:41   ` Thomas Pedersen
2012-10-22 14:31 ` [ath9k-devel] " Adrian Chadd
2012-10-22 14:31   ` Adrian Chadd
2012-10-23 19:06   ` [ath9k-devel] Performance degradation when monitor interface is enabled Ali Abedi
2012-10-23 19:20     ` Adrian Chadd
2012-10-23 20:36       ` Ali Abedi
2012-10-23 20:51         ` Adrian Chadd
2012-10-25 19:46           ` Ali Abedi
2012-10-25 19:52             ` abhinav narain
2012-10-27 19:24             ` [ath9k-devel] Channel busy cycles Ali Abedi
2012-10-27 23:42               ` Adrian Chadd
2012-10-27 23:50                 ` Ali Abedi
2012-10-28  6:25                   ` Adrian Chadd
2012-10-28 13:59                     ` Ali Abedi
2012-10-28 18:40                       ` Adrian Chadd
     [not found]                         ` <508DADC6.9080309@mailservices.uwaterloo.ca>
2012-10-29  2:33                           ` Adrian Chadd
2012-10-29  3:49                             ` Wright, Brett
2012-10-29  3:54                               ` Adrian Chadd
     [not found]                                 ` <50907DD8.1030607@mailservices.uwaterloo.ca>
     [not found]                                   ` <CAJ-Vmo=E_iDMYO6sP7dVqfnNFTMR1xKT5Y4-7dDGL2EPYqt0cA@mail.gmail.com>
     [not found]                                     ` <509168B9.7000508@mailservices.uwaterloo.ca>
2012-10-31 18:54                                       ` Ali Abedi
     [not found]                                       ` <CAJ-Vmok=5kzx_5swJm1UOz=4U2vM0YgChGnxvVX45hdpm-=aCQ@mail.gmail.com>
     [not found]                                         ` <48EC4E8D43A28947B1AB2639FA97CDB90C0480BC@nasanexd02a.na.qualcomm.com>
     [not found]                                           ` <1938DD2280AE524AAB886A6036F7922A23476EE8@nasanexd02a.na.qualcomm.com>
     [not found]                                             ` <48EC4E8D43A28947B1AB2639FA97CDB90C0480E3@nasanexd02a.na.qualcomm.com>
     [not found]                                               ` <A61E02718FA45C4797F54E7EF4F2EC8F2384EFAF@nasanexd02a.na.qualcomm.com>
     [not found]                                                 ` <48EC4E8D43A28947B1AB2639FA97CDB90C048ECC@nasanexd02a.na.qualcomm.com>
2012-11-09 21:34                                                   ` [ath9k-devel] Fwd: FW: " Adrian Chadd
2012-11-11  5:02                                                     ` Ali Abedi
2012-11-11 16:10                                                       ` Adrian Chadd
2012-10-24 19:45   ` [ath9k-devel] ath9k_htc and reported mactime Thomas Pedersen
2012-10-24 19:45     ` Thomas Pedersen
2012-10-24 21:22     ` Adrian Chadd
2012-10-24 21:22       ` Adrian Chadd
2012-10-24 21:26       ` Adrian Chadd
2012-10-24 21:26         ` Adrian Chadd
2012-10-24 22:08         ` Thomas Pedersen
2012-10-24 22:08           ` Thomas Pedersen
2012-10-24 23:33           ` Adrian Chadd
2012-10-24 23:33             ` Adrian Chadd
2012-10-25  1:54             ` Adrian Chadd
2012-10-25  1:54               ` Adrian Chadd
2012-10-25  2:13               ` Adrian Chadd
2012-10-25  2:13                 ` Adrian Chadd
2012-10-25 20:42               ` Adrian Chadd
2012-10-25 20:42                 ` Adrian Chadd
2012-10-25 22:25                 ` Thomas Pedersen
2012-10-25 22:25                   ` Thomas Pedersen
2012-10-25 22:27                   ` Adrian Chadd
2012-10-25 22:27                     ` Adrian Chadd
2012-10-26  0:41                     ` Thomas Pedersen
2012-10-26  0:41                       ` Thomas Pedersen
2012-10-26  0:42                       ` Adrian Chadd
2012-10-26  0:42                         ` Adrian Chadd
2012-10-24 22:04       ` Thomas Pedersen
2012-10-24 22:04         ` Thomas Pedersen

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=20121021024114.GA9558@shredder \
    --to=thomas@cozybit.com \
    --cc=ath9k-devel@lists.ath9k.org \
    /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.