Deleted Added
sdiff udiff text old ( 186804 ) new ( 218160 )
full compact
1/*-
2 * Copyright (c) 2002-2007 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/ath/ath_rate/onoe/onoe.c 186804 2009-01-06 01:36:36Z sam $");
32
33/*
34 * Atsushi Onoe's rate control algorithm.
35 */
36#include "opt_inet.h"
37#include "opt_wlan.h"
38
39#include <sys/param.h>

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

117 *rix = on->on_tx_rix0;
118 *try0 = on->on_tx_try0;
119 if (shortPreamble)
120 *txrate = on->on_tx_rate0sp;
121 else
122 *txrate = on->on_tx_rate0;
123}
124
125void
126ath_rate_setupxtxdesc(struct ath_softc *sc, struct ath_node *an,
127 struct ath_desc *ds, int shortPreamble, u_int8_t rix)
128{
129 struct onoe_node *on = ATH_NODE_ONOE(an);
130
131 ath_hal_setupxtxdesc(sc->sc_ah, ds
132 , on->on_tx_rate1sp, 2 /* series 1 */
133 , on->on_tx_rate2sp, 2 /* series 2 */

--- 271 unchanged lines hidden ---