From bfa5e927516ea50a4bb5e44e130d193da6a4fe6e Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sat, 28 Jan 2012 22:24:59 +0000 Subject: [PATCH] Oops, commit a missing implementation change. Whilst I'm here, add a comment about what would happen in this function if hypothetically you had a radar pattern matching detector written. --- sys/dev/ath/ath_dfs/null/dfs_null.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sys/dev/ath/ath_dfs/null/dfs_null.c b/sys/dev/ath/ath_dfs/null/dfs_null.c index 75574b4e4ac..f10b0109b2a 100644 --- a/sys/dev/ath/ath_dfs/null/dfs_null.c +++ b/sys/dev/ath/ath_dfs/null/dfs_null.c @@ -95,12 +95,19 @@ ath_dfs_detach(struct ath_softc *sc) /* * Enable radar check */ -void +int ath_dfs_radar_enable(struct ath_softc *sc, struct ieee80211_channel *chan) { /* Check if the current channel is radar-enabled */ if (! IEEE80211_IS_CHAN_DFS(chan)) - return; + return (0); + + /* + * Enabling the radar parameters and setting sc->sc_dodfs = 1 + * would occur here. + */ + + return (1); } /*