mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
ath9k: dfs move ath_dfs_pool_stats
Move ath_dfs_pool_stats to dfs_pattern_detector code to be not specyfic only for ath9k. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com> Reviewed-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
95a5992e43
commit
d265214b61
6 changed files with 35 additions and 21 deletions
|
@ -20,16 +20,16 @@
|
|||
|
||||
#include "ath9k.h"
|
||||
#include "dfs_debug.h"
|
||||
#include "dfs_pattern_detector.h"
|
||||
|
||||
|
||||
struct ath_dfs_pool_stats global_dfs_pool_stats = { 0 };
|
||||
static struct ath_dfs_pool_stats dfs_pool_stats = { 0 };
|
||||
|
||||
#define ATH9K_DFS_STAT(s, p) \
|
||||
len += scnprintf(buf + len, size - len, "%28s : %10u\n", s, \
|
||||
sc->debug.stats.dfs_stats.p);
|
||||
#define ATH9K_DFS_POOL_STAT(s, p) \
|
||||
len += scnprintf(buf + len, size - len, "%28s : %10u\n", s, \
|
||||
global_dfs_pool_stats.p);
|
||||
dfs_pool_stats.p);
|
||||
|
||||
static ssize_t read_file_dfs(struct file *file, char __user *user_buf,
|
||||
size_t count, loff_t *ppos)
|
||||
|
@ -44,6 +44,9 @@ static ssize_t read_file_dfs(struct file *file, char __user *user_buf,
|
|||
if (buf == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
if (sc->dfs_detector)
|
||||
dfs_pool_stats = sc->dfs_detector->get_stats(sc->dfs_detector);
|
||||
|
||||
len += scnprintf(buf + len, size - len, "DFS support for "
|
||||
"macVersion = 0x%x, macRev = 0x%x: %s\n",
|
||||
hw_ver->macVersion, hw_ver->macRev,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue