diff options
author | Christian Lamparter <chunkeey@web.de> | 2008-12-13 08:14:20 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-19 15:23:11 -0500 |
commit | 54fdb040b4760d5b2994d15c1371e297679420e9 (patch) | |
tree | e287e40aa879482c9509cf4e3abe30af05efe4d6 /drivers/net/wireless/p54/p54.h | |
parent | d5e490362feb648048ef20db9b0b2531d5425775 (diff) |
p54: move statistic timer update routine into a workqueue
This patch moves a good chunk of code from the former statistic update
timer routine into a workqueue, which is kindly provided by mac80211.
Also as a nice side-effect we can lay the foundation for other
essential housekeeping features we want to do in the future.
e.g:
- drain the (clogged) tx_queue.
- initiate bursts.
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/p54.h')
-rw-r--r-- | drivers/net/wireless/p54/p54.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/p54/p54.h b/drivers/net/wireless/p54/p54.h index d2dbb9e15d97..23b80ef4d015 100644 --- a/drivers/net/wireless/p54/p54.h +++ b/drivers/net/wireless/p54/p54.h | |||
@@ -71,6 +71,7 @@ struct p54_edcf_queue_param { | |||
71 | #define FW_LM20 0x4c4d3230 | 71 | #define FW_LM20 0x4c4d3230 |
72 | 72 | ||
73 | struct p54_common { | 73 | struct p54_common { |
74 | struct ieee80211_hw *hw; | ||
74 | u32 rx_start; | 75 | u32 rx_start; |
75 | u32 rx_end; | 76 | u32 rx_end; |
76 | struct sk_buff_head tx_queue; | 77 | struct sk_buff_head tx_queue; |
@@ -106,9 +107,7 @@ struct p54_common { | |||
106 | struct ieee80211_tx_queue_stats tx_stats[8]; | 107 | struct ieee80211_tx_queue_stats tx_stats[8]; |
107 | struct p54_edcf_queue_param qos_params[8]; | 108 | struct p54_edcf_queue_param qos_params[8]; |
108 | struct ieee80211_low_level_stats stats; | 109 | struct ieee80211_low_level_stats stats; |
109 | struct timer_list stats_timer; | 110 | struct delayed_work work; |
110 | struct completion stats_comp; | ||
111 | struct sk_buff *cached_stats; | ||
112 | struct sk_buff *cached_beacon; | 111 | struct sk_buff *cached_beacon; |
113 | int noise; | 112 | int noise; |
114 | void *eeprom; | 113 | void *eeprom; |