rev rate control api to pass the both the first+last tx descriptors

to the rate control module for tx complete processing; this enables
rate control algorithms to extract the packet length for xmits that
require multiple descriptors
This commit is contained in:
sam 2005-03-30 20:17:18 +00:00
parent b113640f48
commit 45dfb769f8
4 changed files with 6 additions and 6 deletions

View File

@ -141,8 +141,8 @@ ath_rate_setupxtxdesc(struct ath_softc *sc, struct ath_node *an,
}
void
ath_rate_tx_complete(struct ath_softc *sc,
struct ath_node *an, const struct ath_desc *ds)
ath_rate_tx_complete(struct ath_softc *sc, struct ath_node *an,
const struct ath_desc *ds, const struct ath_desc *ds0)
{
struct amrr_node *amn = ATH_NODE_AMRR(an);
int sr = ds->ds_txstat.ts_shortretry;

View File

@ -158,8 +158,8 @@ ath_rate_setupxtxdesc(struct ath_softc *sc, struct ath_node *an,
}
void
ath_rate_tx_complete(struct ath_softc *sc,
struct ath_node *an, const struct ath_desc *ds)
ath_rate_tx_complete(struct ath_softc *sc, struct ath_node *an,
const struct ath_desc *ds, const struct ath_desc *ds0)
{
struct onoe_node *on = ATH_NODE_ONOE(an);

View File

@ -3551,7 +3551,7 @@ ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq)
/*
* Hand the descriptor to the rate control algorithm.
*/
ath_rate_tx_complete(sc, an, ds);
ath_rate_tx_complete(sc, an, ds, ds0);
/*
* Reclaim reference to node.
*

View File

@ -136,5 +136,5 @@ void ath_rate_setupxtxdesc(struct ath_softc *, struct ath_node *,
* failed (consult the descriptor for details).
*/
void ath_rate_tx_complete(struct ath_softc *, struct ath_node *,
const struct ath_desc *);
const struct ath_desc *last, const struct ath_desc *first);
#endif /* _ATH_RATECTRL_H_ */