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

Function ieee80211_ht_node_init

freebsd/net80211/ieee80211_ht.c:1307–1341  ·  view source on GitHub ↗

* Setup HT-specific state in a node. Called only * when HT use is negotiated so we don't do extra * work for temporary and/or legacy sta's. */

Source from the content-addressed store, hash-verified

1305 * work for temporary and/or legacy sta's.
1306 */
1307void
1308ieee80211_ht_node_init(struct ieee80211_node *ni)
1309{
1310 struct ieee80211_tx_ampdu *tap;
1311 int tid;
1312
1313 IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_11N,
1314 ni,
1315 "%s: called (%p)",
1316 __func__,
1317 ni);
1318
1319 if (ni->ni_flags & IEEE80211_NODE_HT) {
1320 /*
1321 * Clean AMPDU state on re-associate. This handles the case
1322 * where a station leaves w/o notifying us and then returns
1323 * before node is reaped for inactivity.
1324 */
1325 IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_11N,
1326 ni,
1327 "%s: calling cleanup (%p)",
1328 __func__, ni);
1329 ieee80211_ht_node_cleanup(ni);
1330 }
1331 for (tid = 0; tid < WME_NUM_TID; tid++) {
1332 tap = &ni->ni_tx_ampdu[tid];
1333 tap->txa_tid = tid;
1334 tap->txa_ni = ni;
1335 ieee80211_txampdu_init_pps(tap);
1336 /* NB: further initialization deferred */
1337 ieee80211_ampdu_rx_init_rap(ni, &ni->ni_rx_ampdu[tid]);
1338 }
1339 ni->ni_flags |= IEEE80211_NODE_HT | IEEE80211_NODE_AMPDU |
1340 IEEE80211_NODE_AMSDU;
1341}
1342
1343/*
1344 * Cleanup HT-specific state in a node. Called only

Callers 5

sta_recv_mgmtFunction · 0.85
ieee80211_node.cFile · 0.85
ieee80211_sta_joinFunction · 0.85
ieee80211_init_neighborFunction · 0.85
hostap_recv_mgmtFunction · 0.85

Calls 3

Tested by

no test coverage detected