Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jan 2012 22:24:59 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230663 - head/sys/dev/ath/ath_dfs/null
Message-ID:  <201201282224.q0SMOx4d001431@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sat Jan 28 22:24:59 2012
New Revision: 230663
URL: http://svn.freebsd.org/changeset/base/230663

Log:
  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.

Modified:
  head/sys/dev/ath/ath_dfs/null/dfs_null.c

Modified: head/sys/dev/ath/ath_dfs/null/dfs_null.c
==============================================================================
--- head/sys/dev/ath/ath_dfs/null/dfs_null.c	Sat Jan 28 22:22:05 2012	(r230662)
+++ head/sys/dev/ath/ath_dfs/null/dfs_null.c	Sat Jan 28 22:24:59 2012	(r230663)
@@ -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);
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201282224.q0SMOx4d001431>