Deleted Added
full compact
if_ural.c (214894) if_ural.c (217511)
1/* $FreeBSD: head/sys/dev/usb/wlan/if_ural.c 214894 2010-11-06 18:17:20Z bschmidt $ */
1/* $FreeBSD: head/sys/dev/usb/wlan/if_ural.c 217511 2011-01-17 20:15:15Z bschmidt $ */
2
3/*-
4 * Copyright (c) 2005, 2006
5 * Damien Bergamini <damien.bergamini@free.fr>
6 *
7 * Copyright (c) 2006, 2008
8 * Hans Petter Selasky <hselasky@FreeBSD.org>
9 *

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

16 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
17 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
19 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
20 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 */
22
23#include <sys/cdefs.h>
2
3/*-
4 * Copyright (c) 2005, 2006
5 * Damien Bergamini <damien.bergamini@free.fr>
6 *
7 * Copyright (c) 2006, 2008
8 * Hans Petter Selasky <hselasky@FreeBSD.org>
9 *

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

16 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
17 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
19 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
20 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 */
22
23#include <sys/cdefs.h>
24__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_ural.c 214894 2010-11-06 18:17:20Z bschmidt $");
24__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_ural.c 217511 2011-01-17 20:15:15Z bschmidt $");
25
26/*-
27 * Ralink Technology RT2500USB chipset driver
28 * http://www.ralinktech.com/
29 */
30
31#include <sys/param.h>
32#include <sys/sockio.h>

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

2210ural_ratectl_start(struct ural_softc *sc, struct ieee80211_node *ni)
2211{
2212 struct ieee80211vap *vap = ni->ni_vap;
2213 struct ural_vap *uvp = URAL_VAP(vap);
2214
2215 /* clear statistic registers (STA_CSR0 to STA_CSR10) */
2216 ural_read_multi(sc, RAL_STA_CSR0, sc->sta, sizeof sc->sta);
2217
25
26/*-
27 * Ralink Technology RT2500USB chipset driver
28 * http://www.ralinktech.com/
29 */
30
31#include <sys/param.h>
32#include <sys/sockio.h>

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

2210ural_ratectl_start(struct ural_softc *sc, struct ieee80211_node *ni)
2211{
2212 struct ieee80211vap *vap = ni->ni_vap;
2213 struct ural_vap *uvp = URAL_VAP(vap);
2214
2215 /* clear statistic registers (STA_CSR0 to STA_CSR10) */
2216 ural_read_multi(sc, RAL_STA_CSR0, sc->sta, sizeof sc->sta);
2217
2218 ieee80211_ratectl_node_init(ni);
2219
2220 usb_callout_reset(&uvp->ratectl_ch, hz, ural_ratectl_timeout, uvp);
2221}
2222
2223static void
2224ural_ratectl_timeout(void *arg)
2225{
2226 struct ural_vap *uvp = arg;
2227 struct ieee80211vap *vap = &uvp->vap;

--- 45 unchanged lines hidden ---
2218 usb_callout_reset(&uvp->ratectl_ch, hz, ural_ratectl_timeout, uvp);
2219}
2220
2221static void
2222ural_ratectl_timeout(void *arg)
2223{
2224 struct ural_vap *uvp = arg;
2225 struct ieee80211vap *vap = &uvp->vap;

--- 45 unchanged lines hidden ---