struct ieee80211_node *ni; int hash; ieee80211_node_critsec_decl(s);  hash = IEEE80211_NODE_HASH(macaddr); ieee80211_node_critsec_begin(ic, s); LIST_FOREACH(ni, &ic->ic_hash[hash], ni_hash) { if (IEEE80211_ADDR_EQ(ni->ni_macaddr, macaddr) && ni->ni_chan == chan) { ieee80211_node_incref(ni); break; } } ieee80211_node_critsec_end(ic, s); return ni;
char ssid[2] = { 0, 0 }; return ieee80211_find_node_for_beacon(ic, macaddr, chan, ssid);
ieee80211_lookup_node(struct ieee80211com *ic,	u_int8_t *macaddr, struct ieee80211_channel *chan){	struct ieee80211_node *ni;	int hash;	ieee80211_node_critsec_decl(s);	hash = IEEE80211_NODE_HASH(macaddr);	ieee80211_node_critsec_begin(ic, s);	LIST_FOREACH(ni, &ic->ic_hash[hash], ni_hash) {		if (IEEE80211_ADDR_EQ(ni->ni_macaddr, macaddr) &&		    ni->ni_chan == chan) {			ieee80211_node_incref(ni);/* mark referenced */			break;		}	}	ieee80211_node_critsec_end(ic, s);	return ni;}