init.c (d70357d56942fa587e39505547cb69e10a8d59a0) | init.c (8fe6536850ae49609704a263cbc7542133536922) |
---|---|
1/* 2 * Copyright (c) 2008-2009 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 498 unchanged lines hidden (view full) --- 507 if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_HT) { 508 sc->sc_flags |= SC_OP_TXAGGR; 509 sc->sc_flags |= SC_OP_RXAGGR; 510 } 511 512 common->tx_chainmask = sc->sc_ah->caps.tx_chainmask; 513 common->rx_chainmask = sc->sc_ah->caps.rx_chainmask; 514 | 1/* 2 * Copyright (c) 2008-2009 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 498 unchanged lines hidden (view full) --- 507 if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_HT) { 508 sc->sc_flags |= SC_OP_TXAGGR; 509 sc->sc_flags |= SC_OP_RXAGGR; 510 } 511 512 common->tx_chainmask = sc->sc_ah->caps.tx_chainmask; 513 common->rx_chainmask = sc->sc_ah->caps.rx_chainmask; 514 |
515 ath9k_hw_setcapability(sc->sc_ah, ATH9K_CAP_DIVERSITY, 1, true, NULL); | 515 ath9k_hw_set_diversity(sc->sc_ah, true); |
516 sc->rx.defant = ath9k_hw_getdefantenna(sc->sc_ah); 517 518 if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_BSSIDMASK) 519 memcpy(common->bssidmask, ath_bcast_mac, ETH_ALEN); 520 521 sc->beacon.slottime = ATH9K_SLOT_TIME_9; 522 523 for (i = 0; i < ARRAY_SIZE(sc->beacon.bslot); i++) { --- 340 unchanged lines hidden --- | 516 sc->rx.defant = ath9k_hw_getdefantenna(sc->sc_ah); 517 518 if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_BSSIDMASK) 519 memcpy(common->bssidmask, ath_bcast_mac, ETH_ALEN); 520 521 sc->beacon.slottime = ATH9K_SLOT_TIME_9; 522 523 for (i = 0; i < ARRAY_SIZE(sc->beacon.bslot); i++) { --- 340 unchanged lines hidden --- |