From: Felix Fietkau <nbd@openwrt.org>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] ts_tstamp field in ath_tx_status is set
Date: Wed, 27 Feb 2013 16:35:02 +0100 [thread overview]
Message-ID: <512E27A6.8090308@openwrt.org> (raw)
In-Reply-To: <CAE+zGOg1D8zrKs2A4n=Rec4oLHMq8cbEiS=XwEvx31PZx+jnuQ@mail.gmail.com>
On 2013-02-27 4:26 PM, abhinav narain wrote:
>
> > As the timestamp of 4 frames are the same or or the sum of bytes of 4
> > frames is 1542 bytes as the descriptor gives 1542 ? I thought ampdu
> >>1500 bytes (4K or 8K)
> > Is it because frames are split up ( before ath_tx_complete_buf()) on
> > their way back to mac80211.
> Frames are variable length, so obviously A-MPDUs are as well. An A-MPDU
> is simply a bunch of MPDUs sent together with one PHY header, separated
> by delimiters.
>
> I know the above basics :-)
> I was asking in the specific case I have shown in the email,
> how to interpret the ath_tx_status entries in this case.
>> *[315063930, 14,[[65.0, 4], [58.5, 5], [65.0, 5]], 706,1542]*
>> *[315063930, 14,[[65.0, 4], [58.5, 5], [65.0, 5]], 707,1542]*
>> *[315063930, 14,[[65.0, 4], [58.5, 5], [65.0, 5]], 708,1542]*
>> *[315063930, 14,[[65.0, 4], [58.5, 5], [65.0, 5]], 709,1542]*
>
> Is the ampdu size=1542 ? consisting of 4 frames with seq.no
> <http://seq.no>. 706-709 ? or size=1542*4.
I'd say, probably. I have no clue where/how you're dumping the data. The
code has enough hints that show how A-MPDU status is processed (take a
look at minstrel_ht to see how it's effectively interpreted).
> > (2) Another scenerio that intrigued me was the following :
> > [timestamp,retx count,rate,seq no. , framesize ]
> > [315065076,0, 65.0, [], *710*, 1542]
> > [315065076,14, 65.0,[[65.0, 4], [58.5, 5], [65.0, 5]], *711*, 1542]
> > [315065599,,0, 65.0,[], *712*, 1542]
> > If these two (710,711) were sent at the same time : are they ampdu ? I
> > guess not !
> > But there are two different values of rates in ath_rx_status
> descriptor,
> > which I can't reconcile with.
> >
> > Please throw some light on the above two cases.
> There's code in current ath9k that passes the A-MPDU rx status to
>
>
> I am talking here about *tx* status in ath9k/xmit.c.
> Please notice that I am finding difficulty In the xmit path.
Ah, ok, so ath_rx_status was a typo.
> In recv.c, I see there is a rs_moreaggr flag in ath_*rx*_status which I
> can look for aggregation.
>
> mac80211 for inclusion in radiotap. I suggest you rely on hardware
> information instead of guesswork.
>
> I am still confused what the hardware feedback is in ath_*tx*_status in
> xmit.c
I already pointed out to you that the tx status is reported for an
entire aggregate, not individual subframes. If you take a look at the
part where it reports the status to mac80211 and look at minstrel_ht to
see how it's interpreted, you should be able to figure it out - I'm not
going to do that work for you.
- Felix
prev parent reply other threads:[~2013-02-27 15:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-25 6:35 [ath9k-devel] ts_tstamp field in ath_tx_status is set abhinav narain
2013-02-25 18:11 ` Adrian Chadd
2013-02-25 20:53 ` abhinav narain
2013-02-25 21:01 ` Felix Fietkau
2013-02-26 18:51 ` abhinav narain
2013-02-26 23:03 ` Felix Fietkau
2013-02-27 8:58 ` abhinav narain
2013-02-27 9:05 ` Felix Fietkau
2013-02-27 15:26 ` abhinav narain
2013-02-27 15:35 ` Felix Fietkau [this message]
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=512E27A6.8090308@openwrt.org \
--to=nbd@openwrt.org \
--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.