Lines Matching refs:vap
188 runtest(struct ieee80211vap *vap, struct ciphertest *t)
190 struct ieee80211_key *key = &vap->iv_nw_keys[t->keyix];
204 if (!ieee80211_crypto_newkey(vap, t->cipher,
212 if (!ieee80211_crypto_setkey(vap, key)) {
255 ctx->wc_vap = vap;
256 ctx->wc_ic = vap->iv_ic;
278 ieee80211_crypto_delkey(vap, key);
284 ieee80211_crypto_delkey(vap, key);
299 struct ieee80211vap vap;
304 memset(&vap, 0, sizeof(vap));
311 vap.iv_ic = ⁣
312 vap.iv_ifp = &ifp;
314 vap.iv_debug = IEEE80211_MSG_CRYPTO;
315 ieee80211_crypto_vattach(&vap);
322 pass += runtest(&vap, &weptests[i]);
326 ieee80211_crypto_vdetach(&vap);