summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.h
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_pattern_detector.h
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_pattern_detector.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/dfs_pattern_detector.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.h b/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.h
index b09946fed938..9c752977eeff 100644
--- a/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.h
+++ b/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.h
@@ -22,6 +22,19 @@
#include <linux/nl80211.h>
/**
+ * struct ath_dfs_pool_stats - DFS Statistics for global pools
+ */
+struct ath_dfs_pool_stats {
+ u32 pool_reference;
+ u32 pulse_allocated;
+ u32 pulse_alloc_error;
+ u32 pulse_used;
+ u32 pseq_allocated;
+ u32 pseq_alloc_error;
+ u32 pseq_used;
+};
+
+/**
* struct pulse_event - describing pulses reported by PHY
* @ts: pulse time stamp in us
* @freq: channel frequency in MHz
@@ -77,6 +90,7 @@ struct dfs_pattern_detector {
bool (*add_pulse)(struct dfs_pattern_detector *dpd,
struct pulse_event *pe);
+ struct ath_dfs_pool_stats (*get_stats)(struct dfs_pattern_detector *dpd);
enum nl80211_dfs_regions region;
u8 num_radar_types;
u64 last_pulse_ts;