Deleted Added
full compact
if_ath.c (220601) if_ath.c (220772)
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 220601 2011-04-13 15:17:23Z adrian $");
31__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath.c 220772 2011-04-18 12:15:43Z 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

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

1350 if (status & HAL_INT_RX)
1351 taskqueue_enqueue(sc->sc_tq, &sc->sc_rxtask);
1352 if (status & HAL_INT_TX)
1353 taskqueue_enqueue(sc->sc_tq, &sc->sc_txtask);
1354 if (status & HAL_INT_BMISS) {
1355 sc->sc_stats.ast_bmiss++;
1356 taskqueue_enqueue(sc->sc_tq, &sc->sc_bmisstask);
1357 }
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

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

1350 if (status & HAL_INT_RX)
1351 taskqueue_enqueue(sc->sc_tq, &sc->sc_rxtask);
1352 if (status & HAL_INT_TX)
1353 taskqueue_enqueue(sc->sc_tq, &sc->sc_txtask);
1354 if (status & HAL_INT_BMISS) {
1355 sc->sc_stats.ast_bmiss++;
1356 taskqueue_enqueue(sc->sc_tq, &sc->sc_bmisstask);
1357 }
1358 if (status & HAL_INT_GTT)
1359 sc->sc_stats.ast_tx_timeout++;
1358 if (status & HAL_INT_MIB) {
1359 sc->sc_stats.ast_mib++;
1360 /*
1361 * Disable interrupts until we service the MIB
1362 * interrupt; otherwise it will continue to fire.
1363 */
1364 ath_hal_intrset(ah, 0);
1365 /*

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

1554 | HAL_INT_FATAL | HAL_INT_GLOBAL;
1555 /*
1556 * Enable MIB interrupts when there are hardware phy counters.
1557 * Note we only do this (at the moment) for station mode.
1558 */
1559 if (sc->sc_needmib && ic->ic_opmode == IEEE80211_M_STA)
1560 sc->sc_imask |= HAL_INT_MIB;
1561
1360 if (status & HAL_INT_MIB) {
1361 sc->sc_stats.ast_mib++;
1362 /*
1363 * Disable interrupts until we service the MIB
1364 * interrupt; otherwise it will continue to fire.
1365 */
1366 ath_hal_intrset(ah, 0);
1367 /*

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

1556 | HAL_INT_FATAL | HAL_INT_GLOBAL;
1557 /*
1558 * Enable MIB interrupts when there are hardware phy counters.
1559 * Note we only do this (at the moment) for station mode.
1560 */
1561 if (sc->sc_needmib && ic->ic_opmode == IEEE80211_M_STA)
1562 sc->sc_imask |= HAL_INT_MIB;
1563
1564 /* Enable global TX timeout statistics if available */
1565 if (ath_hal_gtxto_supported(ah))
1566 sc->sc_imask |= (HAL_INT_GTT & HAL_INT_BMISC);
1567
1562 ifp->if_drv_flags |= IFF_DRV_RUNNING;
1563 callout_reset(&sc->sc_wd_ch, hz, ath_watchdog, sc);
1564 ath_hal_intrset(ah, sc->sc_imask);
1565
1566 ATH_UNLOCK(sc);
1567
1568#ifdef ATH_TX99_DIAG
1569 if (sc->sc_tx99 != NULL)

--- 4050 unchanged lines hidden ---
1568 ifp->if_drv_flags |= IFF_DRV_RUNNING;
1569 callout_reset(&sc->sc_wd_ch, hz, ath_watchdog, sc);
1570 ath_hal_intrset(ah, sc->sc_imask);
1571
1572 ATH_UNLOCK(sc);
1573
1574#ifdef ATH_TX99_DIAG
1575 if (sc->sc_tx99 != NULL)

--- 4050 unchanged lines hidden ---