From: Stanislaw Gruszka <sgruszka@redhat.com>
To: wwguy <wey-yi.w.guy@intel.com>
Cc: Intel Linux Wireless <ilw@linux.intel.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH 4/5] iwlwifi: fix ack health for WiFi/BT combo devices
Date: Wed, 9 Feb 2011 07:26:45 +0100 [thread overview]
Message-ID: <20110209062645.GB2184@redhat.com> (raw)
In-Reply-To: <1297179370.20613.30.camel@wwguy-ubuntu>
On Tue, Feb 08, 2011 at 07:36:10AM -0800, wwguy wrote:
> Hi Stanislaw,
>
> On Tue, 2011-02-08 at 00:31 -0800, Stanislaw Gruszka wrote:
> > Combo devices have TX statistics on different place, because
> > struct statistics_rx_bt and struct statistics_rx have different
> > size. User proper values on combo devices instead of random data.
> >
> > Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
> > ---
> > drivers/net/wireless/iwlwifi/iwl-agn.c | 9 +++++++--
> > 1 files changed, 7 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
> > index 8c4ca39..6dd5001 100644
> > --- a/drivers/net/wireless/iwlwifi/iwl-agn.c
> > +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
> > @@ -1419,8 +1419,13 @@ bool iwl_good_ack_health(struct iwl_priv *priv, struct iwl_rx_packet *pkt)
> > if (priv->_agn.agg_tids_count)
> > return true;
> >
> > - cur = &pkt->u.stats.tx;
> > - old = &priv->_agn.statistics.tx;
> > + if (iwl_bt_statistics(priv)) {
> > + cur = &pkt->u.stats_bt.tx;
> > + old = &priv->_agn.statistics_bt.tx;
> > + } else {
> > + cur = &pkt->u.stats.tx;
> > + old = &priv->_agn.statistics.tx;
> > + }
> >
> > actual_delta = le32_to_cpu(cur->actual_ack_cnt) -
> > le32_to_cpu(old->actual_ack_cnt);
>
> Should this combine with 3/5?
This bug was there before my 3'rd patch, it was just hard
to see it. I would like to have fix separate for documenting
purposes.
Stanislaw
next prev parent reply other threads:[~2011-02-09 6:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-08 8:31 [PATCH 1/5] iwlwifi: cleanup iwl_recover_from_statistics Stanislaw Gruszka
2011-02-08 8:31 ` [PATCH 2/5] iwlwifi: cleanup {iwl,iwl3945}_good_plcp_health Stanislaw Gruszka
2011-02-08 15:24 ` wwguy
2011-02-09 6:24 ` Stanislaw Gruszka
2011-02-09 17:03 ` wwguy
2011-02-08 8:31 ` [PATCH 3/5] iwlwifi: cleanup iwl_good_ack_health Stanislaw Gruszka
2011-02-08 15:32 ` wwguy
2011-02-08 8:31 ` [PATCH 4/5] iwlwifi: fix ack health for WiFi/BT combo devices Stanislaw Gruszka
2011-02-08 15:36 ` wwguy
2011-02-09 6:26 ` Stanislaw Gruszka [this message]
2011-02-09 17:04 ` wwguy
2011-02-08 8:31 ` [PATCH 5/5] iwlwifi: avoid too frequent recover from statistics Stanislaw Gruszka
2011-02-08 15:45 ` wwguy
2011-02-09 6:28 ` Stanislaw Gruszka
2011-02-09 17:05 ` wwguy
2011-02-08 15:16 ` [PATCH 1/5] iwlwifi: cleanup iwl_recover_from_statistics wwguy
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=20110209062645.GB2184@redhat.com \
--to=sgruszka@redhat.com \
--cc=ilw@linux.intel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=wey-yi.w.guy@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).