summaryrefslogtreecommitdiffstats
path: root/sys/dev/an
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-11-06 08:55:46 +0000
committerbz <bz@FreeBSD.org>2008-11-06 08:55:46 +0000
commite680478613663113e71f8ff0ceb4383e6d57d90d (patch)
treeb01ad0826e577b4f4452dbcce5ce4b04f9d9c238 /sys/dev/an
parentf1225346f40c168eabf5db8887c0540a1e12f105 (diff)
downloadFreeBSD-src-e680478613663113e71f8ff0ceb4383e6d57d90d.zip
FreeBSD-src-e680478613663113e71f8ff0ceb4383e6d57d90d.tar.gz
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
Diffstat (limited to 'sys/dev/an')
-rw-r--r--sys/dev/an/if_an.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/an/if_an.c b/sys/dev/an/if_an.c
index 825c9af..ae9fc09 100644
--- a/sys/dev/an/if_an.c
+++ b/sys/dev/an/if_an.c
@@ -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;
OpenPOWER on IntegriCloud