All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleksij Rempel <linux@rempel-privat.de>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [ath9k_htc] TX retry packet
Date: Mon, 15 Jul 2013 22:16:44 +0200	[thread overview]
Message-ID: <51E458AC.4040308@rempel-privat.de> (raw)
In-Reply-To: <CAPfemNeQTfPOokxKdvtSk7jYTuT3L+Bf_r=YE5et_v2dVXc9zQ@mail.gmail.com>

Am 15.07.2013 18:19, schrieb Matteo Danieletto:
> Hi all,
> I am looking for the number of packets (frame) retransmitted during a
> finite interval.
> The USB adapter is TL-WN722N (driver ath9k_htc) and I am testing it in
> IBSS mode with kernel 3.2.0 .
>
> I found
> in /sys/kernel/debug/ieee80211/phy1/netdev:wlan3/stations/00:1d:7d:49:2e:4e/tx_retry_count
>
> but the output is always 0 .
>
> So, for my point of view is strange that never occurred a mac
> retransmission.
> Do you know if it is a common problem?
>
> I have tried even with an ath9k and this time it worked.
>
> Do you know which is the C struct I need to read to find the number of
> retransmission?

Hi Matteo,

you need to digg into firmware. Retransmission is done some where here 
target_firmware/wlan/if_owl.c:
ath_tx_retry_subframe()

or some thing like this. You are welcome to provide patches ;)
see:
https://github.com/qca/open-ath9k-htc-firmware

I also started to work on documentaion... there are some drafts, may be 
it will help you understand how firmware works:

https://github.com/qca/open-ath9k-htc-firmware/wiki/usb-regs

https://docs.google.com/document/d/1pg27qHGx-2hsx9tGCwj0l9EtJZU-viquaOKC02WRt6Y/pub
-- 
Regards,
Oleksij

  reply	other threads:[~2013-07-15 20:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-15 16:19 [ath9k-devel] [ath9k_htc] TX retry packet Matteo Danieletto
2013-07-15 20:16 ` Oleksij Rempel [this message]
2013-07-19 16:46   ` Matteo
     [not found] <mailman.3.1373968801.13046.ath9k-devel@lists.ath9k.org>
2013-07-16 10:58 ` Michal Kudelski

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=51E458AC.4040308@rempel-privat.de \
    --to=linux@rempel-privat.de \
    --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.