Skip to contentSkip to conversation

mac80211: allow selection of minstrel_ht as default rc algo

PATCH Superseded Helmut Schaa 3 participants 4 messages Jun 21, 2010 mac80211

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: allow selection of minstrel_ht as default rc algo

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.

---
 net/mac80211/Kconfig |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
net/mac80211/Kconfig +6 -0
index 83eec7a..3ad82cd 100644
@@ -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
Signature · 1 line
1.6.4.2
#1 lore raw
Quoted 5 lines · Helmut Schaa

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.

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

Luis

#2 lore raw

Am Montag 21 Juni 2010 schrieb Luis R. Rodriguez:

Quoted 10 lines
Quoted 5 lines · Helmut Schaa

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.

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.

net/mac80211/Kconfig +1 -0
index 83eec7a..4d6f865 100644
@@ -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

#3 lore raw
Quoted 26 lines · Helmut Schaa

Am Montag 21 Juni 2010 schrieb Luis R. Rodriguez:

Quoted 10 lines
Quoted 5 lines · Helmut Schaa

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.

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.

net/mac80211/Kconfig +0 -0
index 83eec7a..4d6f865 100644

net/mac80211/Kconfig endchoice · line 75

Quoted 7 lines
net/mac80211/Kconfig +1 -0
@@ -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