Lines Matching full:ni

132 static int wtap_raw_xmit(struct ieee80211_node *ni, struct mbuf *m,
147 wtap_recv_mgmt(struct ieee80211_node *ni, struct mbuf *m, in wtap_recv_mgmt() argument
150 struct ieee80211vap *vap = ni->ni_vap; in wtap_recv_mgmt()
153 DWTAP_PRINTF("[%d] %s\n", myath_id(ni), __func__); in wtap_recv_mgmt()
159 WTAP_VAP(vap)->av_recv_mgmt(ni, m, subtype, stats, rssi, nf); in wtap_recv_mgmt()
166 ieee80211_ibss_merge_check(ni)) { in wtap_recv_mgmt()
179 if (le64toh(ni->ni_tstamp.tsf) >= tsf) in wtap_recv_mgmt()
180 (void) ieee80211_ibss_merge(ni); in wtap_recv_mgmt()
207 wtap_beacon_alloc(struct wtap_softc *sc, struct ieee80211_node *ni) in wtap_beacon_alloc() argument
209 struct ieee80211vap *vap = ni->ni_vap; in wtap_beacon_alloc()
212 DWTAP_PRINTF("[%s] %s\n", ether_sprintf(ni->ni_macaddr), __func__); in wtap_beacon_alloc()
219 avp->beacon = ieee80211_beacon_alloc(ni); in wtap_beacon_alloc()
224 avp->bf_node = ieee80211_ref_node(ni); in wtap_beacon_alloc()
283 struct ieee80211_node *ni = NULL; in wtap_newstate() local
288 ni = ieee80211_ref_node(vap->iv_bss); in wtap_newstate()
298 ieee80211_free_node(ni); in wtap_newstate()
299 ni = ieee80211_ref_node(vap->iv_bss); in wtap_newstate()
312 error = wtap_beacon_alloc(sc, ni); in wtap_newstate()
325 ni->ni_tstamp.tsf != 0) in wtap_newstate()
341 ieee80211_free_node(ni); in wtap_newstate()
345 ieee80211_free_node(ni); in wtap_newstate()
368 struct ieee80211_node *ni; in wtap_vap_create() local
403 ni = ieee80211_ref_node(vap->iv_bss); in wtap_vap_create()
404 ni->ni_txrate = 130; in wtap_vap_create()
405 ieee80211_free_node(ni); in wtap_vap_create()
461 wtap_raw_xmit(struct ieee80211_node *ni, struct mbuf *m, in wtap_raw_xmit() argument
467 struct ieee80211vap *vap = ni->ni_vap; in wtap_raw_xmit()
474 ieee80211_process_callback(ni, m, 0); in wtap_raw_xmit()
475 ieee80211_free_node(ni); in wtap_raw_xmit()
499 struct ieee80211_node *ni; in wtap_rx_proc() local
539 ni = ieee80211_find_rxnode_withkey(ic, in wtap_rx_proc()
542 if (ni != NULL) { in wtap_rx_proc()
546 ieee80211_input(ni, m, 1<<7, 10); in wtap_rx_proc()
547 ieee80211_free_node(ni); in wtap_rx_proc()
558 wtap_newassoc(struct ieee80211_node *ni, int isnew) in wtap_newassoc() argument
592 struct ieee80211_node *ni = in wtap_transmit() local
594 struct ieee80211vap *vap = ni->ni_vap; in wtap_transmit()
597 if(ni == NULL){ in wtap_transmit()
604 ieee80211_process_callback(ni, m, 0); in wtap_transmit()
605 ieee80211_free_node(ni); in wtap_transmit()
612 struct ieee80211_node *ni; in wtap_node_alloc() local
616 ni = malloc(sizeof(struct ieee80211_node), M_80211_NODE, in wtap_node_alloc()
618 if (ni == NULL) in wtap_node_alloc()
621 ni->ni_txrate = 130; in wtap_node_alloc()
622 return ni; in wtap_node_alloc()
626 wtap_node_free(struct ieee80211_node *ni) in wtap_node_free() argument
628 struct ieee80211com *ic = ni->ni_ic; in wtap_node_free()
632 sc->sc_node_free(ni); in wtap_node_free()