Return-path: Received: from mail-wg0-f44.google.com ([74.125.82.44]:33303 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750918AbaJIU43 (ORCPT ); Thu, 9 Oct 2014 16:56:29 -0400 Received: by mail-wg0-f44.google.com with SMTP id y10so2305795wgg.15 for ; Thu, 09 Oct 2014 13:56:28 -0700 (PDT) Date: Thu, 9 Oct 2014 22:56:22 +0200 From: Karl Beldan To: Johannes Berg Cc: linux-wireless , Karl Beldan Subject: Re: [PATCH] mac80211/trivial: fix typo in starting baserate for rts_cts_rate_idx Message-ID: <20141009205622.GC19745@gobelin> (sfid-20141009_225632_394879_01D17989) References: <1412690018-18429-1-git-send-email-karl.beldan@gmail.com> <1412845586.1828.27.camel@jlt4.sipsolutions.net> <20141009140636.GC20644@magnum.frso.rivierawaves.com> <1412864103.1828.48.camel@jlt4.sipsolutions.net> <20141009144548.GD20644@magnum.frso.rivierawaves.com> <1412868141.1828.57.camel@jlt4.sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <1412868141.1828.57.camel@jlt4.sipsolutions.net> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, Oct 09, 2014 at 05:22:21PM +0200, Johannes Berg wrote: > On Thu, 2014-10-09 at 16:45 +0200, Karl Beldan wrote: > > > > > The typo is clearly showing but the faulty behavior clearly demands more > > > > detail indeed. > > > > > > > > It affects non-(V)HT rates and can lead to selecting an rts_cts rate > > > > that is not a basic rate or way superior to the reference rate (ATM > > > > rates[0] used for the 1st attempt of the protected frame data). > > > > E.g, assuming the drivers register growing (bitrate) sorted > > > > ieee80211_rate tables, having : > > > > - rates[0].idx == d'2 and basic_rates == b'10100 > > > > will select rts_cts idx b'10011 & ~d'(BIT(2)-1), i.e. 1, likewise > > > > - rates[0].idx == d'2 and basic_rates == b'10001 > > > > will select rts_cts idx b'10000 > > > > The first is not a basic rate and the second is > rates[0]. > > > > > > > > I hope it clarifies things enough. > > > > > > Well, I'm still not sure which tree I should put it in, I guess? > > > > > > > All I can say is that nor this faulty behavior nor the correspond fix > > are likely to cause a crash (we always tx registered rates). > > But it's still pretty misbehaving, no? That IMHO warrants fixing and > even cc stable. > Also, for the record, ATM we have only one rts_cts rate. A way to handle every retry rates is still missing, along with (V)HT rates. Karl