summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/dfs_pri_detector.c
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2013-10-14 11:06:04 +0200
committerJohn W. Linville <linville@tuxdriver.com>2013-10-18 14:03:54 -0400
commitd265214b614aac62cdb8baed7ed3d77494cc9bdc (patch)
treebb67a739092baf61e7cea155e1c53801bb1cce1d /drivers/net/wireless/ath/ath9k/dfs_pri_detector.c
parent95a5992e43046104ca92c6fb93a80d140d1aa7ce (diff)
downloadlwn-d265214b614aac62cdb8baed7ed3d77494cc9bdc.tar.gz
lwn-d265214b614aac62cdb8baed7ed3d77494cc9bdc.zip
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/dfs_pri_detector.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/dfs_pri_detector.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/dfs_pri_detector.c b/drivers/net/wireless/ath/ath9k/dfs_pri_detector.c
index c718fc379a10..17b5bf9fd6a1 100644
--- a/drivers/net/wireless/ath/ath9k/dfs_pri_detector.c
+++ b/drivers/net/wireless/ath/ath9k/dfs_pri_detector.c
@@ -17,10 +17,14 @@
#include <linux/slab.h>
#include <linux/spinlock.h>
-#include "ath9k.h"
+#include "../ath.h"
#include "dfs_pattern_detector.h"
#include "dfs_pri_detector.h"
-#include "dfs_debug.h"
+
+struct ath_dfs_pool_stats global_dfs_pool_stats = {};
+
+#define DFS_POOL_STAT_INC(c) (global_dfs_pool_stats.c++)
+#define DFS_POOL_STAT_DEC(c) (global_dfs_pool_stats.c--)
/**
* struct pulse_elem - elements in pulse queue