Lines Matching refs:ni

63 ieee80211_process_mimo(struct ieee80211_node *ni, struct ieee80211_rx_stats *rx)  in ieee80211_process_mimo()  argument
74 IEEE80211_RSSI_LPF(ni->ni_mimo_rssi_ctl[i], rx->c_rssi_ctl[i]); in ieee80211_process_mimo()
75 IEEE80211_RSSI_LPF(ni->ni_mimo_rssi_ext[i], rx->c_rssi_ext[i]); in ieee80211_process_mimo()
80 ni->ni_mimo_noise_ctl[i] = rx->c_nf_ctl[i]; in ieee80211_process_mimo()
81 ni->ni_mimo_noise_ext[i] = rx->c_nf_ext[i]; in ieee80211_process_mimo()
83 ni->ni_mimo_chains = rx->c_chain; in ieee80211_process_mimo()
87 ieee80211_input_mimo(struct ieee80211_node *ni, struct mbuf *m) in ieee80211_input_mimo() argument
97 ieee80211_process_mimo(ni, &rxs); in ieee80211_input_mimo()
100 return ni->ni_vap->iv_input(ni, m, &rxs, rxs.c_rssi, rxs.c_nf); in ieee80211_input_mimo()
128 struct ieee80211_node *ni; in ieee80211_input_mimo_all() local
157 ni = ieee80211_ref_node(vap->iv_bss); in ieee80211_input_mimo_all()
158 type = ieee80211_input_mimo(ni, mcopy); in ieee80211_input_mimo_all()
159 ieee80211_free_node(ni); in ieee80211_input_mimo_all()
172 ieee80211_defrag(struct ieee80211_node *ni, struct mbuf *m, int hdrspace, in ieee80211_defrag() argument
175 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_defrag()
189 if (!more_frag && fragno == 0 && ni->ni_rxfrag[0] == NULL) in ieee80211_defrag()
200 if (ni->ni_table == NULL) { in ieee80211_defrag()
213 IEEE80211_NODE_LOCK(ni->ni_table); in ieee80211_defrag()
214 mfrag = ni->ni_rxfrag[0]; in ieee80211_defrag()
215 ni->ni_rxfrag[0] = NULL; in ieee80211_defrag()
216 IEEE80211_NODE_UNLOCK(ni->ni_table); in ieee80211_defrag()
254 IEEE80211_NODE_STAT(ni, rx_defrag); in ieee80211_defrag()
261 ni->ni_rxfragstamp = ticks; in ieee80211_defrag()
262 ni->ni_rxfrag[0] = mfrag; in ieee80211_defrag()
275 struct ieee80211_node *ni, struct mbuf *m) in ieee80211_deliver_data() argument
291 IEEE80211_NODE_STAT(ni, rx_data); in ieee80211_deliver_data()
292 IEEE80211_NODE_STAT_ADD(ni, rx_bytes, m->m_pkthdr.len); in ieee80211_deliver_data()
298 IEEE80211_NODE_STAT(ni, rx_mcast); in ieee80211_deliver_data()
300 IEEE80211_NODE_STAT(ni, rx_ucast); in ieee80211_deliver_data()
303 if (ni->ni_vlan != 0) { in ieee80211_deliver_data()
305 m->m_pkthdr.ether_vtag = ni->ni_vlan; in ieee80211_deliver_data()
427 ieee80211_setup_rates(struct ieee80211_node *ni, in ieee80211_setup_rates() argument
430 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_setup_rates()
431 struct ieee80211_rateset *rs = &ni->ni_rates; in ieee80211_setup_rates()
444 IEEE80211_NOTE(vap, IEEE80211_MSG_XRATE, ni, in ieee80211_setup_rates()
452 return ieee80211_fix_rate(ni, rs, flags); in ieee80211_setup_rates()
463 ieee80211_send_error(struct ieee80211_node *ni, in ieee80211_send_error() argument
466 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_send_error()
469 if (ni == vap->iv_bss) { in ieee80211_send_error()
481 ni = ieee80211_tmp_node(vap, mac); in ieee80211_send_error()
482 if (ni == NULL) { in ieee80211_send_error()
489 IEEE80211_SEND_MGMT(ni, subtype, arg); in ieee80211_send_error()
491 ieee80211_free_node(ni); in ieee80211_send_error()
495 ieee80211_alloc_challenge(struct ieee80211_node *ni) in ieee80211_alloc_challenge() argument
497 if (ni->ni_challenge == NULL) in ieee80211_alloc_challenge()
498 ni->ni_challenge = (uint32_t *) in ieee80211_alloc_challenge()
501 if (ni->ni_challenge == NULL) { in ieee80211_alloc_challenge()
502 IEEE80211_NOTE(ni->ni_vap, in ieee80211_alloc_challenge()
503 IEEE80211_MSG_DEBUG | IEEE80211_MSG_AUTH, ni, in ieee80211_alloc_challenge()
507 return (ni->ni_challenge != NULL); in ieee80211_alloc_challenge()
518 ieee80211_parse_beacon(struct ieee80211_node *ni, struct mbuf *m, in ieee80211_parse_beacon() argument
521 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_parse_beacon()
522 struct ieee80211com *ic = ni->ni_ic; in ieee80211_parse_beacon()
792 ieee80211_parse_action(struct ieee80211_node *ni, struct mbuf *m) in ieee80211_parse_action() argument
794 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_parse_action()
813 IEEE80211_NODE_STAT(ni, rx_action); in ieee80211_parse_action()
899 if (ni == vap->iv_bss) in ieee80211_parse_action()