Lines Matching refs:ni

141 static int wtap_raw_xmit(struct ieee80211_node *ni, struct mbuf *m,
156 wtap_recv_mgmt(struct ieee80211_node *ni, struct mbuf *m, in wtap_recv_mgmt() argument
159 struct ieee80211vap *vap = ni->ni_vap; in wtap_recv_mgmt()
161 DWTAP_PRINTF("[%d] %s\n", myath_id(ni), __func__); in wtap_recv_mgmt()
163 WTAP_VAP(vap)->av_recv_mgmt(ni, m, subtype, stats, rssi, nf); in wtap_recv_mgmt()
187 wtap_beacon_alloc(struct wtap_softc *sc, struct ieee80211_node *ni) in wtap_beacon_alloc() argument
189 struct ieee80211vap *vap = ni->ni_vap; in wtap_beacon_alloc()
192 DWTAP_PRINTF("[%s] %s\n", ether_sprintf(ni->ni_macaddr), __func__); in wtap_beacon_alloc()
199 avp->beacon = ieee80211_beacon_alloc(ni); in wtap_beacon_alloc()
205 avp->bf_node = ieee80211_ref_node(ni); in wtap_beacon_alloc()
257 struct ieee80211_node *ni = NULL; in wtap_newstate() local
262 ni = ieee80211_ref_node(vap->iv_bss); in wtap_newstate()
272 ieee80211_free_node(ni); in wtap_newstate()
273 ni = ieee80211_ref_node(vap->iv_bss); in wtap_newstate()
276 error = wtap_beacon_alloc(sc, ni); in wtap_newstate()
289 ieee80211_free_node(ni); in wtap_newstate()
293 ieee80211_free_node(ni); in wtap_newstate()
316 struct ieee80211_node *ni; in wtap_vap_create() local
349 ni = ieee80211_ref_node(vap->iv_bss); in wtap_vap_create()
350 ni->ni_txrate = 130; in wtap_vap_create()
351 ieee80211_free_node(ni); in wtap_vap_create()
407 wtap_raw_xmit(struct ieee80211_node *ni, struct mbuf *m, in wtap_raw_xmit() argument
413 struct ieee80211vap *vap = ni->ni_vap; in wtap_raw_xmit()
420 ieee80211_process_callback(ni, m, 0); in wtap_raw_xmit()
421 ieee80211_free_node(ni); in wtap_raw_xmit()
445 struct ieee80211_node *ni; in wtap_rx_proc() local
479 ni = ieee80211_find_rxnode_withkey(ic, in wtap_rx_proc()
482 if (ni != NULL) { in wtap_rx_proc()
486 type = ieee80211_input(ni, m, 1<<7, 10); in wtap_rx_proc()
487 ieee80211_free_node(ni); in wtap_rx_proc()
498 wtap_newassoc(struct ieee80211_node *ni, int isnew) in wtap_newassoc() argument
532 struct ieee80211_node *ni = in wtap_transmit() local
534 struct ieee80211vap *vap = ni->ni_vap; in wtap_transmit()
537 if(ni == NULL){ in wtap_transmit()
544 ieee80211_process_callback(ni, m, 0); in wtap_transmit()
545 ieee80211_free_node(ni); in wtap_transmit()
552 struct ieee80211_node *ni; in wtap_node_alloc() local
556 ni = malloc(sizeof(struct ieee80211_node), M_80211_NODE, in wtap_node_alloc()
558 if (ni == NULL) in wtap_node_alloc()
561 ni->ni_txrate = 130; in wtap_node_alloc()
562 return ni; in wtap_node_alloc()
566 wtap_node_free(struct ieee80211_node *ni) in wtap_node_free() argument
568 struct ieee80211com *ic = ni->ni_ic; in wtap_node_free()
572 sc->sc_node_free(ni); in wtap_node_free()