summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-01-28 22:24:59 +0000
committeradrian <adrian@FreeBSD.org>2012-01-28 22:24:59 +0000
commit921264fd36b524146d6421b307894396ad4a8c7a (patch)
tree2eccdc8cdf17a9ec36fdd85267fd29c7e2bfde40 /sys/dev
parent87d49c606e135a935d106699f6ebbdff1affef36 (diff)
downloadFreeBSD-src-921264fd36b524146d6421b307894396ad4a8c7a.zip
FreeBSD-src-921264fd36b524146d6421b307894396ad4a8c7a.tar.gz
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.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ath/ath_dfs/null/dfs_null.c11
1 files 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 75574b4..f10b010 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);
}
/*
OpenPOWER on IntegriCloud