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