Deleted Added
full compact
if_ath.c (237108) if_ath.c (237153)
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 237108 2012-06-15 01:15:59Z adrian $");
31__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath.c 237153 2012-06-16 04:41:35Z 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

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

657 if (resource_int_value(device_get_name(sc->sc_dev),
658 device_get_unit(sc->sc_dev), "tx_chainmask",
659 &tx_chainmask) == 0) {
660 device_printf(sc->sc_dev, "Setting TX chainmask to 0x%x\n",
661 tx_chainmask);
662 (void) ath_hal_settxchainmask(sc->sc_ah, tx_chainmask);
663 }
664
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

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

657 if (resource_int_value(device_get_name(sc->sc_dev),
658 device_get_unit(sc->sc_dev), "tx_chainmask",
659 &tx_chainmask) == 0) {
660 device_printf(sc->sc_dev, "Setting TX chainmask to 0x%x\n",
661 tx_chainmask);
662 (void) ath_hal_settxchainmask(sc->sc_ah, tx_chainmask);
663 }
664
665 device_printf(sc->sc_dev, "%s: sizeof(ath_buf) = %d bytes\n",
666 __func__, sizeof(struct ath_buf));
667
665#ifdef ATH_ENABLE_11N
666 /*
667 * Query HT capabilities
668 */
669 if (ath_hal_getcapability(ah, HAL_CAP_HT, 0, NULL) == HAL_OK &&
670 (wmodes & (HAL_MODE_HT20 | HAL_MODE_HT40))) {
671 int rxs, txs;
672

--- 4404 unchanged lines hidden ---
668#ifdef ATH_ENABLE_11N
669 /*
670 * Query HT capabilities
671 */
672 if (ath_hal_getcapability(ah, HAL_CAP_HT, 0, NULL) == HAL_OK &&
673 (wmodes & (HAL_MODE_HT20 | HAL_MODE_HT40))) {
674 int rxs, txs;
675

--- 4404 unchanged lines hidden ---