Deleted Added
full compact
if_athrate.h (184346) if_athrate.h (218160)
1/*-
2 * Copyright (c) 2004-2008 Sam Leffler, Errno Consulting
3 * Copyright (c) 2004 Video54 Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 13 unchanged lines hidden (view full) ---

22 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
23 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
26 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGES.
29 *
1/*-
2 * Copyright (c) 2004-2008 Sam Leffler, Errno Consulting
3 * Copyright (c) 2004 Video54 Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 13 unchanged lines hidden (view full) ---

22 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
23 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
26 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGES.
29 *
30 * $FreeBSD: head/sys/dev/ath/if_athrate.h 184346 2008-10-27 16:58:06Z sam $
30 * $FreeBSD: head/sys/dev/ath/if_athrate.h 218160 2011-02-01 08:10:18Z adrian $
31 */
32#ifndef _ATH_RATECTRL_H_
33#define _ATH_RATECTRL_H_
34
35/*
36 * Interface definitions for transmit rate control modules for the
37 * Atheros driver.
38 *

--- 58 unchanged lines hidden (view full) ---

97 */
98void ath_rate_newassoc(struct ath_softc *, struct ath_node *,
99 int isNewAssociation);
100
101/*
102 * Transmit handling.
103 */
104/*
31 */
32#ifndef _ATH_RATECTRL_H_
33#define _ATH_RATECTRL_H_
34
35/*
36 * Interface definitions for transmit rate control modules for the
37 * Atheros driver.
38 *

--- 58 unchanged lines hidden (view full) ---

97 */
98void ath_rate_newassoc(struct ath_softc *, struct ath_node *,
99 int isNewAssociation);
100
101/*
102 * Transmit handling.
103 */
104/*
105 * Return the four TX rate index and try counts for the current data packet.
106 */
107void ath_rate_getxtxrates(struct ath_softc *sc, struct ath_node *an,
108 uint8_t rix0, uint8_t *rix, uint8_t *try);
109
110/*
105 * Return the transmit info for a data packet. If multi-rate state
106 * is to be setup then try0 should contain a value other than ATH_TXMATRY
107 * and ath_rate_setupxtxdesc will be called after deciding if the frame
108 * can be transmitted with multi-rate retry.
109 */
110void ath_rate_findrate(struct ath_softc *, struct ath_node *,
111 int shortPreamble, size_t frameLen,
112 u_int8_t *rix, int *try0, u_int8_t *txrate);

--- 16 unchanged lines hidden ---
111 * Return the transmit info for a data packet. If multi-rate state
112 * is to be setup then try0 should contain a value other than ATH_TXMATRY
113 * and ath_rate_setupxtxdesc will be called after deciding if the frame
114 * can be transmitted with multi-rate retry.
115 */
116void ath_rate_findrate(struct ath_softc *, struct ath_node *,
117 int shortPreamble, size_t frameLen,
118 u_int8_t *rix, int *try0, u_int8_t *txrate);

--- 16 unchanged lines hidden ---