Lines Matching full:ni

119 sta_leave(void *arg, struct ieee80211_node *ni)  in sta_leave()  argument
121 struct ieee80211vap *vap = ni->ni_vap; in sta_leave()
123 if (ni != vap->iv_bss) in sta_leave()
124 ieee80211_node_leave(ni); in sta_leave()
134 struct ieee80211_node *ni; in adhoc_newstate() local
146 ni = vap->iv_bss; /* NB: no reference held */ in adhoc_newstate()
228 ni = vap->iv_bss; in adhoc_newstate()
235 ether_sprintf(ni->ni_bssid)); in adhoc_newstate()
237 ni->ni_esslen); in adhoc_newstate()
241 IEEE80211_RATE2MBS(ni->ni_txrate)); in adhoc_newstate()
254 if (ni->ni_authmode != IEEE80211_AUTH_8021X) in adhoc_newstate()
255 ieee80211_node_authorize(ni); in adhoc_newstate()
259 if (!IEEE80211_ADDR_EQ(ni->ni_macaddr, vap->iv_myaddr) && in adhoc_newstate()
261 ic->ic_newassoc(ni, ostate != IEEE80211_S_RUN); in adhoc_newstate()
305 adhoc_input(struct ieee80211_node *ni, struct mbuf *m, in adhoc_input() argument
308 struct ieee80211vap *vap = ni->ni_vap; in adhoc_input()
309 struct ieee80211com *ic = ni->ni_ic; in adhoc_input()
345 KASSERT(ni != NULL, ("null node")); in adhoc_input()
346 ni->ni_inact = ni->ni_inact_reload; in adhoc_input()
352 ni->ni_macaddr, NULL, in adhoc_input()
367 ni->ni_macaddr, NULL, "wrong version, fc %02x:%02x", in adhoc_input()
384 IEEE80211_MSG_ANY, ni->ni_macaddr, in adhoc_input()
411 ni == vap->iv_bss && in adhoc_input()
412 !IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) { in adhoc_input()
434 ni = ieee80211_fakeup_adhoc_node(vap, wh->i_addr2); in adhoc_input()
435 if (ni == NULL) { in adhoc_input()
440 IEEE80211_RSSI_LPF(ni->ni_avgrssi, rssi); in adhoc_input()
441 ni->ni_noise = nf; in adhoc_input()
443 IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) { in adhoc_input()
448 if (! ieee80211_check_rxseq(ni, wh, bssid, rxs)) in adhoc_input()
459 ni->ni_macaddr, NULL, in adhoc_input()
479 ieee80211_ampdu_reorder(ni, m, rxs) != 0) { in adhoc_input()
501 IEEE80211_NODE_STAT(ni, rx_noprivacy); in adhoc_input()
504 if (ieee80211_crypto_decap(ni, m, hdrspace, &key) == 0) { in adhoc_input()
506 IEEE80211_NODE_STAT(ni, rx_wepfail); in adhoc_input()
529 m = ieee80211_defrag(ni, m, hdrspace, has_decrypted); in adhoc_input()
542 ni->ni_macaddr, "data", "%s", "demic error"); in adhoc_input()
544 IEEE80211_NODE_STAT(ni, rx_demicfail); in adhoc_input()
564 ni->ni_macaddr, "data", "%s", "decap error"); in adhoc_input()
566 IEEE80211_NODE_STAT(ni, rx_decap); in adhoc_input()
573 if (!ieee80211_node_is_authorized(ni)) { in adhoc_input()
585 ni->ni_macaddr, "data", "unauthorized or " in adhoc_input()
590 IEEE80211_NODE_STAT(ni, rx_unauth); in adhoc_input()
607 IEEE80211_NODE_STAT(ni, rx_unencrypted); in adhoc_input()
613 m = ieee80211_decap_amsdu(ni, m); in adhoc_input()
618 m = ieee80211_decap_fastframe(vap, ni, m); in adhoc_input()
623 if (dir == IEEE80211_FC1_DIR_DSTODS && ni->ni_wdsvap != NULL) in adhoc_input()
624 ieee80211_deliver_data(ni->ni_wdsvap, ni, m); in adhoc_input()
626 ieee80211_deliver_data(vap, ni, m); in adhoc_input()
631 IEEE80211_NODE_STAT(ni, rx_mgmt); in adhoc_input()
640 ni->ni_macaddr, "mgt", "too short: len %u", in adhoc_input()
659 vap->iv_recv_mgmt(ni, m, subtype, rxs, rssi, nf); in adhoc_input()
664 IEEE80211_NODE_STAT(ni, rx_ctrl); in adhoc_input()
665 vap->iv_recv_ctl(ni, m, subtype); in adhoc_input()
703 adhoc_recv_mgmt(struct ieee80211_node *ni, struct mbuf *m0, in adhoc_recv_mgmt() argument
706 struct ieee80211vap *vap = ni->ni_vap; in adhoc_recv_mgmt()
707 struct ieee80211com *ic = ni->ni_ic; in adhoc_recv_mgmt()
721 "%s: recv mgmt frame, addr2=%6D, ni=%p (%6D) fc=%.02x %.02x\n", in adhoc_recv_mgmt()
724 ni, in adhoc_recv_mgmt()
725 ni->ni_macaddr, ":", in adhoc_recv_mgmt()
742 if (ieee80211_parse_beacon(ni, m0, rxchan, &scan) != 0) in adhoc_recv_mgmt()
749 IEEE80211_NODE_STAT(ni, rx_beacons); in adhoc_recv_mgmt()
751 IEEE80211_NODE_STAT(ni, rx_proberesp); in adhoc_recv_mgmt()
773 if (!IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) { in adhoc_recv_mgmt()
786 if (ieee80211_ibss_node_check_new(ni, &scan)) { in adhoc_recv_mgmt()
787 ni = ieee80211_add_neighbor(vap, wh, &scan); in adhoc_recv_mgmt()
792 ieee80211_send_probereq(ni, /* node */ in adhoc_recv_mgmt()
794 ni->ni_macaddr, /* DA */ in adhoc_recv_mgmt()
799 ni = NULL; in adhoc_recv_mgmt()
808 ieee80211_send_probereq(ni, /* node */ in adhoc_recv_mgmt()
810 ni->ni_macaddr, /* DA */ in adhoc_recv_mgmt()
815 } else if (ni->ni_capinfo == 0) { in adhoc_recv_mgmt()
820 ieee80211_init_neighbor(ni, wh, &scan); in adhoc_recv_mgmt()
826 ieee80211_send_probereq(ni, /* node */ in adhoc_recv_mgmt()
828 ni->ni_macaddr, /* DA */ in adhoc_recv_mgmt()
836 memcpy(ni->ni_tstamp.data, scan.tstamp, in adhoc_recv_mgmt()
837 sizeof(ni->ni_tstamp)); in adhoc_recv_mgmt()
849 ieee80211_ht_updateparams(ni, in adhoc_recv_mgmt()
851 if (ieee80211_ht_updateparams_final(ni, in adhoc_recv_mgmt()
858 if (ni != NULL) { in adhoc_recv_mgmt()
859 IEEE80211_RSSI_LPF(ni->ni_avgrssi, rssi); in adhoc_recv_mgmt()
860 ni->ni_noise = nf; in adhoc_recv_mgmt()
956 if ((ni == vap->iv_bss) && in adhoc_recv_mgmt()
957 !IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) { in adhoc_recv_mgmt()
972 if (ieee80211_parse_action(ni, m0) == 0) in adhoc_recv_mgmt()
973 (void)ic->ic_recv_action(ni, wh, frm, efrm); in adhoc_recv_mgmt()
1002 ahdemo_recv_mgmt(struct ieee80211_node *ni, struct mbuf *m0, in ahdemo_recv_mgmt() argument
1005 struct ieee80211vap *vap = ni->ni_vap; in ahdemo_recv_mgmt()
1006 struct ieee80211com *ic = ni->ni_ic; in ahdemo_recv_mgmt()
1013 adhoc_recv_mgmt(ni, m0, subtype, rxs, rssi, nf); in ahdemo_recv_mgmt()
1049 adhoc_recv_ctl(struct ieee80211_node *ni, struct mbuf *m, int subtype) in adhoc_recv_ctl() argument
1054 ieee80211_recv_bar(ni, m); in adhoc_recv_ctl()