Lines Matching refs:nt

326 	ieee80211_node_table_t *nt;
339 nt = &ic->ic_sta;
340 IEEE80211_NODE_LOCK(nt);
341 nt->nt_name = "neighbor";
342 nt->nt_inact_init = im->im_inact_run;
343 IEEE80211_NODE_UNLOCK(nt);
551 ieee80211_node_table_t *nt = &ic->ic_scan;
565 in = list_head(&nt->nt_node);
598 IEEE80211_NODE_LOCK(nt);
608 in = list_next(&nt->nt_node, tmpin);
609 ieee80211_node_reclaim(nt, tmpin);
617 in = list_next(&nt->nt_node, in);
626 in = list_next(&nt->nt_node, in);
630 IEEE80211_NODE_UNLOCK(nt);
698 ieee80211_node_table_t *nt;
709 nt = &ic->ic_sta;
710 IEEE80211_NODE_LOCK(nt);
711 nt->nt_name = "neighbor";
712 nt->nt_inact_init = im->im_inact_run;
713 IEEE80211_NODE_UNLOCK(nt);
839 ieee80211_setup_node(ieee80211com_t *ic, ieee80211_node_table_t *nt,
847 (nt != NULL) ? nt->nt_name : "NULL");
860 if (nt != NULL) {
861 IEEE80211_NODE_LOCK(nt);
862 list_insert_tail(&nt->nt_node, in);
863 list_insert_tail(&nt->nt_hash[hash], in);
864 in->in_table = nt;
865 in->in_inact_reload = nt->nt_inact_init;
866 IEEE80211_NODE_UNLOCK(nt);
877 ieee80211_alloc_node(ieee80211com_t *ic, ieee80211_node_table_t *nt,
884 ieee80211_setup_node(ic, nt, in, macaddr);
927 ieee80211_dup_bss(ieee80211_node_table_t *nt, const uint8_t *macaddr)
929 ieee80211com_t *ic = nt->nt_ic;
932 in = ieee80211_alloc_node(ic, nt, macaddr);
953 ieee80211_find_node_locked(ieee80211_node_table_t *nt, const uint8_t *macaddr)
958 ASSERT(IEEE80211_NODE_IS_LOCKED(nt));
961 in = list_head(&nt->nt_hash[hash]);
965 in = list_next(&nt->nt_hash[hash], in);
976 ieee80211_find_node(ieee80211_node_table_t *nt, const uint8_t *macaddr)
980 IEEE80211_NODE_LOCK(nt);
981 in = ieee80211_find_node_locked(nt, macaddr);
982 IEEE80211_NODE_UNLOCK(nt);
990 ieee80211_find_node_with_ssid(ieee80211_node_table_t *nt,
996 IEEE80211_NODE_LOCK(nt);
999 in = list_head(&nt->nt_hash[hash]);
1005 in = list_next(&nt->nt_hash[hash], in);
1010 IEEE80211_NODE_UNLOCK(nt);
1022 ieee80211_fakeup_adhoc_node(ieee80211_node_table_t *nt, const uint8_t *macaddr)
1024 ieee80211com_t *ic = nt->nt_ic;
1029 in = ieee80211_dup_bss(nt, macaddr);
1075 ieee80211_node_table_t *nt = &ic->ic_scan;
1079 in = ieee80211_find_node(nt, wh->i_addr3);
1084 in = ieee80211_alloc_node(ic, nt, wh->i_addr3);
1226 ieee80211_node_table_t *nt;
1232 nt = &ic->ic_scan;
1234 nt = &ic->ic_sta;
1237 IEEE80211_NODE_LOCK(nt);
1240 in = ieee80211_find_node_locked(nt, wh->i_addr1);
1242 in = ieee80211_find_node_locked(nt, wh->i_addr2);
1243 IEEE80211_NODE_UNLOCK(nt);
1262 ieee80211_node_table_t *nt = &ic->ic_sta;
1271 IEEE80211_NODE_LOCK(nt);
1275 in = ieee80211_find_node_locked(nt, daddr);
1276 IEEE80211_NODE_UNLOCK(nt);
1288 in = ieee80211_fakeup_adhoc_node(nt, daddr);
1310 ieee80211_node_table_t *nt = in->in_table;
1313 if (nt != NULL) {
1315 list_remove(&nt->nt_hash[hash], in);
1316 list_remove(&nt->nt_node, in);
1329 ieee80211_node_table_t *nt = in->in_table;
1331 if (nt != NULL)
1332 IEEE80211_NODE_LOCK(nt);
1335 if (nt != NULL)
1336 IEEE80211_NODE_UNLOCK(nt);
1345 ieee80211_node_reclaim(ieee80211_node_table_t *nt, ieee80211_node_t *in)
1349 IEEE80211_NODE_LOCK_ASSERT(nt);
1352 in, ieee80211_macaddr_sprintf(in->in_macaddr), nt->nt_name,
1364 list_remove(&nt->nt_hash[hash], in);
1365 list_remove(&nt->nt_node, in);
1377 ieee80211_free_allnodes_locked(ieee80211_node_table_t *nt)
1382 "free all nodes in %s table\n", nt->nt_name);
1384 in = list_head(&nt->nt_node);
1386 ieee80211_node_reclaim(nt, in);
1387 in = list_head(&nt->nt_node);
1389 ieee80211_reset_erp(nt->nt_ic);
1397 ieee80211_free_allnodes(ieee80211_node_table_t *nt)
1399 IEEE80211_NODE_LOCK(nt);
1400 ieee80211_free_allnodes_locked(nt);
1401 IEEE80211_NODE_UNLOCK(nt);
1410 ieee80211_timeout_scan_candidates(ieee80211_node_table_t *nt)
1412 ieee80211com_t *ic = nt->nt_ic;
1415 IEEE80211_NODE_LOCK(nt);
1418 nt->nt_inact_timer = IEEE80211_INACT_WAIT;
1419 IEEE80211_NODE_UNLOCK(nt);
1433 ieee80211_timeout_stations(ieee80211_node_table_t *nt)
1435 ieee80211com_t *ic = nt->nt_ic;
1444 IEEE80211_SCAN_LOCK(nt);
1445 gen = ++nt->nt_scangen;
1447 IEEE80211_NODE_LOCK(nt);
1448 for (in = list_head(&nt->nt_node); in != NULL;
1449 in = list_next(&nt->nt_node, in)) {
1473 IEEE80211_NODE_UNLOCK(nt);
1499 IEEE80211_NODE_UNLOCK(nt);
1511 IEEE80211_NODE_UNLOCK(nt);
1513 IEEE80211_SCAN_UNLOCK(nt);
1515 nt->nt_inact_timer = IEEE80211_INACT_WAIT;
1524 ieee80211_iterate_nodes(ieee80211_node_table_t *nt, ieee80211_iter_func *f,
1529 IEEE80211_NODE_LOCK(nt);
1530 in = list_head(&nt->nt_node);
1533 in = list_next(&nt->nt_node, in);
1537 IEEE80211_NODE_UNLOCK(nt);
1540 IEEE80211_NODE_LOCK(nt);
1541 in = list_next(&nt->nt_node, in);
1543 IEEE80211_NODE_UNLOCK(nt);
1553 ieee80211_node_table_t *nt = in->in_table;
1563 if (nt != NULL) {
1564 IEEE80211_NODE_LOCK(nt);
1565 ieee80211_node_reclaim(nt, in);
1566 IEEE80211_NODE_UNLOCK(nt);
1578 ieee80211_node_table_init(ieee80211com_t *ic, ieee80211_node_table_t *nt,
1587 nt->nt_ic = ic;
1588 nt->nt_name = name;
1589 nt->nt_inact_timer = 0;
1590 nt->nt_inact_init = inact;
1591 nt->nt_timeout = timeout;
1592 nt->nt_keyixmax = keyixmax;
1593 nt->nt_scangen = 1;
1594 mutex_init(&nt->nt_scanlock, NULL, MUTEX_DRIVER, NULL);
1595 mutex_init(&nt->nt_nodelock, NULL, MUTEX_DRIVER, NULL);
1597 list_create(&nt->nt_node, sizeof (ieee80211_node_t),
1600 list_create(&nt->nt_hash[i], sizeof (ieee80211_node_t),
1611 ieee80211_node_table_reset(ieee80211_node_table_t *nt)
1614 "%s table\n", nt->nt_name);
1616 IEEE80211_NODE_LOCK(nt);
1617 nt->nt_inact_timer = 0;
1618 ieee80211_free_allnodes_locked(nt);
1619 IEEE80211_NODE_UNLOCK(nt);
1627 ieee80211_node_table_cleanup(ieee80211_node_table_t *nt)
1630 "%s table\n", nt->nt_name);
1632 IEEE80211_NODE_LOCK(nt);
1633 ieee80211_free_allnodes_locked(nt);
1634 IEEE80211_NODE_UNLOCK(nt);
1635 mutex_destroy(&nt->nt_nodelock);
1636 mutex_destroy(&nt->nt_scanlock);