ic->ic_max_nnodes = ieee80211_cache_size;  if (ic->ic_max_aid == 0) ic->ic_max_aid = IEEE80211_AID_DEF; else if (ic->ic_max_aid > IEEE80211_AID_MAX) ic->ic_max_aid = IEEE80211_AID_MAX; size = howmany(ic->ic_max_aid, 32) * sizeof(u_int32_t); MALLOC(ic->ic_aid_bitmap, u_int32_t *, size, M_DEVBUF, M_NOWAIT); if (ic->ic_aid_bitmap == NULL) {  printf("%s: no memory for AID bitmap!\n", __func__); ic->ic_max_aid = 0; } memset(ic->ic_aid_bitmap, 0, size);
ieee80211_node_attach(struct ifnet *ifp){	struct ieee80211com *ic = (void *)ifp;#ifdef __FreeBSD__	/* XXX need unit */	IEEE80211_NODE_LOCK_INIT(ic, ifp->if_xname);#endif	TAILQ_INIT(&ic->ic_node);	ic->ic_node_alloc = ieee80211_node_alloc;	ic->ic_node_free = ieee80211_node_free;	ic->ic_node_copy = ieee80211_node_copy;	ic->ic_node_getrssi = ieee80211_node_getrssi;	ic->ic_scangen = 1;}