svn commit: r184708 - head/sys/dev/an
Bjoern A. Zeeb
bz at FreeBSD.org
Thu Nov 6 00:55:47 PST 2008
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;
More information about the svn-src-head
mailing list