* 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. */
| 1305 | * work for temporary and/or legacy sta's. |
| 1306 | */ |
| 1307 | void |
| 1308 | ieee80211_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 |
no test coverage detected