Lines Matching defs:vap

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