aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZefir Kurtisi <zefir.kurtisi@neratec.com>2014-05-21 06:40:35 -0400
committerJohn W. Linville <linville@tuxdriver.com>2014-05-22 14:04:37 -0400
commitb7a5970144421c7eed60a46a6d1fdca931462abd (patch)
treecdf572184a88081572824617492adb5cb0f6a776
parent7e8c04995e48b63fd51ad9e4a9a52f77a012a0cd (diff)
ath9k: fix build error with disabled debug
DFS pulse interval printing is only available when CONFIG_ATH9K_DEBUGFS is set. Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/dfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/dfs.c b/drivers/net/wireless/ath/ath9k/dfs.c
index 5049bec5c676..e0c740dcfea8 100644
--- a/drivers/net/wireless/ath/ath9k/dfs.c
+++ b/drivers/net/wireless/ath/ath9k/dfs.c
@@ -178,12 +178,14 @@ void ath9k_dfs_process_phyerr(struct ath_softc *sc, void *data,
178 pe.ts = mactime; 178 pe.ts = mactime;
179 if (ath9k_postprocess_radar_event(sc, &ard, &pe)) { 179 if (ath9k_postprocess_radar_event(sc, &ard, &pe)) {
180 struct dfs_pattern_detector *pd = sc->dfs_detector; 180 struct dfs_pattern_detector *pd = sc->dfs_detector;
181#ifdef CONFIG_ATH9K_DEBUGFS
181 ath_dbg(common, DFS, 182 ath_dbg(common, DFS,
182 "ath9k_dfs_process_phyerr: channel=%d, ts=%llu, " 183 "ath9k_dfs_process_phyerr: channel=%d, ts=%llu, "
183 "width=%d, rssi=%d, delta_ts=%llu\n", 184 "width=%d, rssi=%d, delta_ts=%llu\n",
184 pe.freq, pe.ts, pe.width, pe.rssi, 185 pe.freq, pe.ts, pe.width, pe.rssi,
185 pe.ts - sc->debug.stats.dfs_stats.last_ts); 186 pe.ts - sc->debug.stats.dfs_stats.last_ts);
186 sc->debug.stats.dfs_stats.last_ts = pe.ts; 187 sc->debug.stats.dfs_stats.last_ts = pe.ts;
188#endif
187 DFS_STAT_INC(sc, pulses_processed); 189 DFS_STAT_INC(sc, pulses_processed);
188 if (pd != NULL && pd->add_pulse(pd, &pe)) { 190 if (pd != NULL && pd->add_pulse(pd, &pe)) {
189 DFS_STAT_INC(sc, radar_detected); 191 DFS_STAT_INC(sc, radar_detected);