All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Felix Fietkau <nbd@openwrt.org>
Cc: linux-wireless@vger.kernel.org, linville@tuxdriver.com
Subject: Re: [PATCH 2/2] mac80211: add support for setting the ad-hoc multicast rate
Date: Tue, 16 Nov 2010 14:27:51 -0800	[thread overview]
Message-ID: <1289946471.3673.14.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1289484443-96326-2-git-send-email-nbd@openwrt.org>

On Thu, 2010-11-11 at 15:07 +0100, Felix Fietkau wrote:

> +	if (mcast_rate) {
> +		for (i = 0; i < sband->n_bitrates; i++) {
> +			if (sband->bitrates[i].bitrate == mcast_rate) {
> +				*idx = i;
> +				return;
> +			}
> +		}
> +	}

That conversion loop really shouldn't be in the hotpath.

johannes


  reply	other threads:[~2010-11-16 22:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-11 14:07 [PATCH 1/2] cfg80211: add support for setting the ad-hoc multicast rate Felix Fietkau
2010-11-11 14:07 ` [PATCH 2/2] mac80211: " Felix Fietkau
2010-11-16 22:27   ` Johannes Berg [this message]
2010-11-17  3:00     ` Felix Fietkau
2010-11-16 22:27 ` [PATCH 1/2] cfg80211: " Johannes Berg
2010-11-16 23:34   ` Felix Fietkau
2010-11-16 23:45     ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1289946471.3673.14.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=nbd@openwrt.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.