Lines Matching refs:ni

148 	struct ieee80211_node	ni;
668 struct ieee80211_node *ni;
683 ni = m->m_pkthdr.ph_cookie;
703 if ((m = ieee80211_encap(ifp, m, &ni)) == NULL) {
713 if (mwx_tx(sc, m, ni) != 0) {
714 ieee80211_release_node(ic, ni);
808 return &mn->ni;
812 mwx_newassoc(struct ieee80211com *ic, struct ieee80211_node *ni, int isnew)
815 struct mwx_node *mn = (void *)ni;
818 if (isnew && ni->ni_associd != 0) {
820 wcid = IEEE80211_AID(ni->ni_associd);
824 isnew, ether_sprintf(ni->ni_macaddr), mn->wcid);
831 mwx_node_leave(struct ieee80211com *ic, struct ieee80211_node *ni)
835 struct mwx_node *mn = (void *)ni;
960 mwx_tx(struct mwx_softc *sc, struct mbuf *m, struct ieee80211_node *ni)
962 struct mwx_node *mn = (void *)ni;
972 mt7921_mac_write_txwi(sc, m, ni, txp);
995 struct ieee80211_node *ni;
1029 ni = ieee80211_find_rxnode(ic, wh);
1033 ieee80211_inputm(ifp, m, ni, &rxi, ml);
1036 ieee80211_release_node(ic, ni);
4569 struct ieee80211_node *ni, struct mt76_txwi *txp)
4680 tap->wt_chan_freq = htole16(ni->ni_chan->ic_freq);
4681 chan_flags = ni->ni_chan->ic_flags;
4691 if ((ni->ni_flags & IEEE80211_NODE_HT) &&
4720 struct ieee80211_node *ni, struct mt76_txwi *txp)
4722 struct mwx_node *mn = (void *)ni;
4782 mt7921_mac_write_txwi_80211(sc, m, ni, txp);
4836 mt7921_get_phy_mode_v2(struct mwx_softc *sc, struct ieee80211_node *ni)
4840 if (ni == NULL)
4841 ni = sc->sc_ic.ic_bss;
4843 if (IEEE80211_IS_CHAN_2GHZ(ni->ni_chan)) {
4845 if (ieee80211_node_supports_ht(ni))
4848 if (ieee80211_node_supports_he(ni))
4851 } else if (IEEE80211_IS_CHAN_5GHZ(ni->ni_chan) /* || CHAN_6GHZ */) {
4853 if (ieee80211_node_supports_ht(ni))
4855 if (ieee80211_node_supports_vht(ni))
4858 if (ieee80211_node_supports_he(ni))
4913 struct ieee80211_node *ni, int add, int new)
4929 if (ni == NULL) {
4950 basic->aid = htole16(IEEE80211_AID(ni->ni_associd));
4951 memcpy(basic->peer_addr, ni->ni_macaddr, IEEE80211_ADDR_LEN);
4952 basic->qos = (ni->ni_flags & IEEE80211_NODE_QOS) != 0;
4957 struct ieee80211_node *ni, int add, int new)
4990 mt7921_mcu_sta_uapsd(m, tlvnum, vif, ni);
5017 phy->phy_type = mt7921_get_phy_mode_v2(sc, ni);
5061 struct mwx_softc *sc, struct ieee80211_node *ni)
5070 if (ni) {
5071 generic->partial_aid = htole16(IEEE80211_AID(ni->ni_associd));
5072 memcpy(generic->peer_addr, ni->ni_macaddr, IEEE80211_ADDR_LEN);
5074 generic->qos = (ni->ni_flags & IEEE80211_NODE_QOS) != 0;
5081 rx->rca1 = ni ? ic->ic_opmode != IEEE80211_M_HOSTAP : 1;
5090 struct mwx_softc *sc, struct ieee80211_node *ni)
5110 struct mwx_softc *sc, struct ieee80211_node *ni)
5124 mt7921_mac_sta_update(struct mwx_softc *sc, struct ieee80211_node *ni,
5127 struct mwx_node *mw = (struct mwx_node *)ni;
5139 if (ni != NULL)
5140 mt7921_mcu_add_basic_tlv(m, &tlvnum, sc, ni, add, new);
5142 if (ni != NULL && add)
5143 mt7921_mcu_add_sta_tlv(m, &tlvnum, sc, ni, add, new);
5152 wlen += mt7921_mcu_wtbl_generic_tlv(m, &wnum, sc, ni);
5153 wlen += mt7921_mcu_wtbl_hdr_trans_tlv(m, &wnum, sc, ni);
5155 if (ni)
5156 wlen += mt7921_mcu_wtbl_ht_tlv(m, &wnum, sc, ni);
5169 hdr->muar_idx = ni ? mvif->omac_idx : 0,