Lines Matching full:ni
129 static int wtap_raw_xmit(struct ieee80211_node *ni, struct mbuf *m,
144 wtap_recv_mgmt(struct ieee80211_node *ni, struct mbuf *m, in wtap_recv_mgmt() argument
147 struct ieee80211vap *vap = ni->ni_vap; in wtap_recv_mgmt()
150 DWTAP_PRINTF("[%d] %s\n", myath_id(ni), __func__); in wtap_recv_mgmt()
156 WTAP_VAP(vap)->av_recv_mgmt(ni, m, subtype, stats, rssi, nf); in wtap_recv_mgmt()
163 ieee80211_ibss_merge_check(ni)) { in wtap_recv_mgmt()
176 if (le64toh(ni->ni_tstamp.tsf) >= tsf) in wtap_recv_mgmt()
177 (void) ieee80211_ibss_merge(ni); in wtap_recv_mgmt()
204 wtap_beacon_alloc(struct wtap_softc *sc, struct ieee80211_node *ni) in wtap_beacon_alloc() argument
206 struct ieee80211vap *vap = ni->ni_vap; in wtap_beacon_alloc()
209 DWTAP_PRINTF("[%s] %s\n", ether_sprintf(ni->ni_macaddr), __func__); in wtap_beacon_alloc()
216 avp->beacon = ieee80211_beacon_alloc(ni); in wtap_beacon_alloc()
221 avp->bf_node = ieee80211_ref_node(ni); in wtap_beacon_alloc()
280 struct ieee80211_node *ni = NULL; in wtap_newstate() local
285 ni = ieee80211_ref_node(vap->iv_bss); in wtap_newstate()
295 ieee80211_free_node(ni); in wtap_newstate()
296 ni = ieee80211_ref_node(vap->iv_bss); in wtap_newstate()
309 error = wtap_beacon_alloc(sc, ni); in wtap_newstate()
322 ni->ni_tstamp.tsf != 0) in wtap_newstate()
338 ieee80211_free_node(ni); in wtap_newstate()
342 ieee80211_free_node(ni); in wtap_newstate()
365 struct ieee80211_node *ni; in wtap_vap_create() local
400 ni = ieee80211_ref_node(vap->iv_bss); in wtap_vap_create()
401 ieee80211_node_set_txrate_ht_mcsrate(ni, 2); in wtap_vap_create()
402 ieee80211_free_node(ni); in wtap_vap_create()
458 wtap_raw_xmit(struct ieee80211_node *ni, struct mbuf *m, in wtap_raw_xmit() argument
464 struct ieee80211vap *vap = ni->ni_vap; in wtap_raw_xmit()
471 ieee80211_process_callback(ni, m, 0); in wtap_raw_xmit()
472 ieee80211_free_node(ni); in wtap_raw_xmit()
496 struct ieee80211_node *ni; in wtap_rx_proc() local
536 ni = ieee80211_find_rxnode_withkey(ic, in wtap_rx_proc()
539 if (ni != NULL) { in wtap_rx_proc()
543 ieee80211_input(ni, m, 1<<7, 10); in wtap_rx_proc()
544 ieee80211_free_node(ni); in wtap_rx_proc()
555 wtap_newassoc(struct ieee80211_node *ni, int isnew) in wtap_newassoc() argument
589 struct ieee80211_node *ni = in wtap_transmit() local
591 struct ieee80211vap *vap = ni->ni_vap; in wtap_transmit()
594 if(ni == NULL){ in wtap_transmit()
601 ieee80211_process_callback(ni, m, 0); in wtap_transmit()
602 ieee80211_free_node(ni); in wtap_transmit()
609 struct ieee80211_node *ni; in wtap_node_alloc() local
613 ni = malloc(sizeof(struct ieee80211_node), M_80211_NODE, in wtap_node_alloc()
615 if (ni == NULL) in wtap_node_alloc()
617 ieee80211_node_set_txrate_ht_mcsrate(ni, 2); in wtap_node_alloc()
618 return ni; in wtap_node_alloc()
622 wtap_node_free(struct ieee80211_node *ni) in wtap_node_free() argument
624 struct ieee80211com *ic = ni->ni_ic; in wtap_node_free()
628 sc->sc_node_free(ni); in wtap_node_free()