Lines Matching defs:vap

428 	struct ieee80211vap *vap;
439 device_printf(sc->sc_dev, "only 1 vap supported\n");
454 * bssid; WDS vap's always share the local
464 vap = &rvp->ral_vap;
465 ieee80211_vap_setup(ic, vap, name, unit, opmode, flags, bssid);
468 rvp->ral_newstate = vap->iv_newstate;
469 vap->iv_newstate = rt2860_newstate;
471 vap->iv_update_beacon = rt2860_beacon_update;
475 vap->iv_max_aid = min(IEEE80211_AID_MAX, RT2860_WCID_MAX);
477 ieee80211_ratectl_init(vap);
479 ieee80211_vap_attach(vap, ieee80211_media_change,
481 if (TAILQ_FIRST(&ic->ic_vaps) == vap)
483 return vap;
487 rt2860_vap_delete(struct ieee80211vap *vap)
489 struct rt2860_vap *rvp = RT2860_VAP(vap);
491 ieee80211_ratectl_deinit(vap);
492 ieee80211_vap_detach(vap);
902 rt2860_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
904 struct rt2860_vap *rvp = RT2860_VAP(vap);
905 struct ieee80211com *ic = vap->iv_ic;
910 if (vap->iv_state == IEEE80211_S_RUN) {
915 if (nstate == IEEE80211_S_INIT && vap->iv_state == IEEE80211_S_RUN) {
925 error = rvp->ral_newstate(vap, nstate, arg);
930 struct ieee80211_node *ni = vap->iv_bss;
939 if (vap->iv_opmode == IEEE80211_M_HOSTAP ||
940 vap->iv_opmode == IEEE80211_M_IBSS ||
941 vap->iv_opmode == IEEE80211_M_MBSS) {
942 error = rt2860_setup_beacon(sc, vap);
1382 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
1384 DPRINTFN(2, ("GP timeout state=%d\n", vap->iv_state));
1386 if (vap->iv_state == IEEE80211_S_RUN)
1454 struct ieee80211vap *vap = ni->ni_vap;
1489 tp = &vap->iv_txparms[ieee80211_chan2mode(ni->ni_chan)];
1547 (m->m_pkthdr.len + IEEE80211_CRC_LEN > vap->iv_rtsthreshold ||
1572 if (ieee80211_radiotap_active_vap(vap)) {
1580 ieee80211_radiotap_tx(vap, m);
1731 struct ieee80211vap *vap = ni->ni_vap;
1817 if (ieee80211_radiotap_active_vap(vap)) {
1825 ieee80211_radiotap_tx(vap, m);
2294 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
2296 if (vap->iv_state == IEEE80211_S_RUN) {
3800 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
3843 rt2860_set_macaddr(sc, vap ? vap->iv_myaddr : ic->ic_macaddr);
4272 rt2860_setup_beacon(struct rt2860_softc *sc, struct ieee80211vap *vap)
4274 struct ieee80211com *ic = vap->iv_ic;
4279 if ((m = ieee80211_beacon_alloc(vap->iv_bss)) == NULL)
4309 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
4315 tmp |= vap->iv_bss->ni_intval * 16;
4317 if (vap->iv_opmode == IEEE80211_M_STA) {
4324 else if (vap->iv_opmode == IEEE80211_M_IBSS ||
4325 vap->iv_opmode == IEEE80211_M_MBSS) {
4332 } else if (vap->iv_opmode == IEEE80211_M_HOSTAP) {