From owner-svn-src-all@FreeBSD.ORG Sat Jan 28 22:24:59 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97C43106566B; Sat, 28 Jan 2012 22:24:59 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 82F148FC0C; Sat, 28 Jan 2012 22:24:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q0SMOxcZ001433; Sat, 28 Jan 2012 22:24:59 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q0SMOx4d001431; Sat, 28 Jan 2012 22:24:59 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201201282224.q0SMOx4d001431@svn.freebsd.org> From: Adrian Chadd Date: Sat, 28 Jan 2012 22:24:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r230663 - head/sys/dev/ath/ath_dfs/null X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jan 2012 22:24:59 -0000 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); } /*