diff options
author | Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com> | 2016-06-30 08:23:50 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2016-07-08 02:37:51 -0400 |
commit | 2ba1f3709452a1e55b9944bdda88b043b6b3fad0 (patch) | |
tree | 8310b82648ad9c629cf8fba6ff4065cd89fb772b /drivers/net/wireless/ath/ath10k/debugfs_sta.c | |
parent | 120a1f02a5c4a3c91a9b082713ca8cd32f9acf76 (diff) |
ath10k: remove debugfs support for Per STA total rx duration
cfg80211/nl80211 interface changes for per STA total rx-duration and
very basic 'ath10k_sta_statistics' mac80211 callback is implemented
to extend support for per station statistics from the driver.
Also provision in 'iw dev wlan#N station dump' to parse rx-duration
is supported. So its safer to remove the debugfs entry for per STA
rx-duration
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/debugfs_sta.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/debugfs_sta.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/net/wireless/ath/ath10k/debugfs_sta.c b/drivers/net/wireless/ath/ath10k/debugfs_sta.c index 60e5da0fa7ff..9955fea0802a 100644 --- a/drivers/net/wireless/ath/ath10k/debugfs_sta.c +++ b/drivers/net/wireless/ath/ath10k/debugfs_sta.c | |||
@@ -293,28 +293,6 @@ static const struct file_operations fops_delba = { | |||
293 | .llseek = default_llseek, | 293 | .llseek = default_llseek, |
294 | }; | 294 | }; |
295 | 295 | ||
296 | static ssize_t ath10k_dbg_sta_read_rx_duration(struct file *file, | ||
297 | char __user *user_buf, | ||
298 | size_t count, loff_t *ppos) | ||
299 | { | ||
300 | struct ieee80211_sta *sta = file->private_data; | ||
301 | struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv; | ||
302 | char buf[100]; | ||
303 | int len = 0; | ||
304 | |||
305 | len = scnprintf(buf, sizeof(buf), | ||
306 | "%llu usecs\n", arsta->rx_duration); | ||
307 | |||
308 | return simple_read_from_buffer(user_buf, count, ppos, buf, len); | ||
309 | } | ||
310 | |||
311 | static const struct file_operations fops_rx_duration = { | ||
312 | .read = ath10k_dbg_sta_read_rx_duration, | ||
313 | .open = simple_open, | ||
314 | .owner = THIS_MODULE, | ||
315 | .llseek = default_llseek, | ||
316 | }; | ||
317 | |||
318 | void ath10k_sta_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | 296 | void ath10k_sta_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif, |
319 | struct ieee80211_sta *sta, struct dentry *dir) | 297 | struct ieee80211_sta *sta, struct dentry *dir) |
320 | { | 298 | { |
@@ -323,6 +301,4 @@ void ath10k_sta_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | |||
323 | debugfs_create_file("addba", S_IWUSR, dir, sta, &fops_addba); | 301 | debugfs_create_file("addba", S_IWUSR, dir, sta, &fops_addba); |
324 | debugfs_create_file("addba_resp", S_IWUSR, dir, sta, &fops_addba_resp); | 302 | debugfs_create_file("addba_resp", S_IWUSR, dir, sta, &fops_addba_resp); |
325 | debugfs_create_file("delba", S_IWUSR, dir, sta, &fops_delba); | 303 | debugfs_create_file("delba", S_IWUSR, dir, sta, &fops_delba); |
326 | debugfs_create_file("rx_duration", S_IRUGO, dir, sta, | ||
327 | &fops_rx_duration); | ||
328 | } | 304 | } |