Lines Matching full:ni

122     struct ieee80211_node *ni)  in ieee80211_vap_pkt_send_dest()  argument
135 if ((ni->ni_flags & IEEE80211_NODE_PWR_MGT) && in ieee80211_vap_pkt_send_dest()
143 if (ieee80211_pwrsave(ni, m) != 0) in ieee80211_vap_pkt_send_dest()
145 ieee80211_free_node(ni); in ieee80211_vap_pkt_send_dest()
154 if (ieee80211_classify(ni, m)) { in ieee80211_vap_pkt_send_dest()
156 ni->ni_macaddr, NULL, in ieee80211_vap_pkt_send_dest()
161 ieee80211_free_node(ni); in ieee80211_vap_pkt_send_dest()
173 m->m_pkthdr.rcvif = (void *)ni; in ieee80211_vap_pkt_send_dest()
189 do_ampdu = ((ni->ni_flags & IEEE80211_NODE_AMPDU_TX) && in ieee80211_vap_pkt_send_dest()
192 do_amsdu = ((ni->ni_flags & IEEE80211_NODE_AMSDU_TX) && in ieee80211_vap_pkt_send_dest()
195 ((ni->ni_flags & IEEE80211_NODE_HT) == 0) && in ieee80211_vap_pkt_send_dest()
196 ((ni->ni_flags & IEEE80211_NODE_VHT) == 0) && in ieee80211_vap_pkt_send_dest()
197 (IEEE80211_ATH_CAP(vap, ni, IEEE80211_NODE_FF)); in ieee80211_vap_pkt_send_dest()
220 struct ieee80211_tx_ampdu *tap = &ni->ni_tx_ampdu[tid]; in ieee80211_vap_pkt_send_dest()
231 ic->ic_ampdu_enable(ni, tap)) { in ieee80211_vap_pkt_send_dest()
235 ieee80211_ampdu_request(ni, tap); in ieee80211_vap_pkt_send_dest()
275 ieee80211_amsdu_tx_ok(ni)) { in ieee80211_vap_pkt_send_dest()
276 m = ieee80211_amsdu_check(ni, m); in ieee80211_vap_pkt_send_dest()
278 /* NB: any ni ref held on stageq */ in ieee80211_vap_pkt_send_dest()
285 m = ieee80211_ff_check(ni, m); in ieee80211_vap_pkt_send_dest()
287 /* NB: any ni ref held on stageq */ in ieee80211_vap_pkt_send_dest()
313 m = ieee80211_encap(vap, ni, m); in ieee80211_vap_pkt_send_dest()
317 ieee80211_free_node(ni); in ieee80211_vap_pkt_send_dest()
352 struct ieee80211_node *ni; in ieee80211_start_pkt() local
367 ni = NULL; in ieee80211_start_pkt()
404 ni = ieee80211_find_txnode(vap, eh->ether_dhost); in ieee80211_start_pkt()
405 if (ni == NULL) { in ieee80211_start_pkt()
412 if (ni->ni_associd == 0 && in ieee80211_start_pkt()
413 (ni->ni_flags & IEEE80211_NODE_ASSOCID)) { in ieee80211_start_pkt()
421 ieee80211_free_node(ni); in ieee80211_start_pkt()
449 ni = ieee80211_mesh_discover(vap, eh->ether_dhost, m); in ieee80211_start_pkt()
450 if (ni == NULL) { in ieee80211_start_pkt()
472 if (ieee80211_pwrsave(ni, m) != 0) in ieee80211_start_pkt()
474 ieee80211_free_node(ni); in ieee80211_start_pkt()
479 if (ieee80211_vap_pkt_send_dest(vap, m, ni) != 0) in ieee80211_start_pkt()
560 ieee80211_raw_output(struct ieee80211vap *vap, struct ieee80211_node *ni, in ieee80211_raw_output() argument
572 m->m_pkthdr.rcvif = (void *)ni; in ieee80211_raw_output()
587 error = ic->ic_raw_xmit(ni, m, params); in ieee80211_raw_output()
590 ieee80211_free_node(ni); in ieee80211_raw_output()
648 ieee80211_validate_rate(struct ieee80211_node *ni, uint8_t rate) in ieee80211_validate_rate() argument
650 struct ieee80211com *ic = ni->ni_ic; in ieee80211_validate_rate()
704 ieee80211_sanitize_rates(struct ieee80211_node *ni, struct mbuf *m, in ieee80211_sanitize_rates() argument
714 error = ieee80211_validate_rate(ni, params->ibp_rate0); in ieee80211_sanitize_rates()
724 (error = ieee80211_validate_rate(ni, params->ibp_rate1)) != 0) in ieee80211_sanitize_rates()
728 (error = ieee80211_validate_rate(ni, params->ibp_rate2)) != 0) in ieee80211_sanitize_rates()
732 (error = ieee80211_validate_rate(ni, params->ibp_rate3)) != 0) in ieee80211_sanitize_rates()
749 struct ieee80211_node *ni = NULL; in ieee80211_output() local
813 ni = ieee80211_find_txnode(vap, wh->i_addr1); in ieee80211_output()
817 ni = ieee80211_find_txnode(vap, wh->i_addr3); in ieee80211_output()
822 if (ni == NULL) { in ieee80211_output()
829 ni = ieee80211_ref_node(vap->iv_bss); in ieee80211_output()
843 if (ieee80211_classify(ni, m)) in ieee80211_output()
847 IEEE80211_NODE_STAT_ADD(ni, tx_bytes, in ieee80211_output()
852 error = ieee80211_sanitize_rates(ni, m, params); in ieee80211_output()
856 IEEE80211_NODE_STAT(ni, tx_data); in ieee80211_output()
858 IEEE80211_NODE_STAT(ni, tx_mcast); in ieee80211_output()
861 IEEE80211_NODE_STAT(ni, tx_ucast); in ieee80211_output()
864 ret = ieee80211_raw_output(vap, ni, m, params); in ieee80211_output()
870 if (ni != NULL) in ieee80211_output()
871 ieee80211_free_node(ni); in ieee80211_output()
884 struct ieee80211_node *ni, in ieee80211_send_setup() argument
892 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_send_setup()
897 IEEE80211_TX_LOCK_ASSERT(ni->ni_ic); in ieee80211_send_setup()
972 tap = &ni->ni_tx_ampdu[tid]; in ieee80211_send_setup()
986 seqno = ni->ni_txseqs[IEEE80211_NONQOS_TID]++; in ieee80211_send_setup()
988 seqno = ni->ni_txseqs[tid]++; in ieee80211_send_setup()
1012 ieee80211_mgmt_output(struct ieee80211_node *ni, struct mbuf *m, int type, in ieee80211_mgmt_output() argument
1015 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_mgmt_output()
1016 struct ieee80211com *ic = ni->ni_ic; in ieee80211_mgmt_output()
1020 KASSERT(ni != NULL, ("null node")); in ieee80211_mgmt_output()
1024 ni, "block %s frame in CAC state", in ieee80211_mgmt_output()
1027 ieee80211_free_node(ni); in ieee80211_mgmt_output()
1034 ieee80211_free_node(ni); in ieee80211_mgmt_output()
1041 ieee80211_send_setup(ni, m, in ieee80211_mgmt_output()
1043 vap->iv_myaddr, ni->ni_macaddr, ni->ni_bssid); in ieee80211_mgmt_output()
1064 IEEE80211_NODE_STAT(ni, tx_mgmt); in ieee80211_mgmt_output()
1066 ret = ieee80211_raw_output(vap, ni, m, params); in ieee80211_mgmt_output()
1072 ieee80211_nulldata_transmitted(struct ieee80211_node *ni, void *arg, in ieee80211_nulldata_transmitted() argument
1075 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_nulldata_transmitted()
1093 ieee80211_send_nulldata(struct ieee80211_node *ni) in ieee80211_send_nulldata() argument
1095 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_send_nulldata()
1096 struct ieee80211com *ic = ni->ni_ic; in ieee80211_send_nulldata()
1105 ni, "block %s frame in CAC state", "null data"); in ieee80211_send_nulldata()
1106 ieee80211_node_decref(ni); in ieee80211_send_nulldata()
1111 if (ni->ni_flags & (IEEE80211_NODE_QOS|IEEE80211_NODE_HT)) in ieee80211_send_nulldata()
1124 ieee80211_node_decref(ni); in ieee80211_send_nulldata()
1133 ieee80211_free_node(ni); in ieee80211_send_nulldata()
1140 if (ni->ni_flags & IEEE80211_NODE_QOS) { in ieee80211_send_nulldata()
1144 ieee80211_send_setup(ni, m, in ieee80211_send_nulldata()
1146 tid, vap->iv_myaddr, ni->ni_macaddr, ni->ni_bssid); in ieee80211_send_nulldata()
1157 ieee80211_send_setup(ni, m, in ieee80211_send_nulldata()
1160 vap->iv_myaddr, ni->ni_macaddr, ni->ni_bssid); in ieee80211_send_nulldata()
1164 if ((ni->ni_flags & IEEE80211_NODE_PWR_MGT) && in ieee80211_send_nulldata()
1169 (ni->ni_flags & IEEE80211_NODE_PWR_MGT)) { in ieee80211_send_nulldata()
1178 IEEE80211_NODE_STAT(ni, tx_data); in ieee80211_send_nulldata()
1180 IEEE80211_NOTE(vap, IEEE80211_MSG_DEBUG | IEEE80211_MSG_DUMPPKTS, ni, in ieee80211_send_nulldata()
1182 ni->ni_flags & IEEE80211_NODE_QOS ? "QoS " : "", in ieee80211_send_nulldata()
1186 ret = ieee80211_raw_output(vap, ni, m, NULL); in ieee80211_send_nulldata()
1198 ieee80211_classify(struct ieee80211_node *ni, struct mbuf *m) in ieee80211_classify() argument
1246 if ((ni->ni_flags & IEEE80211_NODE_QOS) == 0) { in ieee80211_classify()
1256 if (ni->ni_vlan != 0) { in ieee80211_classify()
1258 IEEE80211_NODE_STAT(ni, tx_novlantag); in ieee80211_classify()
1262 EVL_VLANOFTAG(ni->ni_vlan)) { in ieee80211_classify()
1263 IEEE80211_NODE_STAT(ni, tx_vlanmismatch); in ieee80211_classify()
1267 v_wme_ac = TID_TO_WME_AC(EVL_PRIOFTAG(ni->ni_vlan)); in ieee80211_classify()
1324 if (ni->ni_vap->iv_opmode == IEEE80211_M_STA) { in ieee80211_classify()
1331 struct ieee80211com *ic = ni->ni_ic; in ieee80211_classify()
1432 struct ieee80211_node *ni) in ieee80211_crypto_getucastkey() argument
1434 if (IEEE80211_KEY_UNDEFINED(&ni->ni_ucastkey)) { in ieee80211_crypto_getucastkey()
1440 return &ni->ni_ucastkey; in ieee80211_crypto_getucastkey()
1451 struct ieee80211_node *ni) in ieee80211_crypto_getmcastkey() argument
1469 ieee80211_encap(struct ieee80211vap *vap, struct ieee80211_node *ni, in ieee80211_encap() argument
1474 struct ieee80211com *ic = ni->ni_ic; in ieee80211_encap()
1520 key = ieee80211_crypto_getucastkey(vap, ni); in ieee80211_encap()
1536 key = ieee80211_crypto_getucastkey(vap, ni); in ieee80211_encap()
1538 key = ieee80211_crypto_getmcastkey(vap, ni); in ieee80211_encap()
1564 (((is_mcast == 0) && (ni->ni_flags & in ieee80211_encap()
1678 if (ieee80211_amsdu_tx_ok(ni)) { in ieee80211_encap()
1701 IEEE80211_ADDR_COPY(wh->i_addr1, ni->ni_macaddr); in ieee80211_encap()
1708 IEEE80211_ADDR_COPY(wh->i_addr1, ni->ni_bssid); in ieee80211_encap()
1726 IEEE80211_ADDR_COPY(wh->i_addr2, ni->ni_bssid); in ieee80211_encap()
1740 ni->ni_macaddr); in ieee80211_encap()
1844 seqno = ni->ni_txseqs[IEEE80211_NONQOS_TID]++; in ieee80211_encap()
1846 seqno = ni->ni_txseqs[tid]++; in ieee80211_encap()
1873 seqno = ni->ni_txseqs[IEEE80211_NONQOS_TID]++; in ieee80211_encap()
1910 !IEEE80211_KEY_UNDEFINED(&ni->ni_ucastkey)))) { in ieee80211_encap()
1927 IEEE80211_NODE_STAT(ni, tx_data); in ieee80211_encap()
1929 IEEE80211_NODE_STAT(ni, tx_mcast); in ieee80211_encap()
1932 IEEE80211_NODE_STAT(ni, tx_ucast); in ieee80211_encap()
1933 IEEE80211_NODE_STAT_ADD(ni, tx_bytes, datalen); in ieee80211_encap()
2187 struct ieee80211_node *ni) in ieee80211_add_wme_info() argument
2190 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_add_wme_info()
2416 ieee80211_add_qos(uint8_t *frm, const struct ieee80211_node *ni) in ieee80211_add_qos() argument
2418 if (ni->ni_flags & IEEE80211_NODE_QOS) { in ieee80211_add_qos()
2549 ieee80211_send_probereq(struct ieee80211_node *ni, in ieee80211_send_probereq() argument
2555 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_send_probereq()
2556 struct ieee80211com *ic = ni->ni_ic; in ieee80211_send_probereq()
2568 IEEE80211_NOTE(vap, IEEE80211_MSG_OUTPUT, ni, in ieee80211_send_probereq()
2583 ni, ether_sprintf(ni->ni_macaddr), in ieee80211_send_probereq()
2584 ieee80211_node_refcnt(ni)+1); in ieee80211_send_probereq()
2585 ieee80211_ref_node(ni); in ieee80211_send_probereq()
2593 ieee80211_free_node(ni); in ieee80211_send_probereq()
2609 ieee80211_free_node(ni); in ieee80211_send_probereq()
2615 ieee80211_send_setup(ni, m, in ieee80211_send_probereq()
2623 IEEE80211_NODE_STAT(ni, tx_probereq); in ieee80211_send_probereq()
2624 IEEE80211_NODE_STAT(ni, tx_mgmt); in ieee80211_send_probereq()
2643 params.ibp_power = ni->ni_txpower; in ieee80211_send_probereq()
2644 ret = ieee80211_raw_output(vap, ni, m, &params); in ieee80211_send_probereq()
2684 ieee80211_send_mgmt(struct ieee80211_node *ni, int type, int arg) in ieee80211_send_mgmt() argument
2688 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_send_mgmt()
2689 struct ieee80211com *ic = ni->ni_ic; in ieee80211_send_mgmt()
2697 KASSERT(ni != NULL, ("null node")); in ieee80211_send_mgmt()
2707 ni, ether_sprintf(ni->ni_macaddr), in ieee80211_send_mgmt()
2708 ieee80211_node_refcnt(ni)+1); in ieee80211_send_mgmt()
2709 ieee80211_ref_node(ni); in ieee80211_send_mgmt()
2718 ni->ni_challenge != NULL); in ieee80211_send_mgmt()
2750 memcpy(&((uint16_t *)frm)[4], ni->ni_challenge, in ieee80211_send_mgmt()
2755 IEEE80211_NOTE(vap, IEEE80211_MSG_AUTH, ni, in ieee80211_send_mgmt()
2765 IEEE80211_NODE_STAT(ni, tx_auth); in ieee80211_send_mgmt()
2767 IEEE80211_NODE_STAT(ni, tx_auth_fail); in ieee80211_send_mgmt()
2775 IEEE80211_NOTE(vap, IEEE80211_MSG_AUTH, ni, in ieee80211_send_mgmt()
2786 IEEE80211_NODE_STAT(ni, tx_deauth); in ieee80211_send_mgmt()
2787 IEEE80211_NODE_STAT_SET(ni, tx_deauth_code, arg); in ieee80211_send_mgmt()
2789 ieee80211_node_unauthorize(ni); /* port closed */ in ieee80211_send_mgmt()
2851 if ((ni->ni_capinfo & IEEE80211_CAPINFO_SPECTRUM_MGMT) && in ieee80211_send_mgmt()
2867 frm = ieee80211_add_ssid(frm, ni->ni_essid, ni->ni_esslen); in ieee80211_send_mgmt()
2868 frm = ieee80211_add_rates(frm, &ni->ni_rates); in ieee80211_send_mgmt()
2870 frm = ieee80211_add_xrates(frm, &ni->ni_rates); in ieee80211_send_mgmt()
2883 IEEE80211_IS_CHAN_HT(ni->ni_chan) && in ieee80211_send_mgmt()
2884 ni->ni_ies.htcap_ie != NULL && in ieee80211_send_mgmt()
2885 ni->ni_ies.htcap_ie[0] == IEEE80211_ELEMID_HTCAP) { in ieee80211_send_mgmt()
2886 frm = ieee80211_add_htcap(frm, ni); in ieee80211_send_mgmt()
2890 IEEE80211_IS_CHAN_VHT(ni->ni_chan) && in ieee80211_send_mgmt()
2891 ni->ni_ies.vhtcap_ie != NULL && in ieee80211_send_mgmt()
2892 ni->ni_ies.vhtcap_ie[0] == IEEE80211_ELEMID_VHT_CAP) { in ieee80211_send_mgmt()
2893 frm = ieee80211_add_vhtcap(frm, ni); in ieee80211_send_mgmt()
2898 ni->ni_ies.wme_ie != NULL) in ieee80211_send_mgmt()
2899 frm = ieee80211_add_wme_info(frm, &ic->ic_wme, ni); in ieee80211_send_mgmt()
2906 IEEE80211_IS_CHAN_HT(ni->ni_chan) && in ieee80211_send_mgmt()
2907 ni->ni_ies.htcap_ie != NULL && in ieee80211_send_mgmt()
2908 ni->ni_ies.htcap_ie[0] == IEEE80211_ELEMID_VENDOR) { in ieee80211_send_mgmt()
2909 frm = ieee80211_add_htcap_vendor(frm, ni); in ieee80211_send_mgmt()
2912 if (IEEE80211_ATH_CAP(vap, ni, IEEE80211_F_ATHEROS)) { in ieee80211_send_mgmt()
2914 IEEE80211_ATH_CAP(vap, ni, IEEE80211_F_ATHEROS), in ieee80211_send_mgmt()
2916 ni->ni_authmode != IEEE80211_AUTH_8021X) ? in ieee80211_send_mgmt()
2976 *(uint16_t *)frm = htole16(ni->ni_associd); in ieee80211_send_mgmt()
2977 IEEE80211_NODE_STAT(ni, tx_assoc); in ieee80211_send_mgmt()
2979 IEEE80211_NODE_STAT(ni, tx_assoc_fail); in ieee80211_send_mgmt()
2982 frm = ieee80211_add_rates(frm, &ni->ni_rates); in ieee80211_send_mgmt()
2983 frm = ieee80211_add_xrates(frm, &ni->ni_rates); in ieee80211_send_mgmt()
2985 if ((ni->ni_flags & HTFLAGS) == IEEE80211_NODE_HT) { in ieee80211_send_mgmt()
2986 frm = ieee80211_add_htcap(frm, ni); in ieee80211_send_mgmt()
2987 frm = ieee80211_add_htinfo(frm, ni); in ieee80211_send_mgmt()
2990 ni->ni_ies.wme_ie != NULL) in ieee80211_send_mgmt()
2993 if ((ni->ni_flags & HTFLAGS) == HTFLAGS) { in ieee80211_send_mgmt()
2994 frm = ieee80211_add_htcap_vendor(frm, ni); in ieee80211_send_mgmt()
2995 frm = ieee80211_add_htinfo_vendor(frm, ni); in ieee80211_send_mgmt()
2997 if (ni->ni_flags & IEEE80211_NODE_VHT) { in ieee80211_send_mgmt()
2998 frm = ieee80211_add_vhtcap(frm, ni); in ieee80211_send_mgmt()
2999 frm = ieee80211_add_vhtinfo(frm, ni); in ieee80211_send_mgmt()
3002 if (IEEE80211_ATH_CAP(vap, ni, IEEE80211_F_ATHEROS)) in ieee80211_send_mgmt()
3004 IEEE80211_ATH_CAP(vap, ni, IEEE80211_F_ATHEROS), in ieee80211_send_mgmt()
3006 ni->ni_authmode != IEEE80211_AUTH_8021X) ? in ieee80211_send_mgmt()
3015 IEEE80211_NOTE(vap, IEEE80211_MSG_ASSOC, ni, in ieee80211_send_mgmt()
3026 IEEE80211_NODE_STAT(ni, tx_disassoc); in ieee80211_send_mgmt()
3027 IEEE80211_NODE_STAT_SET(ni, tx_disassoc_code, arg); in ieee80211_send_mgmt()
3031 IEEE80211_NOTE(vap, IEEE80211_MSG_ANY, ni, in ieee80211_send_mgmt()
3043 return ieee80211_mgmt_output(ni, m, type, &params); in ieee80211_send_mgmt()
3045 ieee80211_free_node(ni); in ieee80211_send_mgmt()
3348 ieee80211_alloc_prot(struct ieee80211_node *ni, const struct mbuf *m, in ieee80211_alloc_prot() argument
3351 struct ieee80211com *ic = ni->ni_ic; in ieee80211_alloc_prot()
3352 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_alloc_prot()
3417 ieee80211_tx_mgt_cb(struct ieee80211_node *ni, void *arg, int status) in ieee80211_tx_mgt_cb() argument
3419 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_tx_mgt_cb()
3435 "ni %p mode %s state %s arg %p status %d\n", ni, in ieee80211_tx_mgt_cb()
3447 struct ieee80211_node *ni) in ieee80211_beacon_construct() argument
3449 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_beacon_construct()
3451 struct ieee80211com *ic = ni->ni_ic; in ieee80211_beacon_construct()
3452 struct ieee80211_rateset *rs = &ni->ni_rates; in ieee80211_beacon_construct()
3516 *(uint16_t *)frm = htole16(ni->ni_intval); in ieee80211_beacon_construct()
3518 capinfo = ieee80211_getcapinfo(vap, ni->ni_chan); in ieee80211_beacon_construct()
3524 *frm++ = ni->ni_esslen; in ieee80211_beacon_construct()
3525 memcpy(frm, ni->ni_essid, ni->ni_esslen); in ieee80211_beacon_construct()
3526 frm += ni->ni_esslen; in ieee80211_beacon_construct()
3530 if (!IEEE80211_IS_CHAN_FHSS(ni->ni_chan)) { in ieee80211_beacon_construct()
3533 *frm++ = ieee80211_chan2ieee(ic, ni->ni_chan); in ieee80211_beacon_construct()
3564 if (IEEE80211_IS_CHAN_5GHZ(ni->ni_chan)) in ieee80211_beacon_construct()
3590 if (IEEE80211_IS_CHAN_ANYG(ni->ni_chan)) { in ieee80211_beacon_construct()
3596 if (IEEE80211_IS_CHAN_HT(ni->ni_chan)) { in ieee80211_beacon_construct()
3597 frm = ieee80211_add_htcap(frm, ni); in ieee80211_beacon_construct()
3599 frm = ieee80211_add_htinfo(frm, ni); in ieee80211_beacon_construct()
3602 if (IEEE80211_IS_CHAN_VHT(ni->ni_chan)) { in ieee80211_beacon_construct()
3603 frm = ieee80211_add_vhtcap(frm, ni); in ieee80211_beacon_construct()
3605 frm = ieee80211_add_vhtinfo(frm, ni); in ieee80211_beacon_construct()
3617 if (IEEE80211_IS_CHAN_HT(ni->ni_chan) && in ieee80211_beacon_construct()
3619 frm = ieee80211_add_htcap_vendor(frm, ni); in ieee80211_beacon_construct()
3620 frm = ieee80211_add_htinfo_vendor(frm, ni); in ieee80211_beacon_construct()
3626 frm = ieee80211_add_athcaps(frm, ni); in ieee80211_beacon_construct()
3658 ieee80211_beacon_alloc(struct ieee80211_node *ni) in ieee80211_beacon_alloc() argument
3660 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_beacon_alloc()
3661 struct ieee80211com *ic = ni->ni_ic; in ieee80211_beacon_alloc()
3714 + 2 + ni->ni_esslen /* ssid */ in ieee80211_beacon_alloc()
3742 + 2 + ni->ni_meshidlen in ieee80211_beacon_alloc()
3755 ieee80211_beacon_construct(m, frm, ni); in ieee80211_beacon_alloc()
3766 IEEE80211_ADDR_COPY(wh->i_addr3, ni->ni_bssid); in ieee80211_beacon_alloc()
3776 ieee80211_beacon_update(struct ieee80211_node *ni, struct mbuf *m, int mcast) in ieee80211_beacon_update() argument
3778 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_beacon_update()
3780 struct ieee80211com *ic = ni->ni_ic; in ieee80211_beacon_update()
3809 mtod(m, uint8_t*) + sizeof(struct ieee80211_frame), ni); in ieee80211_beacon_update()
3832 mtod(m, uint8_t*) + sizeof(struct ieee80211_frame), ni); in ieee80211_beacon_update()
3846 mtod(m, uint8_t*) + sizeof(struct ieee80211_frame), ni); in ieee80211_beacon_update()
3862 seqno = ni->ni_txseqs[IEEE80211_NONQOS_TID]++; in ieee80211_beacon_update()
3868 capinfo = ieee80211_getcapinfo(vap, ni->ni_chan); in ieee80211_beacon_update()
4082 ieee80211_add_athcaps(bo->bo_ath, ni); in ieee80211_beacon_update()
4173 ieee80211_tx_complete(struct ieee80211_node *ni, struct mbuf *m, int status) in ieee80211_tx_complete() argument
4176 if (ni != NULL) { in ieee80211_tx_complete()
4177 struct ifnet *ifp = ni->ni_vap->iv_ifp; in ieee80211_tx_complete()
4187 IEEE80211_DPRINTF(ni->ni_vap, IEEE80211_MSG_STATE | IEEE80211_MSG_DEBUG, in ieee80211_tx_complete()
4188 "ni %p vap %p mode %s state %s m %p status %d\n", ni, ni->ni_vap, in ieee80211_tx_complete()
4189 ieee80211_opmode_name[ni->ni_vap->iv_opmode], in ieee80211_tx_complete()
4190 ieee80211_state_name[ni->ni_vap->iv_state], m, status); in ieee80211_tx_complete()
4191 ieee80211_process_callback(ni, m, status); in ieee80211_tx_complete()
4193 ieee80211_free_node(ni); in ieee80211_tx_complete()