init.c (8181d3ef26ed1d9eb21e2cdcac374e1f457fdc06) | init.c (05c0be2f7f10404e5b3bc4105f9206096e9b8767) |
---|---|
1/* 2 * Copyright (c) 2008-2011 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 --- 505 unchanged lines hidden (view full) --- 514 } 515 return 0; 516} 517 518static void ath9k_init_misc(struct ath_softc *sc) 519{ 520 struct ath_common *common = ath9k_hw_common(sc->sc_ah); 521 int i = 0; | 1/* 2 * Copyright (c) 2008-2011 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 --- 505 unchanged lines hidden (view full) --- 514 } 515 return 0; 516} 517 518static void ath9k_init_misc(struct ath_softc *sc) 519{ 520 struct ath_common *common = ath9k_hw_common(sc->sc_ah); 521 int i = 0; |
522 | |
523 setup_timer(&common->ani.timer, ath_ani_calibrate, (unsigned long)sc); 524 525 sc->config.txpowlimit = ATH_TXPOWER_MAX; 526 527 if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_HT) { 528 sc->sc_flags |= SC_OP_TXAGGR; 529 sc->sc_flags |= SC_OP_RXAGGR; 530 } --- 49 unchanged lines hidden (view full) --- 580 common = ath9k_hw_common(ah); 581 common->ops = &ah->reg_ops; 582 common->bus_ops = bus_ops; 583 common->ah = ah; 584 common->hw = sc->hw; 585 common->priv = sc; 586 common->debug_mask = ath9k_debug; 587 common->btcoex_enabled = ath9k_btcoex_enable == 1; | 522 setup_timer(&common->ani.timer, ath_ani_calibrate, (unsigned long)sc); 523 524 sc->config.txpowlimit = ATH_TXPOWER_MAX; 525 526 if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_HT) { 527 sc->sc_flags |= SC_OP_TXAGGR; 528 sc->sc_flags |= SC_OP_RXAGGR; 529 } --- 49 unchanged lines hidden (view full) --- 579 common = ath9k_hw_common(ah); 580 common->ops = &ah->reg_ops; 581 common->bus_ops = bus_ops; 582 common->ah = ah; 583 common->hw = sc->hw; 584 common->priv = sc; 585 common->debug_mask = ath9k_debug; 586 common->btcoex_enabled = ath9k_btcoex_enable == 1; |
587 common->disable_ani = false; |
|
588 spin_lock_init(&common->cc_lock); 589 590 spin_lock_init(&sc->sc_serial_rw); 591 spin_lock_init(&sc->sc_pm_lock); 592 mutex_init(&sc->mutex); 593#ifdef CONFIG_ATH9K_DEBUGFS 594 spin_lock_init(&sc->nodes_lock); 595 INIT_LIST_HEAD(&sc->nodes); --- 340 unchanged lines hidden --- | 588 spin_lock_init(&common->cc_lock); 589 590 spin_lock_init(&sc->sc_serial_rw); 591 spin_lock_init(&sc->sc_pm_lock); 592 mutex_init(&sc->mutex); 593#ifdef CONFIG_ATH9K_DEBUGFS 594 spin_lock_init(&sc->nodes_lock); 595 INIT_LIST_HEAD(&sc->nodes); --- 340 unchanged lines hidden --- |