Deleted Added
full compact
rt2560.c (178704) rt2560.c (178931)
1/* $FreeBSD: head/sys/dev/ral/rt2560.c 178704 2008-05-01 04:55:00Z thompsa $ */
1/* $FreeBSD: head/sys/dev/ral/rt2560.c 178931 2008-05-10 20:25:59Z thompsa $ */
2
3/*-
4 * Copyright (c) 2005, 2006
5 * Damien Bergamini <damien.bergamini@free.fr>
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */
19
20#include <sys/cdefs.h>
2
3/*-
4 * Copyright (c) 2005, 2006
5 * Damien Bergamini <damien.bergamini@free.fr>
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */
19
20#include <sys/cdefs.h>
21__FBSDID("$FreeBSD: head/sys/dev/ral/rt2560.c 178704 2008-05-01 04:55:00Z thompsa $");
21__FBSDID("$FreeBSD: head/sys/dev/ral/rt2560.c 178931 2008-05-10 20:25:59Z thompsa $");
22
23/*-
24 * Ralink Technology RT2560 chipset driver
25 * http://www.ralinktech.com/
26 */
27
28#include <sys/param.h>
29#include <sys/sysctl.h>

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

2721 struct rt2560_softc *sc = priv;
2722 struct ifnet *ifp = sc->sc_ifp;
2723 struct ieee80211com *ic = ifp->if_l2com;
2724
2725 RAL_LOCK(sc);
2726 rt2560_init_locked(sc);
2727 RAL_UNLOCK(sc);
2728
22
23/*-
24 * Ralink Technology RT2560 chipset driver
25 * http://www.ralinktech.com/
26 */
27
28#include <sys/param.h>
29#include <sys/sysctl.h>

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

2721 struct rt2560_softc *sc = priv;
2722 struct ifnet *ifp = sc->sc_ifp;
2723 struct ieee80211com *ic = ifp->if_l2com;
2724
2725 RAL_LOCK(sc);
2726 rt2560_init_locked(sc);
2727 RAL_UNLOCK(sc);
2728
2729 ieee80211_start_all(ic);
2729 if (ifp->if_drv_flags & IFF_DRV_RUNNING)
2730 ieee80211_start_all(ic); /* start all vap's */
2730}
2731
2732static void
2733rt2560_stop_locked(struct rt2560_softc *sc)
2734{
2735 struct ifnet *ifp = sc->sc_ifp;
2736 volatile int *flags = &sc->sc_flags;
2737

--- 98 unchanged lines hidden ---
2731}
2732
2733static void
2734rt2560_stop_locked(struct rt2560_softc *sc)
2735{
2736 struct ifnet *ifp = sc->sc_ifp;
2737 volatile int *flags = &sc->sc_flags;
2738

--- 98 unchanged lines hidden ---