From owner-svn-src-all@FreeBSD.ORG Thu Nov 6 08:55:47 2008 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 432741065673; Thu, 6 Nov 2008 08:55:47 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 325978FC1A; Thu, 6 Nov 2008 08:55:47 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mA68tk96050031; Thu, 6 Nov 2008 08:55:46 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mA68tklS050030; Thu, 6 Nov 2008 08:55:46 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <200811060855.mA68tklS050030@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Thu, 6 Nov 2008 08:55:46 +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: r184708 - head/sys/dev/an 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: Thu, 06 Nov 2008 08:55:47 -0000 Author: bz Date: Thu Nov 6 08:55:46 2008 New Revision: 184708 URL: http://svn.freebsd.org/changeset/base/184708 Log: In case INET is not defined, then ANCACHE is not defined and the sc does not have 'an_have_rssimap' variable. Add an ANCACHE check to poperly hide the case and make an(4) compile without INET. MFC after: 2 months Modified: head/sys/dev/an/if_an.c Modified: head/sys/dev/an/if_an.c ============================================================================== --- head/sys/dev/an/if_an.c Thu Nov 6 06:14:25 2008 (r184707) +++ head/sys/dev/an/if_an.c Thu Nov 6 08:55:46 2008 (r184708) @@ -2686,8 +2686,10 @@ an_init(void *xsc) } } +#ifdef ANCACHE if (sc->an_have_rssimap) sc->an_config.an_rxmode |= AN_RXMODE_NORMALIZED_RSSI; +#endif /* Set the ssid list */ sc->an_ssidlist.an_type = AN_RID_SSIDLIST;