diff options
Diffstat (limited to 'sys/dev/ath/ath_rate/onoe/onoe.c')
-rw-r--r-- | sys/dev/ath/ath_rate/onoe/onoe.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_rate/onoe/onoe.c b/sys/dev/ath/ath_rate/onoe/onoe.c index 22811c4..77236ad 100644 --- a/sys/dev/ath/ath_rate/onoe/onoe.c +++ b/sys/dev/ath/ath_rate/onoe/onoe.c @@ -122,6 +122,29 @@ ath_rate_findrate(struct ath_softc *sc, struct ath_node *an, *txrate = on->on_tx_rate0; } +/* + * Get the TX rates. + * + * The short preamble bits aren't set here; the caller should augment + * the returned rate with the relevant preamble rate flag. + */ +void +ath_rate_getxtxrates(struct ath_softc *sc, struct ath_node *an, + uint8_t rix0, uint8_t *rix, uint8_t *try) +{ + struct onoe_node *on = ATH_NODE_ONOE(an); + +/* rix[0] = on->on_tx_rate0; */ + rix[1] = on->on_tx_rate1; + rix[2] = on->on_tx_rate2; + rix[3] = on->on_tx_rate3; + + try[0] = on->on_tx_try0; + try[1] = 2; + try[2] = 2; + try[3] = 2; +} + void ath_rate_setupxtxdesc(struct ath_softc *sc, struct ath_node *an, struct ath_desc *ds, int shortPreamble, u_int8_t rix) |