diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-02-25 10:27:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:42:02 -0500 |
commit | 6f48422a29714ed92f6136d9e7d3ff39c75607d7 (patch) | |
tree | b42ae88b9cf4163c15d2b3fc7a46dfdbc97e816c /net/mac80211/debugfs_sta.c | |
parent | e6a5ddf20886206caf1c4a2431f6ff01198ab0f7 (diff) |
mac80211: remove STA infos last_ack stuff
These things aren't used and the only possible use is within
rate control algorithms, however those can, if they need it,
keep track of it in their private data. last_ack_ms isn't
even updated so completely useless.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/debugfs_sta.c')
-rw-r--r-- | net/mac80211/debugfs_sta.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c index 1a4d2c3775af..ed7c9f3b4602 100644 --- a/net/mac80211/debugfs_sta.c +++ b/net/mac80211/debugfs_sta.c | |||
@@ -98,31 +98,6 @@ static ssize_t sta_num_ps_buf_frames_read(struct file *file, | |||
98 | } | 98 | } |
99 | STA_OPS(num_ps_buf_frames); | 99 | STA_OPS(num_ps_buf_frames); |
100 | 100 | ||
101 | static ssize_t sta_last_ack_rssi_read(struct file *file, char __user *userbuf, | ||
102 | size_t count, loff_t *ppos) | ||
103 | { | ||
104 | char buf[100]; | ||
105 | struct sta_info *sta = file->private_data; | ||
106 | int res = scnprintf(buf, sizeof(buf), "%d %d %d\n", | ||
107 | sta->last_ack_rssi[0], | ||
108 | sta->last_ack_rssi[1], | ||
109 | sta->last_ack_rssi[2]); | ||
110 | return simple_read_from_buffer(userbuf, count, ppos, buf, res); | ||
111 | } | ||
112 | STA_OPS(last_ack_rssi); | ||
113 | |||
114 | static ssize_t sta_last_ack_ms_read(struct file *file, char __user *userbuf, | ||
115 | size_t count, loff_t *ppos) | ||
116 | { | ||
117 | char buf[20]; | ||
118 | struct sta_info *sta = file->private_data; | ||
119 | int res = scnprintf(buf, sizeof(buf), "%d\n", | ||
120 | sta->last_ack ? | ||
121 | jiffies_to_msecs(jiffies - sta->last_ack) : -1); | ||
122 | return simple_read_from_buffer(userbuf, count, ppos, buf, res); | ||
123 | } | ||
124 | STA_OPS(last_ack_ms); | ||
125 | |||
126 | static ssize_t sta_inactive_ms_read(struct file *file, char __user *userbuf, | 101 | static ssize_t sta_inactive_ms_read(struct file *file, char __user *userbuf, |
127 | size_t count, loff_t *ppos) | 102 | size_t count, loff_t *ppos) |
128 | { | 103 | { |
@@ -311,8 +286,6 @@ void ieee80211_sta_debugfs_add(struct sta_info *sta) | |||
311 | 286 | ||
312 | DEBUGFS_ADD(flags); | 287 | DEBUGFS_ADD(flags); |
313 | DEBUGFS_ADD(num_ps_buf_frames); | 288 | DEBUGFS_ADD(num_ps_buf_frames); |
314 | DEBUGFS_ADD(last_ack_rssi); | ||
315 | DEBUGFS_ADD(last_ack_ms); | ||
316 | DEBUGFS_ADD(inactive_ms); | 289 | DEBUGFS_ADD(inactive_ms); |
317 | DEBUGFS_ADD(last_seq_ctrl); | 290 | DEBUGFS_ADD(last_seq_ctrl); |
318 | #ifdef CONFIG_MAC80211_DEBUG_COUNTERS | 291 | #ifdef CONFIG_MAC80211_DEBUG_COUNTERS |
@@ -326,8 +299,6 @@ void ieee80211_sta_debugfs_remove(struct sta_info *sta) | |||
326 | { | 299 | { |
327 | DEBUGFS_DEL(flags); | 300 | DEBUGFS_DEL(flags); |
328 | DEBUGFS_DEL(num_ps_buf_frames); | 301 | DEBUGFS_DEL(num_ps_buf_frames); |
329 | DEBUGFS_DEL(last_ack_rssi); | ||
330 | DEBUGFS_DEL(last_ack_ms); | ||
331 | DEBUGFS_DEL(inactive_ms); | 302 | DEBUGFS_DEL(inactive_ms); |
332 | DEBUGFS_DEL(last_seq_ctrl); | 303 | DEBUGFS_DEL(last_seq_ctrl); |
333 | #ifdef CONFIG_MAC80211_DEBUG_COUNTERS | 304 | #ifdef CONFIG_MAC80211_DEBUG_COUNTERS |