Lines Matching refs:vap
182 runtest(struct ieee80211vap *vap, struct ciphertest *t)
185 struct ieee80211_key *key = &vap->iv_nw_keys[t->keyix];
199 if (!ieee80211_crypto_newkey(vap, t->cipher,
209 if (!ieee80211_crypto_setkey(vap, key)) {
229 if (!ieee80211_crypto_enmic(vap, key, m, 1)) {
323 if (!ieee80211_crypto_demic(vap, key, m, 1)) {
329 ieee80211_crypto_delkey(vap, key);
335 ieee80211_crypto_delkey(vap, key);
350 struct ieee80211vap vap;
355 memset(&vap, 0, sizeof(vap));
362 vap.iv_ic = ⁣
363 vap.iv_ifp = &ifp;
365 vap.iv_debug = IEEE80211_MSG_CRYPTO;
366 ieee80211_crypto_vattach(&vap);
373 pass += runtest(&vap, &tkiptests[i]);
377 ieee80211_crypto_vdetach(&vap);