summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2013-10-14 11:06:05 +0200
committerJohn W. Linville <linville@tuxdriver.com>2013-10-18 14:03:54 -0400
commit379ce86e1f458281ca014a0053cf9350c7dca4bf (patch)
treed5d0969760a10799f7facb3768038c2e9274932d /drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c
parentd265214b614aac62cdb8baed7ed3d77494cc9bdc (diff)
downloadlinux-379ce86e1f458281ca014a0053cf9350c7dca4bf.tar.bz2
ath9k: dfs use CFG80211_CERTIFICATION_ONUS flag
Use CFG80211_CERTIFICATION_ONUS flag in the DFS detector code. This is required as a preparation for moving DFS detector code from ath9k to ath module. 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.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c b/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c
index b0dcd1b72f31..c230ffc2ddc7 100644
--- a/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c
+++ b/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c
@@ -299,6 +299,9 @@ dfs_pattern_detector_init(struct ath_common *common,
{
struct dfs_pattern_detector *dpd;
+ if (!config_enabled(CONFIG_CFG80211_CERTIFICATION_ONUS))
+ return NULL;
+
dpd = kmalloc(sizeof(*dpd), GFP_KERNEL);
if (dpd == NULL)
return NULL;