diff options
author | Alina Friedrichsen <x-alina@gmx.net> | 2009-01-24 01:09:59 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:01:46 -0500 |
commit | 3b5d665b51cda73ef1a774b515afd879a38e3674 (patch) | |
tree | 68d71f6ac09f638b65ca1e256a17dfdb6c5b12b4 /drivers/net/wireless/ath9k/main.c | |
parent | 3978e5bce63484789891c67413372da3915bcbd6 (diff) |
mac80211: Generic TSF debugging
This patch enables low-level driver independent debugging of the TSF and remove the driver specific things of ath5k and ath9k from the debugfs.
Signed-off-by: Alina Friedrichsen <x-alina@gmx.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 15a7f90bc84b..90e687b5a8b7 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -2451,6 +2451,14 @@ static u64 ath9k_get_tsf(struct ieee80211_hw *hw) | |||
2451 | return tsf; | 2451 | return tsf; |
2452 | } | 2452 | } |
2453 | 2453 | ||
2454 | static void ath9k_set_tsf(struct ieee80211_hw *hw, u64 tsf) | ||
2455 | { | ||
2456 | struct ath_softc *sc = hw->priv; | ||
2457 | struct ath_hal *ah = sc->sc_ah; | ||
2458 | |||
2459 | ath9k_hw_settsf64(ah, tsf); | ||
2460 | } | ||
2461 | |||
2454 | static void ath9k_reset_tsf(struct ieee80211_hw *hw) | 2462 | static void ath9k_reset_tsf(struct ieee80211_hw *hw) |
2455 | { | 2463 | { |
2456 | struct ath_softc *sc = hw->priv; | 2464 | struct ath_softc *sc = hw->priv; |
@@ -2514,6 +2522,7 @@ struct ieee80211_ops ath9k_ops = { | |||
2514 | .bss_info_changed = ath9k_bss_info_changed, | 2522 | .bss_info_changed = ath9k_bss_info_changed, |
2515 | .set_key = ath9k_set_key, | 2523 | .set_key = ath9k_set_key, |
2516 | .get_tsf = ath9k_get_tsf, | 2524 | .get_tsf = ath9k_get_tsf, |
2525 | .set_tsf = ath9k_set_tsf, | ||
2517 | .reset_tsf = ath9k_reset_tsf, | 2526 | .reset_tsf = ath9k_reset_tsf, |
2518 | .ampdu_action = ath9k_ampdu_action, | 2527 | .ampdu_action = ath9k_ampdu_action, |
2519 | }; | 2528 | }; |