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

Function node_clear_keyixmap

freebsd/net80211/ieee80211_node.c:2103–2120  ·  view source on GitHub ↗

* Clear any entry in the unicast key mapping table. */

Source from the content-addressed store, hash-verified

2101 * Clear any entry in the unicast key mapping table.
2102 */
2103static int
2104node_clear_keyixmap(struct ieee80211_node_table *nt, struct ieee80211_node *ni)
2105{
2106 ieee80211_keyix keyix;
2107
2108 keyix = ni->ni_ucastkey.wk_rxkeyix;
2109 if (nt->nt_keyixmap != NULL && keyix < nt->nt_keyixmax &&
2110 nt->nt_keyixmap[keyix] == ni) {
2111 IEEE80211_DPRINTF(ni->ni_vap, IEEE80211_MSG_NODE,
2112 "%s: %p<%s> clear key map entry %u\n",
2113 __func__, ni, ether_sprintf(ni->ni_macaddr), keyix);
2114 nt->nt_keyixmap[keyix] = NULL;
2115 ieee80211_node_decref(ni);
2116 return 1;
2117 }
2118
2119 return 0;
2120}
2121
2122void
2123#ifdef IEEE80211_DEBUG_REFCNT

Callers 2

ieee80211_node.cFile · 0.85
node_reclaimFunction · 0.85

Calls 1

ether_sprintfFunction · 0.85

Tested by

no test coverage detected