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
This commit is contained in:
bz 2008-11-06 08:55:46 +00:00
parent f1225346f4
commit e680478613

View File

@ -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;