Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:49823 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751679Ab3CVNcM (ORCPT ); Fri, 22 Mar 2013 09:32:12 -0400 Message-ID: <1363959125.8238.49.camel@jlt4.sipsolutions.net> (sfid-20130322_143216_330539_7B726CE1) Subject: Re: Radiotap injected rates From: Johannes Berg To: Karl Beldan Cc: linux-wireless , Sam Leffler Date: Fri, 22 Mar 2013 14:32:05 +0100 In-Reply-To: <20130322132716.GB29340@magnum.frso.rivierawaves.com> (sfid-20130322_143029_102909_B7BB5045) References: <20130317215544.GA7031@gobelin> <1363634768.8260.16.camel@jlt4.sipsolutions.net> <20130318195406.GB17878@gobelin> <1363955094.8238.32.camel@jlt4.sipsolutions.net> <20130322132716.GB29340@magnum.frso.rivierawaves.com> (sfid-20130322_143029_102909_B7BB5045) Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Fri, 2013-03-22 at 14:27 +0100, Karl Beldan wrote: > > > And, oops typo, I meant : > > > > > > + !(info->flags & IEEE80211_TX_CTL_INJECTED && info->control.rates[0] != -1)) > > > > > Well actually this won't work anyway because control.rates[] isn't > > initialized to -1. > > > Of course we would set info->control.rates[0] to -1 by default in > ieee80211_parse_tx_radiotap and set it to something else if we parse a > IEEE80211_RADIOTAP_{RATE,MCS} (i.e what I was referring to in 1b). That still wouldn't work though, there are other paths leading to point you're looking at. You'd have to set it always, which would probably work but is tricky to ensure at the right points. johannes