Lines Matching defs:vap

993 	struct ieee80211vap *vap;
998 vap = &nvp->vap;
999 ieee80211_vap_setup(ic, vap, name, unit, opmode, flags, bssid);
1001 nvp->newstate = vap->iv_newstate;
1002 vap->iv_newstate = ndis_newstate;
1005 ieee80211_vap_attach(vap, ieee80211_media_change, ndis_media_status,
1009 vap->iv_key_set = ndis_add_key;
1010 vap->iv_key_delete = ndis_del_key;
1011 return vap;
1015 ndis_vap_delete(struct ieee80211vap *vap)
1017 struct ndis_vap *nvp = NDIS_VAP(vap);
1018 struct ieee80211com *ic = vap->iv_ic;
1023 ieee80211_vap_detach(vap);
1508 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
1510 if (vap != NULL)
1511 vap->iv_deliver_data(vap, vap->iv_bss, m);
1712 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
1714 if (vap != NULL) {
1717 ieee80211_new_state(vap, IEEE80211_S_RUN, -1);
1719 if_link_state_change(vap->iv_ifp,
1731 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
1733 if (vap != NULL) {
1735 ieee80211_new_state(vap, IEEE80211_S_SCAN, 0);
1737 if_link_state_change(vap->iv_ifp,
2142 ieee80211_start_all(&sc->ndis_ic); /* start all vap's */
2343 struct ieee80211vap *vap = ifp->if_softc;
2344 struct ndis_softc *sc = vap->iv_ic->ic_softc;
2353 vap->iv_bss->ni_txrate = txrate / 5000;
2361 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
2392 if (vap->iv_flags & IEEE80211_F_PMGTON)
2470 bcopy(vap->iv_myaddr, bssid, len);
2479 ndis_auth_and_assoc(struct ndis_softc *sc, struct ieee80211vap *vap)
2481 struct ieee80211_node *ni = vap->iv_bss;
2499 if (vap->iv_opmode == IEEE80211_M_IBSS)
2512 arg = vap->iv_rtsthreshold;
2518 arg = vap->iv_fragthreshold;
2523 if (vap->iv_flags & IEEE80211_F_PRIVACY &&
2524 !(vap->iv_flags & IEEE80211_F_WPA)) {
2535 if (vap->iv_nw_keys[i].wk_keylen) {
2536 if (vap->iv_nw_keys[i].wk_cipher->ic_cipher !=
2540 wep.nw_keylen = vap->iv_nw_keys[i].wk_keylen;
2548 if (vap->iv_nw_keys[i].wk_keylen < 5)
2550 else if (vap->iv_nw_keys[i].wk_keylen > 5 &&
2551 vap->iv_nw_keys[i].wk_keylen < 13)
2553 else if (vap->iv_nw_keys[i].wk_keylen > 13 &&
2554 vap->iv_nw_keys[i].wk_keylen < 16)
2560 if (i == vap->iv_def_txkey)
2562 bcopy(vap->iv_nw_keys[i].wk_key,
2583 if (vap->iv_flags & IEEE80211_F_DROPUNENC)
2595 if ((vap->iv_flags & IEEE80211_F_WPA) &&
2596 vap->iv_appie_assocreq != NULL) {
2597 struct ieee80211_appie *ie = vap->iv_appie_assocreq;
2608 switch (vap->iv_curmode) {
2620 vap->iv_curmode);
2649 if (vap->iv_flags & IEEE80211_F_DESBSSID &&
2650 vap->iv_opmode != IEEE80211_M_IBSS)
2721 struct ieee80211vap *vap;
2738 vap = TAILQ_FIRST(&ic->ic_vaps);
2739 ni = vap->iv_bss;
2770 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
2771 struct ieee80211_node *ni = vap->iv_bss;
2801 vap->iv_flags &= ~IEEE80211_F_PMGTON;
2803 vap->iv_flags |= IEEE80211_F_PMGTON;
2838 vap->iv_flags &= ~IEEE80211_F_WPA;
2853 vap->iv_flags |= IEEE80211_F_WPA1;
2858 vap->iv_flags |= IEEE80211_F_WPA2;
2874 vap->iv_flags |= IEEE80211_F_PRIVACY|IEEE80211_F_DROPUNENC;
2876 vap->iv_flags &= ~(IEEE80211_F_PRIVACY|IEEE80211_F_DROPUNENC);
3045 ndis_del_key(struct ieee80211vap *vap, const struct ieee80211_key *key)
3047 struct ndis_softc *sc = vap->iv_ic->ic_softc;
3057 bcopy(vap->iv_ifp->if_broadcastaddr,
3074 ndis_add_key(struct ieee80211vap *vap, const struct ieee80211_key *key)
3076 struct ndis_softc *sc = vap->iv_ic->ic_softc;
3106 bcopy(vap->iv_bss->ni_bssid,
3213 ndis_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
3215 struct ndis_vap *nvp = NDIS_VAP(vap);
3216 struct ieee80211com *ic = vap->iv_ic;
3221 ieee80211_state_name[vap->iv_state],
3224 ostate = vap->iv_state;
3225 vap->iv_state = nstate;
3231 return nvp->newstate(vap, nstate, arg);
3235 ndis_auth_and_assoc(sc, vap);
3241 ndis_auth_and_assoc(sc, vap);
3242 if (vap->iv_state == IEEE80211_S_AUTH) /* XXX */
3243 ieee80211_new_state(vap, IEEE80211_S_ASSOC, 0);
3255 struct ieee80211vap *vap = arg;
3257 ieee80211_scan_done(vap);
3264 struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
3340 ieee80211_add_scan(vap, ic->ic_curchan, &sp, &wh, 0, rssi, noise);
3352 struct ieee80211vap *vap;
3358 vap = TAILQ_FIRST(&ic->ic_vaps);
3362 ieee80211_cancel_scan(vap);
3384 ieee80211_cancel_scan(vap);
3388 callout_reset(&sc->ndis_scan_callout, hz * 3, ndis_scan, vap);