diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-11-23 16:21:01 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-28 15:04:24 -0500 |
commit | 545750d36fa78203e28acefb4bab61ebb7c4d197 (patch) | |
tree | c9810428acf0bd673c6cd9ed74e6eb273c923842 /drivers/net/wireless/ath/ath9k/debug.h | |
parent | 04658fba2314d6d70d5fa05c0b5995e6428aacc3 (diff) |
ath9k: properly use the mac80211 rate control api
This patch changes ath9k to pass proper MCS indexes and flags
between the RC and the rest of the driver code.
sc->cur_rate_table remains, as it's used by the RC code internally,
but the rest of the driver code no longer uses it, so a potential
new RC for ath9k would not have to update it.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/debug.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.h b/drivers/net/wireless/ath/ath9k/debug.h index 749e85d5755..f282eeef669 100644 --- a/drivers/net/wireless/ath/ath9k/debug.h +++ b/drivers/net/wireless/ath/ath9k/debug.h | |||
@@ -18,6 +18,7 @@ | |||
18 | #define DEBUG_H | 18 | #define DEBUG_H |
19 | 19 | ||
20 | #include "hw.h" | 20 | #include "hw.h" |
21 | #include "rc.h" | ||
21 | 22 | ||
22 | struct ath_txq; | 23 | struct ath_txq; |
23 | struct ath_buf; | 24 | struct ath_buf; |
@@ -138,7 +139,7 @@ void ath9k_exit_debug(struct ath_hw *ah); | |||
138 | int ath9k_debug_create_root(void); | 139 | int ath9k_debug_create_root(void); |
139 | void ath9k_debug_remove_root(void); | 140 | void ath9k_debug_remove_root(void); |
140 | void ath_debug_stat_interrupt(struct ath_softc *sc, enum ath9k_int status); | 141 | void ath_debug_stat_interrupt(struct ath_softc *sc, enum ath9k_int status); |
141 | void ath_debug_stat_rc(struct ath_softc *sc, struct sk_buff *skb); | 142 | void ath_debug_stat_rc(struct ath_softc *sc, int final_rate); |
142 | void ath_debug_stat_tx(struct ath_softc *sc, struct ath_txq *txq, | 143 | void ath_debug_stat_tx(struct ath_softc *sc, struct ath_txq *txq, |
143 | struct ath_buf *bf); | 144 | struct ath_buf *bf); |
144 | void ath_debug_stat_retries(struct ath_softc *sc, int rix, | 145 | void ath_debug_stat_retries(struct ath_softc *sc, int rix, |
@@ -170,7 +171,7 @@ static inline void ath_debug_stat_interrupt(struct ath_softc *sc, | |||
170 | } | 171 | } |
171 | 172 | ||
172 | static inline void ath_debug_stat_rc(struct ath_softc *sc, | 173 | static inline void ath_debug_stat_rc(struct ath_softc *sc, |
173 | struct sk_buff *skb) | 174 | int final_rate) |
174 | { | 175 | { |
175 | } | 176 | } |
176 | 177 | ||