Lines Matching refs:vap

150 	struct ieee80211vap *vap = ni->ni_vap;  in wtap_recv_mgmt()  local
151 struct wtap_softc *sc = vap->iv_ic->ic_softc; in wtap_recv_mgmt()
159 WTAP_VAP(vap)->av_recv_mgmt(ni, m, subtype, stats, rssi, nf); in wtap_recv_mgmt()
164 if (vap->iv_opmode == IEEE80211_M_IBSS && in wtap_recv_mgmt()
165 vap->iv_state == IEEE80211_S_RUN && in wtap_recv_mgmt()
187 wtap_reset_vap(struct ieee80211vap *vap, u_long cmd) in wtap_reset_vap() argument
195 wtap_beacon_update(struct ieee80211vap *vap, int item) in wtap_beacon_update() argument
197 struct ieee80211_beacon_offsets *bo = &vap->iv_bcn_off; in wtap_beacon_update()
209 struct ieee80211vap *vap = ni->ni_vap; in wtap_beacon_alloc() local
210 struct wtap_vap *avp = WTAP_VAP(vap); in wtap_beacon_alloc()
230 wtap_beacon_config(struct wtap_softc *sc, struct ieee80211vap *vap) in wtap_beacon_config() argument
239 struct ieee80211vap *vap = arg; in wtap_beacon_intrp() local
240 struct wtap_softc *sc = vap->iv_ic->ic_softc; in wtap_beacon_intrp()
245 if (vap->iv_state < IEEE80211_S_RUN) { in wtap_beacon_intrp()
246 DWTAP_PRINTF("Skip beacon, not running, state %d", vap->iv_state); in wtap_beacon_intrp()
267 if (ieee80211_radiotap_active_vap(vap)) in wtap_beacon_intrp()
268 ieee80211_radiotap_tx(vap, m); in wtap_beacon_intrp()
278 wtap_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in wtap_newstate() argument
280 struct ieee80211com *ic = vap->iv_ic; in wtap_newstate()
282 struct wtap_vap *avp = WTAP_VAP(vap); in wtap_newstate()
288 ni = ieee80211_ref_node(vap->iv_bss); in wtap_newstate()
292 error = avp->av_newstate(vap, nstate, arg); in wtap_newstate()
299 ni = ieee80211_ref_node(vap->iv_bss); in wtap_newstate()
300 switch (vap->iv_opmode) { in wtap_newstate()
324 if (vap->iv_opmode == IEEE80211_M_IBSS && in wtap_newstate()
328 wtap_beacon_config(sc, vap); in wtap_newstate()
333 wtap_beacon_intrp, vap); in wtap_newstate()
350 wtap_bmiss(struct ieee80211vap *vap) in wtap_bmiss() argument
352 struct wtap_vap *avp = (struct wtap_vap *)vap; in wtap_bmiss()
355 avp->av_bmiss(vap); in wtap_bmiss()
365 struct ieee80211vap *vap; in wtap_vap_create() local
376 vap = (struct ieee80211vap *) avp; in wtap_vap_create()
377 error = ieee80211_vap_setup(ic, vap, name, unit, opmode, in wtap_vap_create()
385 avp->av_recv_mgmt = vap->iv_recv_mgmt; in wtap_vap_create()
386 vap->iv_recv_mgmt = wtap_recv_mgmt; in wtap_vap_create()
387 vap->iv_reset = wtap_reset_vap; in wtap_vap_create()
388 vap->iv_update_beacon = wtap_beacon_update; in wtap_vap_create()
389 avp->av_newstate = vap->iv_newstate; in wtap_vap_create()
390 vap->iv_newstate = wtap_newstate; in wtap_vap_create()
391 avp->av_bmiss = vap->iv_bmiss; in wtap_vap_create()
392 vap->iv_bmiss = wtap_bmiss; in wtap_vap_create()
395 ieee80211_vap_attach(vap, ieee80211_media_change, in wtap_vap_create()
398 "%s", (const char *)vap->iv_ifp->if_xname); in wtap_vap_create()
403 ni = ieee80211_ref_node(vap->iv_bss); in wtap_vap_create()
406 return vap; in wtap_vap_create()
410 wtap_vap_delete(struct ieee80211vap *vap) in wtap_vap_delete() argument
412 struct wtap_vap *avp = WTAP_VAP(vap); in wtap_vap_delete()
417 ieee80211_vap_detach(vap); in wtap_vap_delete()
467 struct ieee80211vap *vap = ni->ni_vap; in wtap_raw_xmit() local
468 struct wtap_vap *avp = WTAP_VAP(vap); in wtap_raw_xmit()
470 if (ieee80211_radiotap_active_vap(vap)) { in wtap_raw_xmit()
471 ieee80211_radiotap_tx(vap, m); in wtap_raw_xmit()
594 struct ieee80211vap *vap = ni->ni_vap; in wtap_transmit() local
595 struct wtap_vap *avp = WTAP_VAP(vap); in wtap_transmit()
600 if (ieee80211_radiotap_active_vap(vap)) in wtap_transmit()
601 ieee80211_radiotap_tx(vap, m); in wtap_transmit()
610 wtap_node_alloc(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN]) in wtap_node_alloc() argument