Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Ben Greear <greearb@candelatech.com>,
	Steve deRosier <derosier@gmail.com>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: Where to report mpdus tx vs failed?
Date: Tue, 23 Oct 2018 11:36:12 +0200	[thread overview]
Message-ID: <67d0b8ec7d01ac452dfa5a1a8c2389adaa221d6b.camel@sipsolutions.net> (raw)
In-Reply-To: <ae110050-1eec-25c4-57ba-86b42aae2930@candelatech.com>

On Mon, 2018-10-22 at 10:16 -0700, Ben Greear wrote:

> > > We have NL80211_STA_INFO_TX_RETRIES, shouldn't you be able to capture it
> > > there?
> > 
> > Or, per TID, NL80211_TID_STATS_TX_MSDU_RETRIES
> 
> I added this code (rate is struct ieee80211_tx_rate)
> 
> 	if (tx_done->mpdus_failed) {
> 		/* Maybe there is a better way to report this tried vs failed stat up the stack? */
> 		rate->count = tx_done->mpdus_failed + 1;
> 	}
> 	else {
> 		rate->count = 1;
> 	}

Ah, you were asking about mac80211?

I guess if you have the statistic, you can override it in
get_sta_stats() instead of trying to make mac80211 keep them based on
the rate (control) information.

johannes


      reply	other threads:[~2018-10-23  9:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-19 17:34 Where to report mpdus tx vs failed? Ben Greear
2018-10-19 18:25 ` Steve deRosier
2018-10-19 18:32   ` Ben Greear
2018-10-22 12:06     ` Johannes Berg
2018-10-22 12:07       ` Johannes Berg
2018-10-22 17:16         ` Ben Greear
2018-10-23  9:36           ` Johannes Berg [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=67d0b8ec7d01ac452dfa5a1a8c2389adaa221d6b.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=derosier@gmail.com \
    --cc=greearb@candelatech.com \
    --cc=linux-wireless@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox