aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ath9k/rc.c6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945-rs.c7
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rs.c14
-rw-r--r--include/net/mac80211.h1
-rw-r--r--net/mac80211/rate.h6
-rw-r--r--net/mac80211/rc80211_minstrel.c6
-rw-r--r--net/mac80211/rc80211_pid_algo.c5
-rw-r--r--net/mac80211/util.c2
8 files changed, 0 insertions, 47 deletions
diff --git a/drivers/net/wireless/ath9k/rc.c b/drivers/net/wireless/ath9k/rc.c
index 6afafeddeda2..9ce535915a1a 100644
--- a/drivers/net/wireless/ath9k/rc.c
+++ b/drivers/net/wireless/ath9k/rc.c
@@ -2038,11 +2038,6 @@ static void ath_rate_init(void *priv, struct ieee80211_supported_band *sband,
2038 ath_rc_node_update(sc->hw, priv_sta); 2038 ath_rc_node_update(sc->hw, priv_sta);
2039} 2039}
2040 2040
2041static void ath_rate_clear(void *priv)
2042{
2043 return;
2044}
2045
2046static void *ath_rate_alloc(struct ieee80211_hw *hw, struct dentry *debugfsdir) 2041static void *ath_rate_alloc(struct ieee80211_hw *hw, struct dentry *debugfsdir)
2047{ 2042{
2048 struct ath_softc *sc = hw->priv; 2043 struct ath_softc *sc = hw->priv;
@@ -2092,7 +2087,6 @@ static struct rate_control_ops ath_rate_ops = {
2092 .tx_status = ath_tx_status, 2087 .tx_status = ath_tx_status,
2093 .get_rate = ath_get_rate, 2088 .get_rate = ath_get_rate,
2094 .rate_init = ath_rate_init, 2089 .rate_init = ath_rate_init,
2095 .clear = ath_rate_clear,
2096 .alloc = ath_rate_alloc, 2090 .alloc = ath_rate_alloc,
2097 .free = ath_rate_free, 2091 .free = ath_rate_free,
2098 .alloc_sta = ath_rate_alloc_sta, 2092 .alloc_sta = ath_rate_alloc_sta,
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c b/drivers/net/wireless/iwlwifi/iwl-3945-rs.c
index f440ed0fe543..bfeef701b1fd 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945-rs.c
@@ -355,12 +355,6 @@ static void rs_free(void *priv)
355 return; 355 return;
356} 356}
357 357
358static void rs_clear(void *priv)
359{
360 return;
361}
362
363
364static void *rs_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp) 358static void *rs_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp)
365{ 359{
366 struct iwl3945_rs_sta *rs_sta; 360 struct iwl3945_rs_sta *rs_sta;
@@ -784,7 +778,6 @@ static struct rate_control_ops rs_ops = {
784 .tx_status = rs_tx_status, 778 .tx_status = rs_tx_status,
785 .get_rate = rs_get_rate, 779 .get_rate = rs_get_rate,
786 .rate_init = rs_rate_init, 780 .rate_init = rs_rate_init,
787 .clear = rs_clear,
788 .alloc = rs_alloc, 781 .alloc = rs_alloc,
789 .free = rs_free, 782 .free = rs_free,
790 .alloc_sta = rs_alloc_sta, 783 .alloc_sta = rs_alloc_sta,
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
index f685e5d6c281..6fdb2fb755b0 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
@@ -2393,19 +2393,6 @@ static void rs_free(void *priv_rate)
2393 return; 2393 return;
2394} 2394}
2395 2395
2396static void rs_clear(void *priv_rate)
2397{
2398#ifdef CONFIG_IWLWIFI_DEBUG
2399 struct iwl_priv *priv = (struct iwl_priv *) priv_rate;
2400
2401 IWL_DEBUG_RATE("enter\n");
2402
2403 /* TODO - add rate scale state reset */
2404
2405 IWL_DEBUG_RATE("leave\n");
2406#endif /* CONFIG_IWLWIFI_DEBUG */
2407}
2408
2409static void rs_free_sta(void *priv_r, struct ieee80211_sta *sta, 2396static void rs_free_sta(void *priv_r, struct ieee80211_sta *sta,
2410 void *priv_sta) 2397 void *priv_sta)
2411{ 2398{
@@ -2593,7 +2580,6 @@ static struct rate_control_ops rs_ops = {
2593 .tx_status = rs_tx_status, 2580 .tx_status = rs_tx_status,
2594 .get_rate = rs_get_rate, 2581 .get_rate = rs_get_rate,
2595 .rate_init = rs_rate_init, 2582 .rate_init = rs_rate_init,
2596 .clear = rs_clear,
2597 .alloc = rs_alloc, 2583 .alloc = rs_alloc,
2598 .free = rs_free, 2584 .free = rs_free,
2599 .alloc_sta = rs_alloc_sta, 2585 .alloc_sta = rs_alloc_sta,
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 3741c0a7978a..e0b1ff9a3148 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -1917,7 +1917,6 @@ struct rate_control_ops {
1917 struct module *module; 1917 struct module *module;
1918 const char *name; 1918 const char *name;
1919 void *(*alloc)(struct ieee80211_hw *hw, struct dentry *debugfsdir); 1919 void *(*alloc)(struct ieee80211_hw *hw, struct dentry *debugfsdir);
1920 void (*clear)(void *priv);
1921 void (*free)(void *priv); 1920 void (*free)(void *priv);
1922 1921
1923 void *(*alloc_sta)(void *priv, struct ieee80211_sta *sta, gfp_t gfp); 1922 void *(*alloc_sta)(void *priv, struct ieee80211_sta *sta, gfp_t gfp);
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
66static 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
72static inline void *rate_control_alloc_sta(struct rate_control_ref *ref, 66static 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
510static void
511minstrel_clear(void *priv)
512{
513}
514
515static void * 510static void *
516minstrel_alloc(struct ieee80211_hw *hw, struct dentry *debugfsdir) 511minstrel_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
449static void rate_control_pid_clear(void *priv)
450{
451}
452
453static void *rate_control_pid_alloc_sta(void *priv, struct ieee80211_sta *sta, 449static 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;