aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rc80211_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/rc80211_simple.c')
-rw-r--r--net/mac80211/rc80211_simple.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/net/mac80211/rc80211_simple.c b/net/mac80211/rc80211_simple.c
index c1c8b76a56af..33de6f967e55 100644
--- a/net/mac80211/rc80211_simple.c
+++ b/net/mac80211/rc80211_simple.c
@@ -13,6 +13,7 @@
13#include <linux/slab.h> 13#include <linux/slab.h>
14#include <linux/skbuff.h> 14#include <linux/skbuff.h>
15#include <linux/compiler.h> 15#include <linux/compiler.h>
16#include <linux/module.h>
16 17
17#include <net/mac80211.h> 18#include <net/mac80211.h>
18#include "ieee80211_i.h" 19#include "ieee80211_i.h"
@@ -349,7 +350,7 @@ static void rate_control_simple_remove_sta_debugfs(void *priv, void *priv_sta)
349} 350}
350#endif 351#endif
351 352
352struct rate_control_ops mac80211_rcsimple = { 353static struct rate_control_ops mac80211_rcsimple = {
353 .name = "simple", 354 .name = "simple",
354 .tx_status = rate_control_simple_tx_status, 355 .tx_status = rate_control_simple_tx_status,
355 .get_rate = rate_control_simple_get_rate, 356 .get_rate = rate_control_simple_get_rate,
@@ -364,3 +365,21 @@ struct rate_control_ops mac80211_rcsimple = {
364 .remove_sta_debugfs = rate_control_simple_remove_sta_debugfs, 365 .remove_sta_debugfs = rate_control_simple_remove_sta_debugfs,
365#endif 366#endif
366}; 367};
368
369MODULE_LICENSE("GPL");
370MODULE_DESCRIPTION("Simple rate control algorithm");
371
372int __init rc80211_simple_init(void)
373{
374 return ieee80211_rate_control_register(&mac80211_rcsimple);
375}
376
377void __exit rc80211_simple_exit(void)
378{
379 ieee80211_rate_control_unregister(&mac80211_rcsimple);
380}
381
382#ifdef CONFIG_MAC80211_RC_SIMPLE_MODULE
383module_init(rc80211_simple_init);
384module_exit(rc80211_simple_exit);
385#endif