/* * Copyright (c) 2012 Qualcomm Atheros, Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include "ath9k.h" /* * TX polling - checks if the TX engine is stuck somewhere * and issues a chip reset if so. */ static bool ath_tx_complete_check(struct ath_softc *sc) { … } void ath_hw_check_work(struct work_struct *work) { … } /* * Checks if the BB/MAC is hung. */ bool ath_hw_check(struct ath_softc *sc) { … } /* * PLL-WAR for AR9485/AR9340 */ static bool ath_hw_pll_rx_hang_check(struct ath_softc *sc, u32 pll_sqsum) { … } void ath_hw_pll_work(struct work_struct *work) { … } /* * PA Pre-distortion. */ static void ath_paprd_activate(struct ath_softc *sc) { … } static bool ath_paprd_send_frame(struct ath_softc *sc, struct sk_buff *skb, int chain) { … } void ath_paprd_calibrate(struct work_struct *work) { … } /* * ANI performs periodic noise floor calibration * that is used to adjust and optimize the chip performance. This * takes environmental changes (location, temperature) into account. * When the task is complete, it reschedules itself depending on the * appropriate interval that was calculated. */ void ath_ani_calibrate(struct timer_list *t) { … } void ath_start_ani(struct ath_softc *sc) { … } void ath_stop_ani(struct ath_softc *sc) { … } void ath_check_ani(struct ath_softc *sc) { … } void ath_update_survey_nf(struct ath_softc *sc, int channel) { … } /* * Updates the survey statistics and returns the busy time since last * update in %, if the measurement duration was long enough for the * result to be useful, -1 otherwise. */ int ath_update_survey_stats(struct ath_softc *sc) { … }