Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 2008 08:55:46 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184708 - head/sys/dev/an
Message-ID:  <200811060855.mA68tklS050030@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



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