Search Linux Wireless

Re: [PATCH 4/5] iwlwifi: fix ack health for WiFi/BT combo devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> > ---
> >  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
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux