Return-path: Received: from mail-wg0-f53.google.com ([74.125.82.53]:53404 "EHLO mail-wg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751487Ab3CJWeI (ORCPT ); Sun, 10 Mar 2013 18:34:08 -0400 Received: by mail-wg0-f53.google.com with SMTP id fn15so4422294wgb.20 for ; Sun, 10 Mar 2013 15:34:07 -0700 (PDT) Date: Sun, 10 Mar 2013 23:35:00 +0100 From: Karl Beldan To: Johannes Berg Cc: Felix Fietkau , linux-wireless , Karl Beldan Subject: Re: [PATCH v2 1/2] mac80211: get the rates masks from the txrc in rate_control_get_rate Message-ID: <20130310223500.GB3824@gobelin> (sfid-20130310_233412_623942_A49D6C7C) References: <1362421635-28008-1-git-send-email-karl.beldan@gmail.com> <1362427924.21028.42.camel@jlt4.sipsolutions.net> <20130304204541.GA8819@gobelin> <5135F327.4000408@openwrt.org> <20130305161003.GA30419@magnum.frso.rivierawaves.com> <1362509619.8224.5.camel@jlt4.sipsolutions.net> <20130305222748.GA31280@gobelin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <20130305222748.GA31280@gobelin> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, Mar 05, 2013 at 11:27:48PM +0100, john wrote: > On Tue, Mar 05, 2013 at 07:53:39PM +0100, Johannes Berg wrote: > > On Tue, 2013-03-05 at 17:10 +0100, Karl Beldan wrote: > > > > > > It seems to me that all of this could be made more efficient by default > > > > if a mcs mask pointer is only passed to rate control if the user > > > > actually configured a MCS mask. Also, filtering out rates from the mask > > > > that the sta does not support seems a bit unnecessary, since the rate > > > > control usually looks at the HT capabilities and the sta's mcs rx mask > > > > anyway. > > > > > > > Yes, some things look a bit overkill in the masks logic. > > > > Are you planning to send new patches to improve this? > > > I'll see what I can come up with. > Now, FWIW, I was looking at how the masks are applied - the code tries to be thorough wrt the various RC flags - 2 things at least are missing: handle basic rates with multicast, and protection when downgrading to pre-ht rates. Karl