diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/rc.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c index 18094094b29..4ccbf2ddb55 100644 --- a/drivers/net/wireless/ath/ath9k/rc.c +++ b/drivers/net/wireless/ath/ath9k/rc.c | |||
@@ -854,14 +854,13 @@ static void ath_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta, | |||
854 | ath_rc_rate_set_rtscts(sc, rate_table, tx_info); | 854 | ath_rc_rate_set_rtscts(sc, rate_table, tx_info); |
855 | } | 855 | } |
856 | 856 | ||
857 | static bool ath_rc_update_per(struct ath_softc *sc, | 857 | static void ath_rc_update_per(struct ath_softc *sc, |
858 | const struct ath_rate_table *rate_table, | 858 | const struct ath_rate_table *rate_table, |
859 | struct ath_rate_priv *ath_rc_priv, | 859 | struct ath_rate_priv *ath_rc_priv, |
860 | struct ieee80211_tx_info *tx_info, | 860 | struct ieee80211_tx_info *tx_info, |
861 | int tx_rate, int xretries, int retries, | 861 | int tx_rate, int xretries, int retries, |
862 | u32 now_msec) | 862 | u32 now_msec) |
863 | { | 863 | { |
864 | bool state_change = false; | ||
865 | int count, n_bad_frames; | 864 | int count, n_bad_frames; |
866 | u8 last_per; | 865 | u8 last_per; |
867 | static const u32 nretry_to_per_lookup[10] = { | 866 | static const u32 nretry_to_per_lookup[10] = { |
@@ -992,8 +991,6 @@ static bool ath_rc_update_per(struct ath_softc *sc, | |||
992 | 991 | ||
993 | } | 992 | } |
994 | } | 993 | } |
995 | |||
996 | return state_change; | ||
997 | } | 994 | } |
998 | 995 | ||
999 | static void ath_debug_stat_retries(struct ath_rate_priv *rc, int rix, | 996 | static void ath_debug_stat_retries(struct ath_rate_priv *rc, int rix, |
@@ -1017,7 +1014,6 @@ static void ath_rc_update_ht(struct ath_softc *sc, | |||
1017 | u32 now_msec = jiffies_to_msecs(jiffies); | 1014 | u32 now_msec = jiffies_to_msecs(jiffies); |
1018 | int rate; | 1015 | int rate; |
1019 | u8 last_per; | 1016 | u8 last_per; |
1020 | bool state_change = false; | ||
1021 | const struct ath_rate_table *rate_table = ath_rc_priv->rate_table; | 1017 | const struct ath_rate_table *rate_table = ath_rc_priv->rate_table; |
1022 | int size = ath_rc_priv->rate_table_size; | 1018 | int size = ath_rc_priv->rate_table_size; |
1023 | 1019 | ||
@@ -1027,9 +1023,9 @@ static void ath_rc_update_ht(struct ath_softc *sc, | |||
1027 | last_per = ath_rc_priv->per[tx_rate]; | 1023 | last_per = ath_rc_priv->per[tx_rate]; |
1028 | 1024 | ||
1029 | /* Update PER first */ | 1025 | /* Update PER first */ |
1030 | state_change = ath_rc_update_per(sc, rate_table, ath_rc_priv, | 1026 | ath_rc_update_per(sc, rate_table, ath_rc_priv, |
1031 | tx_info, tx_rate, xretries, | 1027 | tx_info, tx_rate, xretries, |
1032 | retries, now_msec); | 1028 | retries, now_msec); |
1033 | 1029 | ||
1034 | /* | 1030 | /* |
1035 | * If this rate looks bad (high PER) then stop using it for | 1031 | * If this rate looks bad (high PER) then stop using it for |