diff options
author | Ben Greear <greearb@candelatech.com> | 2011-01-10 02:11:49 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-21 15:32:22 -0500 |
commit | 7f010c93d73847ffc6b74b572fef9a63e305d65e (patch) | |
tree | 9ed4a9cb46b55995b415f255fc83da7f4e4a95f8 /drivers/net/wireless/ath/ath9k/ath9k.h | |
parent | bda8addaed08834956d5695212717893a2e0cb13 (diff) |
ath9k: Keep track of stations for debugfs.
The stations hold the ath_node, which holds the tid
and other xmit logic structures. In order to debug
stuck xmit logic, we need a way to print out the tid
state for the stations.
Signed-off-by: Ben Greear <greearb@candelatech.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 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index aadb5de9ac76..d4640117fa8c 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -254,7 +254,10 @@ struct ath_atx_tid { | |||
254 | }; | 254 | }; |
255 | 255 | ||
256 | struct ath_node { | 256 | struct ath_node { |
257 | struct ath_common *common; | 257 | #ifdef CONFIG_ATH9K_DEBUGFS |
258 | struct list_head list; /* for sc->nodes */ | ||
259 | struct ieee80211_sta *sta; /* station struct we're part of */ | ||
260 | #endif | ||
258 | struct ath_atx_tid tid[WME_NUM_TID]; | 261 | struct ath_atx_tid tid[WME_NUM_TID]; |
259 | struct ath_atx_ac ac[WME_NUM_AC]; | 262 | struct ath_atx_ac ac[WME_NUM_AC]; |
260 | u16 maxampdu; | 263 | u16 maxampdu; |
@@ -638,6 +641,8 @@ struct ath_softc { | |||
638 | 641 | ||
639 | #ifdef CONFIG_ATH9K_DEBUGFS | 642 | #ifdef CONFIG_ATH9K_DEBUGFS |
640 | struct ath9k_debug debug; | 643 | struct ath9k_debug debug; |
644 | spinlock_t nodes_lock; | ||
645 | struct list_head nodes; /* basically, stations */ | ||
641 | #endif | 646 | #endif |
642 | struct ath_beacon_config cur_beacon_conf; | 647 | struct ath_beacon_config cur_beacon_conf; |
643 | struct delayed_work tx_complete_work; | 648 | struct delayed_work tx_complete_work; |