Lines Matching refs:ni

130 ieee80211_node_psq_dequeue(struct ieee80211_node *ni, int *qlen)  in ieee80211_node_psq_dequeue()  argument
132 struct ieee80211_psq *psq = &ni->ni_psq; in ieee80211_node_psq_dequeue()
167 struct ieee80211_node *ni = (void *) m->m_pkthdr.rcvif; in psq_mfree() local
168 ieee80211_free_node(ni); in psq_mfree()
210 ieee80211_node_psq_drain(struct ieee80211_node *ni) in ieee80211_node_psq_drain() argument
212 return psq_drain(&ni->ni_psq); in ieee80211_node_psq_drain()
226 ieee80211_node_psq_age(struct ieee80211_node *ni) in ieee80211_node_psq_age() argument
228 struct ieee80211_psq *psq = &ni->ni_psq; in ieee80211_node_psq_age()
233 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_node_psq_age()
243 IEEE80211_NOTE(vap, IEEE80211_MSG_POWER, ni, in ieee80211_node_psq_age()
262 IEEE80211_NOTE(vap, IEEE80211_MSG_POWER, ni, in ieee80211_node_psq_age()
264 IEEE80211_NODE_STAT_ADD(ni, ps_discard, discard); in ieee80211_node_psq_age()
285 ieee80211_set_tim(struct ieee80211_node *ni, int set) in ieee80211_set_tim() argument
287 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_set_tim()
288 struct ieee80211com *ic = ni->ni_ic; in ieee80211_set_tim()
296 aid = IEEE80211_AID(ni->ni_associd); in ieee80211_set_tim()
324 ieee80211_pwrsave(struct ieee80211_node *ni, struct mbuf *m) in ieee80211_pwrsave() argument
326 struct ieee80211_psq *psq = &ni->ni_psq; in ieee80211_pwrsave()
327 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_pwrsave()
328 struct ieee80211com *ic = ni->ni_ic; in ieee80211_pwrsave()
336 IEEE80211_NOTE(vap, IEEE80211_MSG_POWER, ni, in ieee80211_pwrsave()
341 ieee80211_dump_pkt(ni->ni_ic, mtod(m, caddr_t), in ieee80211_pwrsave()
355 age = IEEE80211_TU_TO_MS((ni->ni_intval * ic->ic_bintval) << 2) / 1000; in ieee80211_pwrsave()
400 IEEE80211_NOTE(vap, IEEE80211_MSG_POWER, ni, in ieee80211_pwrsave()
404 vap->iv_set_tim(ni, 1); in ieee80211_pwrsave()
416 pwrsave_flushq(struct ieee80211_node *ni) in pwrsave_flushq() argument
418 struct ieee80211_psq *psq = &ni->ni_psq; in pwrsave_flushq()
419 struct ieee80211com *ic = ni->ni_ic; in pwrsave_flushq()
420 struct ieee80211vap *vap = ni->ni_vap; in pwrsave_flushq()
425 IEEE80211_NOTE(vap, IEEE80211_MSG_POWER, ni, in pwrsave_flushq()
479 ieee80211_node_pwrsave(struct ieee80211_node *ni, int enable) in ieee80211_node_pwrsave() argument
481 struct ieee80211vap *vap = ni->ni_vap; in ieee80211_node_pwrsave()
486 if ((ni->ni_flags & IEEE80211_NODE_PWR_MGT) == 0) { in ieee80211_node_pwrsave()
490 ni->ni_flags |= IEEE80211_NODE_PWR_MGT; in ieee80211_node_pwrsave()
491 IEEE80211_NOTE(vap, IEEE80211_MSG_POWER, ni, in ieee80211_node_pwrsave()
497 if (ni->ni_flags & IEEE80211_NODE_PWR_MGT) { in ieee80211_node_pwrsave()
501 ni->ni_flags &= ~IEEE80211_NODE_PWR_MGT; in ieee80211_node_pwrsave()
502 IEEE80211_NOTE(vap, IEEE80211_MSG_POWER, ni, in ieee80211_node_pwrsave()
507 vap->iv_set_tim(ni, 0); in ieee80211_node_pwrsave()
512 if (ni->ni_psq.psq_len != 0) in ieee80211_node_pwrsave()
513 pwrsave_flushq(ni); in ieee80211_node_pwrsave()
523 struct ieee80211_node *ni = vap->iv_bss; in ieee80211_sta_pwrsave() local
525 if (!((enable != 0) ^ ((ni->ni_flags & IEEE80211_NODE_PWR_MGT) != 0))) in ieee80211_sta_pwrsave()
528 IEEE80211_NOTE(vap, IEEE80211_MSG_POWER, ni, in ieee80211_sta_pwrsave()
531 ni->ni_flags &= ~IEEE80211_NODE_PWR_MGT; in ieee80211_sta_pwrsave()
532 ieee80211_send_nulldata(ieee80211_ref_node(ni)); in ieee80211_sta_pwrsave()
539 if (ni->ni_psq.psq_len != 0) in ieee80211_sta_pwrsave()
540 pwrsave_flushq(ni); in ieee80211_sta_pwrsave()
542 ni->ni_flags |= IEEE80211_NODE_PWR_MGT; in ieee80211_sta_pwrsave()
543 ieee80211_send_nulldata(ieee80211_ref_node(ni)); in ieee80211_sta_pwrsave()