Lines Matching defs:ni

128     struct ieee80211_node *ni, struct ath_buf *bf, struct mbuf *m0);
130 struct ieee80211_node *ni, struct mbuf *m0, int *tid);
255 ath_bufhead *frags, struct ieee80211_node *ni)
265 ieee80211_node_decref(ni);
276 struct mbuf *m0, struct ieee80211_node *ni)
288 ath_txfrag_cleanup(sc, frags, ni);
291 (void) ieee80211_ref_node(ni);
505 ath_tx_set_ratectrl(struct ath_softc *sc, struct ieee80211_node *ni,
533 ath_buf_set_rate(sc, ni, bf);
975 ath_tx_tag_crypto(struct ath_softc *sc, struct ieee80211_node *ni,
997 k = ieee80211_crypto_encap(ni, m0);
1022 } else if (ni->ni_ucastkey.wk_cipher == &ieee80211_cipher_none) {
1026 (*keyix) = ni->ni_ucastkey.wk_keyix;
1444 struct ieee80211_node *ni = &an->an_node;
1455 if ((ATH_NODE(ni)->an_is_powersave == 0)
1461 } else if ((ATH_NODE(ni)->an_is_powersave == 1)
1469 } else if ((ATH_NODE(ni)->an_is_powersave == 1)
1479 __func__, ni->ni_macaddr, ":", type, subtype);
1552 ath_tx_normal_setup(struct ath_softc *sc, struct ieee80211_node *ni,
1555 struct ieee80211vap *vap = ni->ni_vap;
1592 if (! ath_tx_tag_crypto(sc, ni, m0, iswep, isfrag, &hdrlen,
1610 KASSERT((ni != NULL), ("%s: ni=NULL!", __func__));
1611 bf->bf_node = ni; /* NB: held reference */
1626 (ni->ni_capinfo & IEEE80211_CAPINFO_SHORT_PREAMBLE)) {
1633 an = ATH_NODE(ni);
1755 (ni->ni_ath_flags & IEEE80211_NODE_FF) == 0) {
1851 sc->sc_tx_th.wt_txpower = ieee80211_get_node_txpower(ni);
1872 bf->bf_state.bfs_txpower = ieee80211_get_node_txpower(ni);
1901 ath_tx_start(struct ath_softc *sc, struct ieee80211_node *ni,
1904 struct ieee80211vap *vap = ni->ni_vap;
1985 ATH_NODE(ni)->an_is_powersave &&
1986 ATH_NODE(ni)->an_swq_depth >
1994 is_ampdu_tx = ath_tx_ampdu_running(sc, ATH_NODE(ni), tid);
1995 is_ampdu_pending = ath_tx_ampdu_pending(sc, ATH_NODE(ni), tid);
2045 seqno = ath_tx_tid_seqno_assign(sc, ni, bf, m0);
2071 r = ath_tx_normal_setup(sc, ni, bf, m0, txq);
2110 } else if (ath_tx_should_swq_frame(sc, ATH_NODE(ni), m0,
2112 ath_tx_swq(sc, ni, txq, queue_to_head, bf);
2136 ath_tx_raw_start(struct ath_softc *sc, struct ieee80211_node *ni,
2141 struct ieee80211vap *vap = ni->ni_vap;
2155 struct ath_node *an = ATH_NODE(ni);
2173 "ath_tx_raw_start: ni=%p, bf=%p, raw", ni, bf);
2184 do_override = ath_tx_action_frame_override_queue(sc, ni, m0, &o_tid);
2205 if (! ath_tx_tag_crypto(sc, ni,
2223 KASSERT((ni != NULL), ("%s: ni=NULL!", __func__));
2224 bf->bf_node = ni; /* NB: held reference */
2302 ieee80211_get_node_txpower(ni));
2319 ieee80211_get_node_txpower(ni));
2389 } else if (ath_tx_should_swq_frame(sc, ATH_NODE(ni), m0,
2392 ath_tx_swq(sc, ni, sc->sc_ac2q[pri], queue_to_head, bf);
2417 ath_raw_xmit(struct ieee80211_node *ni, struct mbuf *m,
2420 struct ieee80211com *ic = ni->ni_ic;
2488 if (ath_tx_start(sc, ni, bf, m)) {
2497 if (ath_tx_raw_start(sc, ni, bf, m, params)) {
2510 ath_tx_update_tim(sc, ni, 1);
2586 struct ieee80211_node *ni,
2601 if (! ieee80211_parse_action(ni, m))
2678 * ni->ni_txseqs[] is the currently allocated seqno.
2962 ath_tx_tid_seqno_assign(struct ath_softc *sc, struct ieee80211_node *ni,
2996 seqno = ni->ni_txseqs[IEEE80211_NONQOS_TID];
2997 INCR(ni->ni_txseqs[IEEE80211_NONQOS_TID], IEEE80211_SEQ_RANGE);
3003 seqno = ni->ni_txseqs[IEEE80211_NONQOS_TID];
3004 INCR(ni->ni_txseqs[IEEE80211_NONQOS_TID], IEEE80211_SEQ_RANGE);
3007 seqno = ni->ni_txseqs[tid];
3008 INCR(ni->ni_txseqs[tid], IEEE80211_SEQ_RANGE);
3115 ath_tx_swq(struct ath_softc *sc, struct ieee80211_node *ni,
3118 struct ath_node *an = ATH_NODE(ni);
3829 struct ieee80211_node *ni = &an->an_node;
3841 ni->ni_macaddr,
3852 ni->ni_macaddr,
3863 ni->ni_macaddr,
3877 ni->ni_macaddr,
3883 ni->ni_txseqs[tid->tid]);
3887 ieee80211_dump_pkt(ni->ni_ic,
3913 struct ieee80211_node *ni = &an->an_node;
3981 ni->ni_macaddr,
3987 ni->ni_txseqs[tid->tid] = tap->txa_start;
4075 ATH_KTR(sc, ATH_KTR_NODE, 1, "ath_tx_node_flush: flush node; ni=%p",
4168 struct ieee80211_node *ni = bf->bf_node;
4169 struct ath_node *an = ATH_NODE(ni);
4236 ath_tx_update_ratectrl(sc, ni, bf->bf_state.bfs_rc,
4255 struct ieee80211_node *ni = bf->bf_node;
4256 struct ath_node *an = ATH_NODE(ni);
4497 struct ieee80211_node *ni = bf->bf_node;
4498 struct ath_node *an = ATH_NODE(ni);
4588 struct ieee80211_node *ni = bf->bf_node;
4589 struct ath_node *an = ATH_NODE(ni);
4654 struct ieee80211_node *ni = bf_first->bf_node;
4655 struct ath_node *an = ATH_NODE(ni);
4668 ath_tx_update_ratectrl(sc, ni, bf_first->bf_state.bfs_rc,
4740 struct ieee80211_node *ni = bf_first->bf_node;
4741 struct ath_node *an = ATH_NODE(ni);
4804 struct ieee80211_node *ni = bf_first->bf_node;
4805 struct ath_node *an = ATH_NODE(ni);
5075 ath_tx_update_ratectrl(sc, ni, rc, &ts, agglen, rc_agglen,
5145 struct ieee80211_node *ni = bf->bf_node;
5146 struct ath_node *an = ATH_NODE(ni);
5165 ath_tx_update_ratectrl(sc, ni, bf->bf_state.bfs_rc,
5837 struct ieee80211_node *ni = &an->an_node;
5843 tap = &ni->ni_tx_ampdu[tid];
5896 ath_addba_request(struct ieee80211_node *ni, struct ieee80211_tx_ampdu *tap,
5899 struct ath_softc *sc = ni->ni_ic->ic_softc;
5901 struct ath_node *an = ATH_NODE(ni);
5942 ni->ni_macaddr,
5947 __func__, tap->txa_start, ni->ni_txseqs[tid]);
5949 return sc->sc_addba_request(ni, tap, dialogtoken, baparamset,
5963 * edge won't match the ni->ni_txseq.
5966 * ni->ni_txseq.
5974 ath_addba_response(struct ieee80211_node *ni, struct ieee80211_tx_ampdu *tap,
5977 struct ath_softc *sc = ni->ni_ic->ic_softc;
5979 struct ath_node *an = ATH_NODE(ni);
5985 ni->ni_macaddr,
5991 __func__, tap->txa_start, ni->ni_txseqs[tid]);
5999 r = sc->sc_addba_response(ni, tap, status, code, batimeout);
6008 tap->txa_start = ni->ni_txseqs[tid];
6021 ath_addba_stop(struct ieee80211_node *ni, struct ieee80211_tx_ampdu *tap)
6023 struct ath_softc *sc = ni->ni_ic->ic_softc;
6025 struct ath_node *an = ATH_NODE(ni);
6032 ni->ni_macaddr,
6053 sc->sc_addba_stop(ni, tap);
6155 ath_bar_response(struct ieee80211_node *ni, struct ieee80211_tx_ampdu *tap,
6158 struct ath_softc *sc = ni->ni_ic->ic_softc;
6160 struct ath_node *an = ATH_NODE(ni);
6168 ni->ni_macaddr,
6190 sc->sc_bar_response(ni, tap, status);
6228 ath_addba_response_timeout(struct ieee80211_node *ni,
6231 struct ath_softc *sc = ni->ni_ic->ic_softc;
6233 struct ath_node *an = ATH_NODE(ni);
6239 ni->ni_macaddr,
6248 sc->sc_addba_response_timeout(ni, tap);