linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: allow selection of minstrel_ht as default rc algo
@ 2010-06-21  8:59 Helmut Schaa
  2010-06-21 18:37 ` Luis R. Rodriguez
  0 siblings, 1 reply; 4+ messages in thread
From: Helmut Schaa @ 2010-06-21  8:59 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless, Johannes Berg, Felix Fietkau

Allow selection of minstrel_ht as default rate control algorithm. At the
moment minstrel_ht can only be requested by the driver code but not selected
as default in make menuconfig.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
---
 net/mac80211/Kconfig |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig
index 83eec7a..3ad82cd 100644
--- a/net/mac80211/Kconfig
+++ b/net/mac80211/Kconfig
@@ -64,6 +64,11 @@ config MAC80211_RC_DEFAULT_MINSTREL
 	---help---
 	  Select Minstrel as the default rate control algorithm.
 
+config MAC80211_RC_DEFAULT_MINSTREL_HT
+	bool "Minstrel HT"
+	depends on MAC80211_RC_MINSTREL_HT
+	---help---
+	  Select Minstrel HT as the default rate control algorithm.
 
 endchoice
 
@@ -71,6 +76,7 @@ config MAC80211_RC_DEFAULT
 	string
 	default "minstrel" if MAC80211_RC_DEFAULT_MINSTREL
 	default "pid" if MAC80211_RC_DEFAULT_PID
+	default "minstrel_ht" if MAC80211_RC_DEFAULT_MINSTREL_HT
 	default ""
 
 endif
-- 
1.6.4.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] mac80211: allow selection of minstrel_ht as default rc algo
  2010-06-21  8:59 [PATCH] mac80211: allow selection of minstrel_ht as default rc algo Helmut Schaa
@ 2010-06-21 18:37 ` Luis R. Rodriguez
  2010-06-21 19:18   ` Helmut Schaa
  0 siblings, 1 reply; 4+ messages in thread
From: Luis R. Rodriguez @ 2010-06-21 18:37 UTC (permalink / raw)
  To: Helmut Schaa; +Cc: John Linville, linux-wireless, Johannes Berg, Felix Fietkau

On Mon, Jun 21, 2010 at 1:59 AM, Helmut Schaa
<helmut.schaa@googlemail.com> wrote:
> Allow selection of minstrel_ht as default rate control algorithm. At the
> moment minstrel_ht can only be requested by the driver code but not selected
> as default in make menuconfig.
>
> Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>

Shouldn't this just be enabled when you enable minstrel? I don't get
why we would split up the two.

  Luis

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mac80211: allow selection of minstrel_ht as default rc algo
  2010-06-21 18:37 ` Luis R. Rodriguez
@ 2010-06-21 19:18   ` Helmut Schaa
  2010-06-21 19:26     ` Felix Fietkau
  0 siblings, 1 reply; 4+ messages in thread
From: Helmut Schaa @ 2010-06-21 19:18 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: John Linville, linux-wireless, Johannes Berg, Felix Fietkau

Am Montag 21 Juni 2010 schrieb Luis R. Rodriguez:
> On Mon, Jun 21, 2010 at 1:59 AM, Helmut Schaa
> <helmut.schaa@googlemail.com> wrote:
> > Allow selection of minstrel_ht as default rate control algorithm. At the
> > moment minstrel_ht can only be requested by the driver code but not selected
> > as default in make menuconfig.
> >
> > Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
> 
> Shouldn't this just be enabled when you enable minstrel? I don't get
> why we would split up the two.

Would be fine for me as well. But I'm not sure if we want minstrel_ht already
as default and we want definitely keep the possibility to only select minstrel
(if compiling on an embedded system with just bg wifi for example).

Felix, any objections against selecting minstrel_ht as default if minstrel
was selected as default rc algo and minstrel_ht is compiled in?

In case of an embedded system without minstrel_ht minstrel would stay as default.

diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig
index 83eec7a..4d6f865 100644
--- a/net/mac80211/Kconfig
+++ b/net/mac80211/Kconfig
@@ -69,6 +69,7 @@ endchoice
 
 config MAC80211_RC_DEFAULT
 	string
+	default "minstrel_ht" if MAC80211_RC_DEFAULT_MINSTREL && MAC80211_RC_MINSTREL_HT
 	default "minstrel" if MAC80211_RC_DEFAULT_MINSTREL
 	default "pid" if MAC80211_RC_DEFAULT_PID
 	default ""

Thanks,
Helmut

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] mac80211: allow selection of minstrel_ht as default rc algo
  2010-06-21 19:18   ` Helmut Schaa
@ 2010-06-21 19:26     ` Felix Fietkau
  0 siblings, 0 replies; 4+ messages in thread
From: Felix Fietkau @ 2010-06-21 19:26 UTC (permalink / raw)
  To: Helmut Schaa
  Cc: Luis R. Rodriguez, John Linville, linux-wireless, Johannes Berg

On 2010-06-21 9:18 PM, Helmut Schaa wrote:
> Am Montag 21 Juni 2010 schrieb Luis R. Rodriguez:
>> On Mon, Jun 21, 2010 at 1:59 AM, Helmut Schaa
>> <helmut.schaa@googlemail.com> wrote:
>> > Allow selection of minstrel_ht as default rate control algorithm. At the
>> > moment minstrel_ht can only be requested by the driver code but not selected
>> > as default in make menuconfig.
>> >
>> > Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
>> 
>> Shouldn't this just be enabled when you enable minstrel? I don't get
>> why we would split up the two.
> 
> Would be fine for me as well. But I'm not sure if we want minstrel_ht already
> as default and we want definitely keep the possibility to only select minstrel
> (if compiling on an embedded system with just bg wifi for example).
> 
> Felix, any objections against selecting minstrel_ht as default if minstrel
> was selected as default rc algo and minstrel_ht is compiled in?
> 
> In case of an embedded system without minstrel_ht minstrel would stay as default.
> 
> diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig
> index 83eec7a..4d6f865 100644
> --- a/net/mac80211/Kconfig
> +++ b/net/mac80211/Kconfig
> @@ -69,6 +69,7 @@ endchoice
>  
>  config MAC80211_RC_DEFAULT
>  	string
> +	default "minstrel_ht" if MAC80211_RC_DEFAULT_MINSTREL && MAC80211_RC_MINSTREL_HT
>  	default "minstrel" if MAC80211_RC_DEFAULT_MINSTREL
>  	default "pid" if MAC80211_RC_DEFAULT_PID
>  	default ""
Looks good, I think we should do it this way.

- Felix

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-21 19:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-21  8:59 [PATCH] mac80211: allow selection of minstrel_ht as default rc algo Helmut Schaa
2010-06-21 18:37 ` Luis R. Rodriguez
2010-06-21 19:18   ` Helmut Schaa
2010-06-21 19:26     ` Felix Fietkau

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).