aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ath9k.h
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2012-06-04 10:53:37 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-06-06 15:20:30 -0400
commitef1b6cd9a1ba06a3daf9a03aa8f25d52d1f2c31a (patch)
treeb7257ad0dcbfee66cd02f496238c755e6e281088 /drivers/net/wireless/ath/ath9k/ath9k.h
parent6995fb805ed5de852a7d49413730980bc7173e82 (diff)
ath9k: Group link monitoring logic
Add link.c and move all the link/connection monitoring code to it. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ath9k.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/ath9k.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index ce10d1a9e493..d804416092ce 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -326,6 +326,9 @@ int ath_rx_init(struct ath_softc *sc, int nbufs);
326void ath_rx_cleanup(struct ath_softc *sc); 326void ath_rx_cleanup(struct ath_softc *sc);
327int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp); 327int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp);
328struct ath_txq *ath_txq_setup(struct ath_softc *sc, int qtype, int subtype); 328struct ath_txq *ath_txq_setup(struct ath_softc *sc, int qtype, int subtype);
329void ath_txq_lock(struct ath_softc *sc, struct ath_txq *txq);
330void ath_txq_unlock(struct ath_softc *sc, struct ath_txq *txq);
331void ath_txq_unlock_complete(struct ath_softc *sc, struct ath_txq *txq);
329void ath_tx_cleanupq(struct ath_softc *sc, struct ath_txq *txq); 332void ath_tx_cleanupq(struct ath_softc *sc, struct ath_txq *txq);
330bool ath_drain_all_txq(struct ath_softc *sc, bool retry_tx); 333bool ath_drain_all_txq(struct ath_softc *sc, bool retry_tx);
331void ath_draintxq(struct ath_softc *sc, 334void ath_draintxq(struct ath_softc *sc,
@@ -415,9 +418,9 @@ int ath_beaconq_config(struct ath_softc *sc);
415void ath_set_beacon(struct ath_softc *sc); 418void ath_set_beacon(struct ath_softc *sc);
416void ath9k_set_beaconing_status(struct ath_softc *sc, bool status); 419void ath9k_set_beaconing_status(struct ath_softc *sc, bool status);
417 420
418/*******/ 421/*******************/
419/* ANI */ 422/* Link Monitoring */
420/*******/ 423/*******************/
421 424
422#define ATH_STA_SHORT_CALINTERVAL 1000 /* 1 second */ 425#define ATH_STA_SHORT_CALINTERVAL 1000 /* 1 second */
423#define ATH_AP_SHORT_CALINTERVAL 100 /* 100 ms */ 426#define ATH_AP_SHORT_CALINTERVAL 100 /* 100 ms */
@@ -429,6 +432,7 @@ void ath9k_set_beaconing_status(struct ath_softc *sc, bool status);
429 432
430#define ATH_PAPRD_TIMEOUT 100 /* msecs */ 433#define ATH_PAPRD_TIMEOUT 100 /* msecs */
431 434
435void ath_tx_complete_poll_work(struct work_struct *work);
432void ath_reset_work(struct work_struct *work); 436void ath_reset_work(struct work_struct *work);
433void ath_hw_check(struct work_struct *work); 437void ath_hw_check(struct work_struct *work);
434void ath_hw_pll_work(struct work_struct *work); 438void ath_hw_pll_work(struct work_struct *work);
@@ -437,6 +441,8 @@ void ath_start_rx_poll(struct ath_softc *sc, u8 nbeacon);
437void ath_paprd_calibrate(struct work_struct *work); 441void ath_paprd_calibrate(struct work_struct *work);
438void ath_ani_calibrate(unsigned long data); 442void ath_ani_calibrate(unsigned long data);
439void ath_start_ani(struct ath_common *common); 443void ath_start_ani(struct ath_common *common);
444int ath_update_survey_stats(struct ath_softc *sc);
445void ath_update_survey_nf(struct ath_softc *sc, int channel);
440 446
441/**********/ 447/**********/
442/* BTCOEX */ 448/* BTCOEX */
@@ -741,5 +747,4 @@ void ath9k_calculate_iter_data(struct ieee80211_hw *hw,
741 struct ieee80211_vif *vif, 747 struct ieee80211_vif *vif,
742 struct ath9k_vif_iter_data *iter_data); 748 struct ath9k_vif_iter_data *iter_data);
743 749
744
745#endif /* ATH9K_H */ 750#endif /* ATH9K_H */