aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211.c
diff options
context:
space:
mode:
authorStefano Brivio <stefano.brivio@polimi.it>2007-12-18 19:26:16 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:59:41 -0500
commitc21b39aca4f8f4975784e54cd3a1b80bab80dcc0 (patch)
treebcf9b8ab5ecdb77fbd7ff7e56bc6474334a5d008 /net/mac80211/ieee80211.c
parentb92edbe0b8a36a833c16b0cbafb6e899b81ffc08 (diff)
mac80211: make PID rate control algorithm the default
This makes the new PID TX rate control algorithm the default instead of the rc80211_simple rate control algorithm. The simple algorithm was flawed in several ways: it wasn't responsive at all and didn't age the information it was relying on properly. The PID algorithm allows us to tune characteristics such as responsiveness by adjusting parameters and was found to generally behave better. The default algorithm can be overridden to select simple instead. Which ever algorithm is the default is included as part of the mac80211 module automatically. The other algorithm (simple vs. pid) can be selected for inclusion as well. If EMBEDDED is selected then the choice is available to have no default specified and neither algorithm included in mac80211. The default algorithm can be set through a modparam. While at it, mark rc80211-simple as deprecated, and schedule it for removal. Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/ieee80211.c')
-rw-r--r--net/mac80211/ieee80211.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c
index 3d7b4341914e..c0dbf77547f7 100644
--- a/net/mac80211/ieee80211.c
+++ b/net/mac80211/ieee80211.c
@@ -1312,13 +1312,13 @@ static int __init ieee80211_init(void)
1312 1312
1313 BUILD_BUG_ON(sizeof(struct ieee80211_tx_packet_data) > sizeof(skb->cb)); 1313 BUILD_BUG_ON(sizeof(struct ieee80211_tx_packet_data) > sizeof(skb->cb));
1314 1314
1315#ifdef CONFIG_MAC80211_RCSIMPLE 1315#ifdef CONFIG_MAC80211_RC_SIMPLE
1316 ret = ieee80211_rate_control_register(&mac80211_rcsimple); 1316 ret = ieee80211_rate_control_register(&mac80211_rcsimple);
1317 if (ret) 1317 if (ret)
1318 goto fail; 1318 goto fail;
1319#endif 1319#endif
1320 1320
1321#ifdef CONFIG_MAC80211_RCPID 1321#ifdef CONFIG_MAC80211_RC_PID
1322 ret = ieee80211_rate_control_register(&mac80211_rcpid); 1322 ret = ieee80211_rate_control_register(&mac80211_rcpid);
1323 if (ret) 1323 if (ret)
1324 goto fail; 1324 goto fail;
@@ -1338,10 +1338,10 @@ static int __init ieee80211_init(void)
1338 1338
1339fail: 1339fail:
1340 1340
1341#ifdef CONFIG_MAC80211_RCSIMPLE 1341#ifdef CONFIG_MAC80211_RC_SIMPLE
1342 ieee80211_rate_control_unregister(&mac80211_rcsimple); 1342 ieee80211_rate_control_unregister(&mac80211_rcsimple);
1343#endif 1343#endif
1344#ifdef CONFIG_MAC80211_RCPID 1344#ifdef CONFIG_MAC80211_RC_PID
1345 ieee80211_rate_control_unregister(&mac80211_rcpid); 1345 ieee80211_rate_control_unregister(&mac80211_rcpid);
1346#endif 1346#endif
1347 1347
@@ -1350,10 +1350,10 @@ fail:
1350 1350
1351static void __exit ieee80211_exit(void) 1351static void __exit ieee80211_exit(void)
1352{ 1352{
1353#ifdef CONFIG_MAC80211_RCSIMPLE 1353#ifdef CONFIG_MAC80211_RC_SIMPLE
1354 ieee80211_rate_control_unregister(&mac80211_rcsimple); 1354 ieee80211_rate_control_unregister(&mac80211_rcsimple);
1355#endif 1355#endif
1356#ifdef CONFIG_MAC80211_RCPID 1356#ifdef CONFIG_MAC80211_RC_PID
1357 ieee80211_rate_control_unregister(&mac80211_rcpid); 1357 ieee80211_rate_control_unregister(&mac80211_rcpid);
1358#endif 1358#endif
1359 1359