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);
 }
 
 /*
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to