Lines Matching refs:ni

61 	struct ieee80211_node *ni;  in rtwn_drain_mbufq()  local
64 ni = (struct ieee80211_node *)m->m_pkthdr.rcvif; in rtwn_drain_mbufq()
66 ieee80211_free_node(ni); in rtwn_drain_mbufq()
109 rtwn_tx_data(struct rtwn_softc *sc, struct ieee80211_node *ni, in rtwn_tx_data() argument
112 const struct ieee80211_txparam *tp = ni->ni_txparms; in rtwn_tx_data()
114 struct ieee80211vap *vap = ni->ni_vap; in rtwn_tx_data()
141 (void) ieee80211_ratectl_rate(ni, NULL, 0); in rtwn_tx_data()
142 rate = ni->ni_txrate; in rtwn_tx_data()
144 if (ni->ni_flags & IEEE80211_NODE_HT) in rtwn_tx_data()
157 k = ieee80211_crypto_encap(ni, m); in rtwn_tx_data()
175 rtwn_fill_tx_desc(sc, ni, m, txd, ridx, tp->maxretry); in rtwn_tx_data()
186 return (rtwn_tx_start(sc, ni, m, (uint8_t *)txd, type, 0)); in rtwn_tx_data()
190 rtwn_tx_raw(struct rtwn_softc *sc, struct ieee80211_node *ni, in rtwn_tx_raw() argument
193 struct ieee80211vap *vap = ni->ni_vap; in rtwn_tx_raw()
205 k = ieee80211_crypto_encap(ni, m); in rtwn_tx_raw()
223 rtwn_fill_tx_desc_raw(sc, ni, m, txd, params); in rtwn_tx_raw()
234 return (rtwn_tx_start(sc, ni, m, (uint8_t *)txd, type, 0)); in rtwn_tx_raw()
262 struct ieee80211_node *ni; in rtwn_start() local
276 ni = (struct ieee80211_node *)m->m_pkthdr.rcvif; in rtwn_start()
280 "%s: called; m %p, ni %p\n", __func__, m, ni); in rtwn_start()
282 if (rtwn_tx_data(sc, ni, m) != 0) { in rtwn_start()
283 if_inc_counter(ni->ni_vap->iv_ifp, in rtwn_start()
287 ieee80211_tx_watchdog_refresh(ni->ni_ic, -1, 0); in rtwn_start()
289 ieee80211_free_node(ni); in rtwn_start()
296 rtwn_raw_xmit(struct ieee80211_node *ni, struct mbuf *m, in rtwn_raw_xmit() argument
299 struct ieee80211com *ic = ni->ni_ic; in rtwn_raw_xmit()
304 __func__, m, ni); in rtwn_raw_xmit()
323 error = rtwn_tx_data(sc, ni, m); in rtwn_raw_xmit()
329 error = rtwn_tx_raw(sc, ni, m, params); in rtwn_raw_xmit()
335 ieee80211_process_callback(ni, m, 1); in rtwn_raw_xmit()