Return-path: Received: from perninha.conectiva.com.br ([200.140.247.100]:38733 "EHLO perninha.conectiva.com.br" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752170AbYKQU3L (ORCPT ); Mon, 17 Nov 2008 15:29:11 -0500 From: Herton Ronaldo Krzesinski To: Johannes Berg Subject: Re: [PATCH] rtl8187: Fix transmission count sent to mac80211 Date: Mon, 17 Nov 2008 18:29:22 -0200 Cc: Larry Finger , John W Linville , "Hin-Tak Leung" , linux-wireless@vger.kernel.org References: <492188e5.bIuOh01ilT9fPRTO%Larry.Finger@lwfinger.net> <200811171742.48292.herton@mandriva.com.br> <1226951228.3902.55.camel@johannes.berg> In-Reply-To: <1226951228.3902.55.camel@johannes.berg> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <200811171829.22930.herton@mandriva.com.br> (sfid-20081117_212914_440419_550C2416) Sender: linux-wireless-owner@vger.kernel.org List-ID: On Monday 17 November 2008 17:47:07 Johannes Berg wrote: > On Mon, 2008-11-17 at 17:42 -0200, Herton Ronaldo Krzesinski wrote: > > On Monday 17 November 2008 13:08:21 Larry Finger wrote: > > > In the commit entitled "mac80211/drivers: rewrite the rate control API" > > > (commit 9ea2c74de0ec971e8ec9fc5aaea9cd5b4fec95b6), the meaning of the > > > packet transmit count was changed from the number of retries to the > > > total number. In driver rtl8187, this change was missed. > > > > With this change as before, when using pid, rate never go above 1M in > > testing here (minstrel doesn't have the same issue). May be because this > > in rate_control_pid_tx_status (inside rc80211_pid_algo.c)? > > > > if (!(info->flags & IEEE80211_TX_STAT_ACK)) { > > spinfo->tx_num_failed += 2; > > spinfo->tx_num_xmit++; > > } else if (info->status.rates[0].count) { > > spinfo->tx_num_failed++; > > spinfo->tx_num_xmit++; > > } > > > > as pkt_rc + 1, looks like we always will increment tx_num_failed, and may > > be it's causing this. Well this is only judging by a quick look, I may be > > wrong. > > Larry recently fixed the above code too. Ah nice, I didn't saw it, I'm usually lagging reading mail... I saw it now. Acked-by: Herton Ronaldo Krzesinski > > johannes -- []'s Herton