diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-07-14 20:14:04 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-24 15:05:16 -0400 |
commit | 201c3b414b4b759f399502b059189d7802bbfbb6 (patch) | |
tree | e5a75d8ede9574c9fb714653aeaaa4b17344d6be /drivers | |
parent | b9b6e15a9481441108ad2527db0187f729c88970 (diff) |
ath9k: rename ath_rc_ratefind_ht() to ath_rc_get_highest_rix()
The purpose is to find the highest rate we can use.
Cc: Derek Smithies <derek@indranet.co.nz>
Cc: Chittajit Mitra <Chittajit.Mitra@Atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c index 112a0ec0df4f..96d46d697e96 100644 --- a/drivers/net/wireless/ath/ath9k/rc.c +++ b/drivers/net/wireless/ath/ath9k/rc.c | |||
@@ -601,10 +601,11 @@ static u8 ath_rc_setvalid_htrates(struct ath_rate_priv *ath_rc_priv, | |||
601 | return hi; | 601 | return hi; |
602 | } | 602 | } |
603 | 603 | ||
604 | static u8 ath_rc_ratefind_ht(struct ath_softc *sc, | 604 | /* Finds the highest rate index we can use */ |
605 | struct ath_rate_priv *ath_rc_priv, | 605 | static u8 ath_rc_get_highest_rix(struct ath_softc *sc, |
606 | const struct ath_rate_table *rate_table, | 606 | struct ath_rate_priv *ath_rc_priv, |
607 | int *is_probing) | 607 | const struct ath_rate_table *rate_table, |
608 | int *is_probing) | ||
608 | { | 609 | { |
609 | u32 dt, best_thruput, this_thruput, now_msec; | 610 | u32 dt, best_thruput, this_thruput, now_msec; |
610 | u8 rate, next_rate, best_rate, maxindex, minindex; | 611 | u8 rate, next_rate, best_rate, maxindex, minindex; |
@@ -812,7 +813,7 @@ static void ath_rc_ratefind(struct ath_softc *sc, | |||
812 | try_per_rate = sc->hw->max_rate_tries; | 813 | try_per_rate = sc->hw->max_rate_tries; |
813 | 814 | ||
814 | rate_table = sc->cur_rate_table; | 815 | rate_table = sc->cur_rate_table; |
815 | rix = ath_rc_ratefind_ht(sc, ath_rc_priv, rate_table, &is_probe); | 816 | rix = ath_rc_get_highest_rix(sc, ath_rc_priv, rate_table, &is_probe); |
816 | nrix = rix; | 817 | nrix = rix; |
817 | 818 | ||
818 | if (is_probe) { | 819 | if (is_probe) { |