diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-16 05:21:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:37 -0400 |
commit | 50fb2e4572141770380f5919793c6e575fa3474b (patch) | |
tree | 6227726fda3e7b54515b6738bcf62b5f395ded23 /net/mac80211 | |
parent | 65a0667b43ff746b2964b2a257ffff1a4747e19d (diff) |
mac80211: remove rate_control_clear
"Clearing" the rate control algorithm is pointless, none of
the algorithms actually uses this operation and it's not even
invoked properly for all channel switching. Also, there's no
need to since rate control algorithms work per station.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/rate.h | 6 | ||||
-rw-r--r-- | net/mac80211/rc80211_minstrel.c | 6 | ||||
-rw-r--r-- | net/mac80211/rc80211_pid_algo.c | 5 | ||||
-rw-r--r-- | net/mac80211/util.c | 2 |
4 files changed, 0 insertions, 19 deletions
diff --git a/net/mac80211/rate.h b/net/mac80211/rate.h index 7c25edf9ac55..928da625e281 100644 --- a/net/mac80211/rate.h +++ b/net/mac80211/rate.h | |||
@@ -63,12 +63,6 @@ static inline void rate_control_rate_init(struct sta_info *sta) | |||
63 | } | 63 | } |
64 | 64 | ||
65 | 65 | ||
66 | static inline void rate_control_clear(struct ieee80211_local *local) | ||
67 | { | ||
68 | struct rate_control_ref *ref = local->rate_ctrl; | ||
69 | ref->ops->clear(ref->priv); | ||
70 | } | ||
71 | |||
72 | static inline void *rate_control_alloc_sta(struct rate_control_ref *ref, | 66 | static inline void *rate_control_alloc_sta(struct rate_control_ref *ref, |
73 | struct ieee80211_sta *sta, | 67 | struct ieee80211_sta *sta, |
74 | gfp_t gfp) | 68 | gfp_t gfp) |
diff --git a/net/mac80211/rc80211_minstrel.c b/net/mac80211/rc80211_minstrel.c index c10debc29ad6..c643e373fc50 100644 --- a/net/mac80211/rc80211_minstrel.c +++ b/net/mac80211/rc80211_minstrel.c | |||
@@ -507,11 +507,6 @@ minstrel_free_sta(void *priv, struct ieee80211_sta *sta, void *priv_sta) | |||
507 | kfree(mi); | 507 | kfree(mi); |
508 | } | 508 | } |
509 | 509 | ||
510 | static void | ||
511 | minstrel_clear(void *priv) | ||
512 | { | ||
513 | } | ||
514 | |||
515 | static void * | 510 | static void * |
516 | minstrel_alloc(struct ieee80211_hw *hw, struct dentry *debugfsdir) | 511 | minstrel_alloc(struct ieee80211_hw *hw, struct dentry *debugfsdir) |
517 | { | 512 | { |
@@ -565,7 +560,6 @@ static struct rate_control_ops mac80211_minstrel = { | |||
565 | .tx_status = minstrel_tx_status, | 560 | .tx_status = minstrel_tx_status, |
566 | .get_rate = minstrel_get_rate, | 561 | .get_rate = minstrel_get_rate, |
567 | .rate_init = minstrel_rate_init, | 562 | .rate_init = minstrel_rate_init, |
568 | .clear = minstrel_clear, | ||
569 | .alloc = minstrel_alloc, | 563 | .alloc = minstrel_alloc, |
570 | .free = minstrel_free, | 564 | .free = minstrel_free, |
571 | .alloc_sta = minstrel_alloc_sta, | 565 | .alloc_sta = minstrel_alloc_sta, |
diff --git a/net/mac80211/rc80211_pid_algo.c b/net/mac80211/rc80211_pid_algo.c index 92caecfcee78..2328ba568039 100644 --- a/net/mac80211/rc80211_pid_algo.c +++ b/net/mac80211/rc80211_pid_algo.c | |||
@@ -446,10 +446,6 @@ static void rate_control_pid_free(void *priv) | |||
446 | kfree(pinfo); | 446 | kfree(pinfo); |
447 | } | 447 | } |
448 | 448 | ||
449 | static void rate_control_pid_clear(void *priv) | ||
450 | { | ||
451 | } | ||
452 | |||
453 | static void *rate_control_pid_alloc_sta(void *priv, struct ieee80211_sta *sta, | 449 | static void *rate_control_pid_alloc_sta(void *priv, struct ieee80211_sta *sta, |
454 | gfp_t gfp) | 450 | gfp_t gfp) |
455 | { | 451 | { |
@@ -480,7 +476,6 @@ static struct rate_control_ops mac80211_rcpid = { | |||
480 | .tx_status = rate_control_pid_tx_status, | 476 | .tx_status = rate_control_pid_tx_status, |
481 | .get_rate = rate_control_pid_get_rate, | 477 | .get_rate = rate_control_pid_get_rate, |
482 | .rate_init = rate_control_pid_rate_init, | 478 | .rate_init = rate_control_pid_rate_init, |
483 | .clear = rate_control_pid_clear, | ||
484 | .alloc = rate_control_pid_alloc, | 479 | .alloc = rate_control_pid_alloc, |
485 | .free = rate_control_pid_free, | 480 | .free = rate_control_pid_free, |
486 | .alloc_sta = rate_control_pid_alloc_sta, | 481 | .alloc_sta = rate_control_pid_alloc_sta, |
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index ec8b6335f0c1..0f841317c7e9 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -647,8 +647,6 @@ int ieee80211_set_freq(struct ieee80211_sub_if_data *sdata, int freqMHz) | |||
647 | else | 647 | else |
648 | ret = ieee80211_hw_config( | 648 | ret = ieee80211_hw_config( |
649 | local, IEEE80211_CONF_CHANGE_CHANNEL); | 649 | local, IEEE80211_CONF_CHANGE_CHANNEL); |
650 | |||
651 | rate_control_clear(local); | ||
652 | } | 650 | } |
653 | 651 | ||
654 | return ret; | 652 | return ret; |