Deleted Added
sdiff udiff text old ( 228887 ) new ( 228888 )
full compact
1/*-
2 * Copyright (c) 2002-2009 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/if_ath.c 228888 2011-12-26 05:46:22Z adrian $");
32
33/*
34 * Driver for the Atheros Wireless LAN controller.
35 *
36 * This software is derived from work of Atsushi Onoe; his contribution
37 * is greatly appreciated.
38 */
39

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

485 sc->sc_ledidle = (2700*hz)/1000; /* 2.7sec */
486 callout_init(&sc->sc_ledtimer, CALLOUT_MPSAFE);
487 /*
488 * Auto-enable soft led processing for IBM cards and for
489 * 5211 minipci cards. Users can also manually enable/disable
490 * support with a sysctl.
491 */
492 sc->sc_softled = (devid == AR5212_DEVID_IBM || devid == AR5211_DEVID);
493 ath_led_config(sc);
494
495 ifp->if_softc = sc;
496 ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST;
497 ifp->if_start = ath_start;
498 ifp->if_ioctl = ath_ioctl;
499 ifp->if_init = ath_init;
500 IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen);
501 ifp->if_snd.ifq_drv_maxlen = ifqmaxlen;

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

1323 * we wakeup and need to roam. For the latter we
1324 * should get bmiss events that trigger a roam.
1325 */
1326 ath_beacon_config(sc, NULL);
1327 sc->sc_syncbeacon = 1;
1328 } else
1329 ieee80211_resume_all(ic);
1330 }
1331 ath_led_config(sc);
1332
1333 /* XXX beacons ? */
1334}
1335
1336void
1337ath_shutdown(struct ath_softc *sc)
1338{
1339 struct ifnet *ifp = sc->sc_ifp;

--- 5320 unchanged lines hidden ---