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:
parent
c4c3cb462d
commit
22233301a3
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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.
|
||||
*
|
||||
|
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user