linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "John W. Linville" <linville@tuxdriver.com>
To: ian <ischram@telenet.be>
Cc: Johannes Berg <johannes@sipsolutions.net>,
	wireless <linux-wireless@vger.kernel.org>
Subject: Re: letting drivers choose their preferred rate scale
Date: Thu, 13 Sep 2007 14:39:18 -0400	[thread overview]
Message-ID: <20070913183918.GA10239@tuxdriver.com> (raw)
In-Reply-To: <46DC1500.7090808@telenet.be>

On Mon, Sep 03, 2007 at 04:06:56PM +0200, ian wrote:
> Johannes Berg wrote:
> > On Mon, 2007-09-03 at 02:21 +0200, ian wrote:
> > 
> >> we could additionally remove the module_alias from rc80211_simple
> > 
> > indeed, please roll into this patch
> > 
> I don't know enough from debugfs yet, to do that part, but I'll read up.
> 
> ---
> Make rc80211_simple the default rate scaling algorithm

> @@ -78,11 +78,12 @@ static struct rate_control_ops *
>  ieee80211_rate_control_ops_get(const char *name)
>  {
>  	struct rate_control_ops *ops;
> +	const char *try_name = name ? name : "simple";
> 
> -	ops = ieee80211_try_rate_control_ops_get(name);
> +	ops = ieee80211_try_rate_control_ops_get(try_name);
>  	if (!ops) {
> -		request_module("rc80211_%s", name ? name : "default");
> -		ops = ieee80211_try_rate_control_ops_get(name);
> +		request_module("rc80211_%s", try_name);
> +		ops = ieee80211_try_rate_control_ops_get(try_name);
>  	}
>  	return ops;
>  }
> --- a/net/mac80211/rc80211_simple.c	2007-09-03 15:53:42.000000000 +0200
> +++ b/net/mac80211/rc80211_simple.c	2007-09-03 15:54:40.000000000 +0200
> @@ -29,7 +29,6 @@
>  #define RATE_CONTROL_INTERVAL (HZ / 20)
>  #define RATE_CONTROL_MIN_TX 10
> 
> -MODULE_ALIAS("rc80211_default");
> 
>  static void rate_control_rate_inc(struct ieee80211_local *local,
>  				  struct sta_info *sta)
 
Does this actually change anything?  With the MODULE_ALIAS line
in rc80211_simple.c, doesn't the request_module("rc80211_default")
just load rc80211_simple?

Confused...

John
-- 
John W. Linville
linville@tuxdriver.com

  reply	other threads:[~2007-09-13 19:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-25  2:37 letting drivers choose their preferred rate scale ian
2007-08-25  8:02 ` Johannes Berg
2007-08-25 12:15   ` ian
2007-08-25 14:19     ` Jochen Voss
2007-08-27 10:49     ` Johannes Berg
2007-08-31 18:09       ` John W. Linville
2007-09-03  0:21         ` ian
2007-09-03  8:20           ` Johannes Berg
2007-09-03  8:38           ` Johannes Berg
2007-09-03 14:06             ` ian
2007-09-13 18:39               ` John W. Linville [this message]
2007-09-13 21:42                 ` Ian Schram
2007-09-14 12:08                   ` 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=20070913183918.GA10239@tuxdriver.com \
    --to=linville@tuxdriver.com \
    --cc=ischram@telenet.be \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).