diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2012-06-04 10:53:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-06 15:20:30 -0400 |
commit | ef1b6cd9a1ba06a3daf9a03aa8f25d52d1f2c31a (patch) | |
tree | b7257ad0dcbfee66cd02f496238c755e6e281088 /drivers/net/wireless/ath/ath9k/ath9k.h | |
parent | 6995fb805ed5de852a7d49413730980bc7173e82 (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.h | 13 |
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); | |||
326 | void ath_rx_cleanup(struct ath_softc *sc); | 326 | void ath_rx_cleanup(struct ath_softc *sc); |
327 | int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp); | 327 | int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp); |
328 | struct ath_txq *ath_txq_setup(struct ath_softc *sc, int qtype, int subtype); | 328 | struct ath_txq *ath_txq_setup(struct ath_softc *sc, int qtype, int subtype); |
329 | void ath_txq_lock(struct ath_softc *sc, struct ath_txq *txq); | ||
330 | void ath_txq_unlock(struct ath_softc *sc, struct ath_txq *txq); | ||
331 | void ath_txq_unlock_complete(struct ath_softc *sc, struct ath_txq *txq); | ||
329 | void ath_tx_cleanupq(struct ath_softc *sc, struct ath_txq *txq); | 332 | void ath_tx_cleanupq(struct ath_softc *sc, struct ath_txq *txq); |
330 | bool ath_drain_all_txq(struct ath_softc *sc, bool retry_tx); | 333 | bool ath_drain_all_txq(struct ath_softc *sc, bool retry_tx); |
331 | void ath_draintxq(struct ath_softc *sc, | 334 | void ath_draintxq(struct ath_softc *sc, |
@@ -415,9 +418,9 @@ int ath_beaconq_config(struct ath_softc *sc); | |||
415 | void ath_set_beacon(struct ath_softc *sc); | 418 | void ath_set_beacon(struct ath_softc *sc); |
416 | void ath9k_set_beaconing_status(struct ath_softc *sc, bool status); | 419 | void 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 | ||
435 | void ath_tx_complete_poll_work(struct work_struct *work); | ||
432 | void ath_reset_work(struct work_struct *work); | 436 | void ath_reset_work(struct work_struct *work); |
433 | void ath_hw_check(struct work_struct *work); | 437 | void ath_hw_check(struct work_struct *work); |
434 | void ath_hw_pll_work(struct work_struct *work); | 438 | void ath_hw_pll_work(struct work_struct *work); |
@@ -437,6 +441,8 @@ void ath_start_rx_poll(struct ath_softc *sc, u8 nbeacon); | |||
437 | void ath_paprd_calibrate(struct work_struct *work); | 441 | void ath_paprd_calibrate(struct work_struct *work); |
438 | void ath_ani_calibrate(unsigned long data); | 442 | void ath_ani_calibrate(unsigned long data); |
439 | void ath_start_ani(struct ath_common *common); | 443 | void ath_start_ani(struct ath_common *common); |
444 | int ath_update_survey_stats(struct ath_softc *sc); | ||
445 | void 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 */ |