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/ath5k/base.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/ath5k/base.c')
-rw-r--r-- | drivers/net/wireless/ath5k/base.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index fa39f21c36c3..b3f41acb9065 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c | |||
@@ -239,6 +239,7 @@ static int ath5k_get_stats(struct ieee80211_hw *hw, | |||
239 | static int ath5k_get_tx_stats(struct ieee80211_hw *hw, | 239 | static int ath5k_get_tx_stats(struct ieee80211_hw *hw, |
240 | struct ieee80211_tx_queue_stats *stats); | 240 | struct ieee80211_tx_queue_stats *stats); |
241 | static u64 ath5k_get_tsf(struct ieee80211_hw *hw); | 241 | static u64 ath5k_get_tsf(struct ieee80211_hw *hw); |
242 | static void ath5k_set_tsf(struct ieee80211_hw *hw, u64 tsf); | ||
242 | static void ath5k_reset_tsf(struct ieee80211_hw *hw); | 243 | static void ath5k_reset_tsf(struct ieee80211_hw *hw); |
243 | static int ath5k_beacon_update(struct ath5k_softc *sc, | 244 | static int ath5k_beacon_update(struct ath5k_softc *sc, |
244 | struct sk_buff *skb); | 245 | struct sk_buff *skb); |
@@ -261,6 +262,7 @@ static struct ieee80211_ops ath5k_hw_ops = { | |||
261 | .conf_tx = NULL, | 262 | .conf_tx = NULL, |
262 | .get_tx_stats = ath5k_get_tx_stats, | 263 | .get_tx_stats = ath5k_get_tx_stats, |
263 | .get_tsf = ath5k_get_tsf, | 264 | .get_tsf = ath5k_get_tsf, |
265 | .set_tsf = ath5k_set_tsf, | ||
264 | .reset_tsf = ath5k_reset_tsf, | 266 | .reset_tsf = ath5k_reset_tsf, |
265 | .bss_info_changed = ath5k_bss_info_changed, | 267 | .bss_info_changed = ath5k_bss_info_changed, |
266 | }; | 268 | }; |
@@ -3111,6 +3113,14 @@ ath5k_get_tsf(struct ieee80211_hw *hw) | |||
3111 | } | 3113 | } |
3112 | 3114 | ||
3113 | static void | 3115 | static void |
3116 | ath5k_set_tsf(struct ieee80211_hw *hw, u64 tsf) | ||
3117 | { | ||
3118 | struct ath5k_softc *sc = hw->priv; | ||
3119 | |||
3120 | ath5k_hw_set_tsf64(sc->ah, tsf); | ||
3121 | } | ||
3122 | |||
3123 | static void | ||
3114 | ath5k_reset_tsf(struct ieee80211_hw *hw) | 3124 | ath5k_reset_tsf(struct ieee80211_hw *hw) |
3115 | { | 3125 | { |
3116 | struct ath5k_softc *sc = hw->priv; | 3126 | struct ath5k_softc *sc = hw->priv; |