MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ieee80211_node_table_cleanup

Function ieee80211_node_table_cleanup

freebsd/net80211/ieee80211_node.c:2307–2324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2305}
2306
2307static void
2308ieee80211_node_table_cleanup(struct ieee80211_node_table *nt)
2309{
2310 ieee80211_node_table_reset(nt, NULL);
2311 if (nt->nt_keyixmap != NULL) {
2312#ifdef DIAGNOSTIC
2313 /* XXX verify all entries are NULL */
2314 int i;
2315 for (i = 0; i < nt->nt_keyixmax; i++)
2316 if (nt->nt_keyixmap[i] != NULL)
2317 printf("%s: %s[%u] still active\n", __func__,
2318 nt->nt_name, i);
2319#endif
2320 IEEE80211_FREE(nt->nt_keyixmap, M_80211_NODE);
2321 nt->nt_keyixmap = NULL;
2322 }
2323 IEEE80211_NODE_LOCK_DESTROY(nt);
2324}
2325
2326static void
2327timeout_stations(void *arg __unused, struct ieee80211_node *ni)

Callers 1

ieee80211_node_detachFunction · 0.85

Calls 2

printfFunction · 0.50

Tested by

no test coverage detected