static void ieee80211_node_copy(struct ieee80211com *ic, struct ieee80211_node *dst, const struct ieee80211_node *src) { ieee80211_node_cleanup(ic, dst); *dst = *src; dst->ni_challenge = NULL; }
void ieee80211_node_copy(struct ieee80211com *ic, struct ieee80211_node *dst, const struct ieee80211_node *src) { ieee80211_node_cleanup(ic, dst); *dst = *src; dst->ni_rsnie = NULL; if (src->ni_rsnie != NULL) ieee80211_save_ie(src->ni_rsnie, &dst->ni_rsnie); }
void ieee80211_free_allnodes(struct ieee80211com *ic) { struct ieee80211_node *ni; IEEE80211_DPRINTF(("%s\n", __func__)); IEEE80211_NODE_LOCK_BH(ic); while ((ni = RB_MIN(ieee80211_tree, &ic->ic_tree)) != NULL) ieee80211_free_node(ic, ni); IEEE80211_NODE_UNLOCK_BH(ic); if (ic->ic_bss != NULL) ieee80211_node_cleanup(ic, ic->ic_bss); /* for station mode */ }
void ieee80211_free_allnodes(struct ieee80211com *ic) { struct ieee80211_node *ni; int s; DPRINTF(("freeing all nodes\n")); s = splnet(); while ((ni = RB_MIN(ieee80211_tree, &ic->ic_tree)) != NULL) ieee80211_free_node(ic, ni); splx(s); if (ic->ic_bss != NULL) ieee80211_node_cleanup(ic, ic->ic_bss); /* for station mode */ }
void ieee80211_node_free(struct ieee80211com *ic, struct ieee80211_node *ni) { ieee80211_node_cleanup(ic, ni); free(ni, M_DEVBUF, 0); }
void ieee80211_node_free(struct ieee80211com *ic, struct ieee80211_node *ni) { ieee80211_node_cleanup(ic, ni); free(ni, M_80211_NODE); }
void Voodoo80211Device:: ieee80211_node_free(struct ieee80211com *ic, struct ieee80211_node *ni) { ieee80211_node_cleanup(ic, ni); free(ni); }