if_ath.c (228887) | if_ath.c (228888) |
---|---|
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> | 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 228887 2011-12-26 05:37:09Z adrian $"); | 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); | 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 if (sc->sc_softled) { 494 ath_hal_gpioCfgOutput(ah, sc->sc_ledpin, 495 HAL_GPIO_MUX_MAC_NETWORK_LED); 496 ath_hal_gpioset(ah, sc->sc_ledpin, !sc->sc_ledon); 497 } | 493 ath_led_config(sc); |
498 499 ifp->if_softc = sc; 500 ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST; 501 ifp->if_start = ath_start; 502 ifp->if_ioctl = ath_ioctl; 503 ifp->if_init = ath_init; 504 IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen); 505 ifp->if_snd.ifq_drv_maxlen = ifqmaxlen; --- 821 unchanged lines hidden (view full) --- 1327 * we wakeup and need to roam. For the latter we 1328 * should get bmiss events that trigger a roam. 1329 */ 1330 ath_beacon_config(sc, NULL); 1331 sc->sc_syncbeacon = 1; 1332 } else 1333 ieee80211_resume_all(ic); 1334 } | 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 } |
1335 if (sc->sc_softled) { 1336 ath_hal_gpioCfgOutput(ah, sc->sc_ledpin, 1337 HAL_GPIO_MUX_MAC_NETWORK_LED); 1338 ath_hal_gpioset(ah, sc->sc_ledpin, !sc->sc_ledon); 1339 } | 1331 ath_led_config(sc); |
1340 1341 /* XXX beacons ? */ 1342} 1343 1344void 1345ath_shutdown(struct ath_softc *sc) 1346{ 1347 struct ifnet *ifp = sc->sc_ifp; --- 5320 unchanged lines hidden --- | 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 --- |