diff options
author | Zefir Kurtisi <zefir.kurtisi@neratec.com> | 2012-10-31 07:21:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-14 14:55:32 -0500 |
commit | 259bcf87fb51fb80185cf54fac7f00da56a80ac4 (patch) | |
tree | f41b3d7d9359cc59afd180fc329c1e28b9eb7bef /drivers/net | |
parent | 6a4b09f807afab788b58b529c4a9d6dc27cc6933 (diff) |
ath9k: resolve name collision in DFS detector
set_domain() is already defined in /arch/arm/asm/domain.h
Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/dfs_pattern_detector.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c b/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c index ea2a6cf7ef2..f66da35d57a 100644 --- a/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c +++ b/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c | |||
@@ -274,7 +274,7 @@ static bool dpd_set_domain(struct dfs_pattern_detector *dpd, | |||
274 | 274 | ||
275 | static struct dfs_pattern_detector default_dpd = { | 275 | static struct dfs_pattern_detector default_dpd = { |
276 | .exit = dpd_exit, | 276 | .exit = dpd_exit, |
277 | .set_domain = dpd_set_domain, | 277 | .set_dfs_domain = dpd_set_domain, |
278 | .add_pulse = dpd_add_pulse, | 278 | .add_pulse = dpd_add_pulse, |
279 | .region = NL80211_DFS_UNSET, | 279 | .region = NL80211_DFS_UNSET, |
280 | }; | 280 | }; |
@@ -291,7 +291,7 @@ dfs_pattern_detector_init(enum nl80211_dfs_regions region) | |||
291 | *dpd = default_dpd; | 291 | *dpd = default_dpd; |
292 | INIT_LIST_HEAD(&dpd->channel_detectors); | 292 | INIT_LIST_HEAD(&dpd->channel_detectors); |
293 | 293 | ||
294 | if (dpd->set_domain(dpd, region)) | 294 | if (dpd->set_dfs_domain(dpd, region)) |
295 | return dpd; | 295 | return dpd; |
296 | 296 | ||
297 | pr_err("Could not set DFS domain to %d. ", region); | 297 | pr_err("Could not set DFS domain to %d. ", region); |
diff --git a/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.h b/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.h index fd0328a3099..cda52f39f28 100644 --- a/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.h +++ b/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.h | |||
@@ -62,7 +62,7 @@ struct radar_detector_specs { | |||
62 | /** | 62 | /** |
63 | * struct dfs_pattern_detector - DFS pattern detector | 63 | * struct dfs_pattern_detector - DFS pattern detector |
64 | * @exit(): destructor | 64 | * @exit(): destructor |
65 | * @set_domain(): set DFS domain, resets detector lines upon domain changes | 65 | * @set_dfs_domain(): set DFS domain, resets detector lines upon domain changes |
66 | * @add_pulse(): add radar pulse to detector, returns true on detection | 66 | * @add_pulse(): add radar pulse to detector, returns true on detection |
67 | * @region: active DFS region, NL80211_DFS_UNSET until set | 67 | * @region: active DFS region, NL80211_DFS_UNSET until set |
68 | * @num_radar_types: number of different radar types | 68 | * @num_radar_types: number of different radar types |
@@ -72,7 +72,7 @@ struct radar_detector_specs { | |||
72 | */ | 72 | */ |
73 | struct dfs_pattern_detector { | 73 | struct dfs_pattern_detector { |
74 | void (*exit)(struct dfs_pattern_detector *dpd); | 74 | void (*exit)(struct dfs_pattern_detector *dpd); |
75 | bool (*set_domain)(struct dfs_pattern_detector *dpd, | 75 | bool (*set_dfs_domain)(struct dfs_pattern_detector *dpd, |
76 | enum nl80211_dfs_regions region); | 76 | enum nl80211_dfs_regions region); |
77 | bool (*add_pulse)(struct dfs_pattern_detector *dpd, | 77 | bool (*add_pulse)(struct dfs_pattern_detector *dpd, |
78 | struct pulse_event *pe); | 78 | struct pulse_event *pe); |