Lines Matching full:ni
211 ieee80211_parse_ath(struct ieee80211_node *ni, uint8_t *ie) in ieee80211_parse_ath() argument
216 ni->ni_ath_flags = ath->ath_capability; in ieee80211_parse_ath()
217 ni->ni_ath_defkeyix = le16dec(&ath->ath_defkeyix); in ieee80211_parse_ath()
221 ieee80211_parse_athparams(struct ieee80211_node *ni, uint8_t *frm, in ieee80211_parse_athparams() argument
224 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_parse_athparams()
237 capschanged = (ni->ni_ath_flags != ath->ath_capability); in ieee80211_parse_athparams()
239 if (capschanged || defkeyix != ni->ni_ath_defkeyix) { in ieee80211_parse_athparams()
240 ni->ni_ath_flags = ath->ath_capability; in ieee80211_parse_athparams()
241 ni->ni_ath_defkeyix = defkeyix; in ieee80211_parse_athparams()
242 IEEE80211_NOTE(vap, IEEE80211_MSG_SUPERG, ni, in ieee80211_parse_athparams()
244 ni->ni_ath_flags, ni->ni_ath_defkeyix); in ieee80211_parse_athparams()
246 if (IEEE80211_ATH_CAP(vap, ni, ATHEROS_CAP_TURBO_PRIME)) { in ieee80211_parse_athparams()
271 ieee80211_ff_decap(struct ieee80211_node *ni, struct mbuf *m) in ieee80211_ff_decap() argument
274 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_ff_decap()
281 KASSERT(IEEE80211_ATH_CAP(vap, ni, IEEE80211_NODE_FF), in ieee80211_ff_decap()
291 ni->ni_macaddr, "fast-frame", in ieee80211_ff_decap()
304 ni->ni_macaddr, "fast-frame", in ieee80211_ff_decap()
323 ni->ni_macaddr, "fast-frame", "%s", "first decap failed"); in ieee80211_ff_decap()
330 ni->ni_macaddr, "fast-frame", in ieee80211_ff_decap()
337 vap->iv_deliver_data(vap, ni, m); /* 1st of pair */ in ieee80211_ff_decap()
346 ni->ni_macaddr, "fast-frame", "%s", "second decap failed"); in ieee80211_ff_decap()
590 ff_transmit(struct ieee80211_node *ni, struct mbuf *m) in ff_transmit() argument
592 struct ieee80211vap *vap = ni->ni_vap; in ff_transmit()
593 struct ieee80211com *ic = ni->ni_ic; in ff_transmit()
598 m = ieee80211_encap(vap, ni, m); in ff_transmit()
602 ieee80211_free_node(ni); in ff_transmit()
614 struct ieee80211_node *ni; in ff_flush() local
621 ni = (struct ieee80211_node *) m->m_pkthdr.rcvif; in ff_flush()
622 vap = ni->ni_vap; in ff_flush()
624 IEEE80211_NOTE(vap, IEEE80211_MSG_SUPERG, ni, in ff_flush()
628 ff_transmit(ni, m); in ff_flush()
640 struct ieee80211_node *ni; in ieee80211_ff_age() local
655 ni = (struct ieee80211_node *) m->m_pkthdr.rcvif; in ieee80211_ff_age()
656 KASSERT(ni->ni_tx_superg[tid] == m, ("staging queue empty")); in ieee80211_ff_age()
657 ni->ni_tx_superg[tid] = NULL; in ieee80211_ff_age()
721 ff_approx_txtime(struct ieee80211_node *ni, in ff_approx_txtime() argument
724 struct ieee80211com *ic = ni->ni_ic; in ff_approx_txtime()
725 struct ieee80211vap *vap = ni->ni_vap; in ff_approx_txtime()
749 if (ni->ni_txrate & IEEE80211_RATE_MCS) in ff_approx_txtime()
751 ni->ni_txrate, in ff_approx_txtime()
752 IEEE80211_HT_RC_2_STREAMS(ni->ni_txrate), in ff_approx_txtime()
757 ni->ni_txrate, 0); in ff_approx_txtime()
767 ieee80211_ff_check(struct ieee80211_node *ni, struct mbuf *m) in ieee80211_ff_check() argument
769 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_ff_check()
770 struct ieee80211com *ic = ni->ni_ic; in ieee80211_ff_check()
793 tap = &ni->ni_tx_ampdu[WME_AC_TO_TID(pri)]; in ieee80211_ff_check()
794 mstaged = ni->ni_tx_superg[WME_AC_TO_TID(pri)]; in ieee80211_ff_check()
827 (txtime = ff_approx_txtime(ni, m, mstaged)) > limit) { in ieee80211_ff_check()
837 ni->ni_tx_superg[WME_AC_TO_TID(pri)] = NULL; in ieee80211_ff_check()
844 IEEE80211_NOTE(vap, IEEE80211_MSG_SUPERG, ni, in ieee80211_ff_check()
847 ff_transmit(ni, mstaged); in ieee80211_ff_check()
860 ni->ni_tx_superg[WME_AC_TO_TID(pri)] = NULL; in ieee80211_ff_check()
864 IEEE80211_NOTE(vap, IEEE80211_MSG_SUPERG, ni, in ieee80211_ff_check()
870 KASSERT(mstaged->m_pkthdr.rcvif == (void *)ni, in ieee80211_ff_check()
871 ("rcvif %p ni %p", mstaged->m_pkthdr.rcvif, ni)); in ieee80211_ff_check()
872 ieee80211_free_node(ni); in ieee80211_ff_check()
878 KASSERT(ni->ni_tx_superg[WME_AC_TO_TID(pri)] == NULL, in ieee80211_ff_check()
880 ni->ni_tx_superg[WME_AC_TO_TID(pri)])); in ieee80211_ff_check()
881 ni->ni_tx_superg[WME_AC_TO_TID(pri)] = m; in ieee80211_ff_check()
886 IEEE80211_NOTE(vap, IEEE80211_MSG_SUPERG, ni, in ieee80211_ff_check()
894 ieee80211_amsdu_check(struct ieee80211_node *ni, struct mbuf *m) in ieee80211_amsdu_check() argument
903 if (! ieee80211_amsdu_tx_ok(ni)) in ieee80211_amsdu_check()
914 return (ieee80211_ff_check(ni, m)); in ieee80211_amsdu_check()
918 ieee80211_ff_node_init(struct ieee80211_node *ni) in ieee80211_ff_node_init() argument
925 ieee80211_ff_node_cleanup(ni); in ieee80211_ff_node_init()
929 ieee80211_ff_node_cleanup(struct ieee80211_node *ni) in ieee80211_ff_node_cleanup() argument
931 struct ieee80211com *ic = ni->ni_ic; in ieee80211_ff_node_cleanup()
946 ieee80211_txampdu_init_pps(&ni->ni_tx_ampdu[tid]); in ieee80211_ff_node_cleanup()
947 m = ni->ni_tx_superg[tid]; in ieee80211_ff_node_cleanup()
949 ni->ni_tx_superg[tid] = NULL; in ieee80211_ff_node_cleanup()
965 ieee80211_free_node(ni); in ieee80211_ff_node_cleanup()