Home
last modified time | relevance | path

Searched refs:wk_flags (Results 1 – 22 of 22) sorted by relevance

/freebsd/sys/net80211/
H A Dieee80211_crypto.c77 if (k->wk_flags & IEEE80211_KEY_GROUP) in null_key_alloc()
386 oflags = key->wk_flags; in ieee80211_crypto_newkey()
426 key->wk_flags = flags; in ieee80211_crypto_newkey()
460 if (key->wk_flags != flags) { in ieee80211_crypto_newkey()
470 oflags, key->wk_flags); in ieee80211_crypto_newkey()
476 key->wk_flags); in ieee80211_crypto_newkey()
487 key->wk_flags |= IEEE80211_KEY_DEVKEY; in ieee80211_crypto_newkey()
503 key->wk_keyix, key->wk_flags, in _ieee80211_crypto_delkey()
591 key->wk_keylen, key->wk_flags); in ieee80211_crypto_setkey()
838 if (k->wk_flags & IEEE80211_KEY_DEVKEY) in load_ucastkey()
[all …]
H A Dieee80211_crypto_tkip.c205 if (is_mgmt && (k->wk_flags & IEEE80211_KEY_NOIVMGT)) in tkip_encap()
207 if ((! is_mgmt) && (k->wk_flags & IEEE80211_KEY_NOIV)) in tkip_encap()
227 if ((k->wk_flags & IEEE80211_KEY_SWENCRYPT) && in tkip_encap()
250 if (is_mgmt && (k->wk_flags & IEEE80211_KEY_NOMICMGT)) in tkip_enmic()
252 if ((! is_mgmt) && (k->wk_flags & IEEE80211_KEY_NOMIC)) in tkip_enmic()
255 if (force || (k->wk_flags & IEEE80211_KEY_SWENMIC)) { in tkip_enmic()
331 (k->wk_flags & IEEE80211_KEY_NOREPLAY) == 0) { in tkip_decap()
353 if ((k->wk_flags & IEEE80211_KEY_SWDECRYPT) && in tkip_decap()
411 if ((k->wk_flags & IEEE80211_KEY_SWDEMIC) || force) { in tkip_demic()
H A Dieee80211_crypto_ccmp.c134 if (k->wk_flags & IEEE80211_KEY_SWENCRYPT) in ccmp_setkey()
182 if (is_mgmt && (k->wk_flags & IEEE80211_KEY_NOIVMGT)) in ccmp_encap()
184 if ((! is_mgmt) && (k->wk_flags & IEEE80211_KEY_NOIV)) in ccmp_encap()
202 if ((k->wk_flags & IEEE80211_KEY_SWENCRYPT) && in ccmp_encap()
265 (k->wk_flags & IEEE80211_KEY_NOREPLAY) == 0) { in ccmp_decap()
281 if ((k->wk_flags & IEEE80211_KEY_SWDECRYPT) && in ccmp_decap()
H A Dieee80211_crypto_wep.c195 if (is_mgmt && (k->wk_flags & IEEE80211_KEY_NOIVMGT)) in wep_encap()
197 if ((! is_mgmt) && (k->wk_flags & IEEE80211_KEY_NOIV)) in wep_encap()
215 if ((k->wk_flags & IEEE80211_KEY_SWENCRYPT) && in wep_encap()
254 if ((k->wk_flags & IEEE80211_KEY_SWDECRYPT) && in wep_decap()
H A Dieee80211_crypto.h78 uint32_t wk_flags; member
266 k->wk_flags = IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV; in ieee80211_crypto_resetkey()
H A Dieee80211_ddb.c966 db_printf(" flags=%b", wk->wk_flags, IEEE80211_KEY_BITS); in _db_show_key()
H A Dieee80211_output.c1366 if (key->wk_flags & (IEEE80211_KEY_SWENCRYPT|IEEE80211_KEY_SWENMIC)) { in ieee80211_mbuf_adjust()
H A Dieee80211_ioctl.c105 ik.ik_flags = wk->wk_flags & (IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV); in ieee80211_ioctl_getkey()
/freebsd/sys/dev/ath/
H A Dif_ath_keycache.c131 if ((k->wk_flags & IEEE80211_KEY_XR) == IEEE80211_KEY_XR) { in ath_keyset_tkip()
157 } else if (k->wk_flags & IEEE80211_KEY_XMIT) { in ath_keyset_tkip()
168 } else if (k->wk_flags & IEEE80211_KEY_RECV) { in ath_keyset_tkip()
209 if ((k->wk_flags & IEEE80211_KEY_SWCRYPT) == 0) { in ath_keyset()
242 (k->wk_flags & IEEE80211_KEY_GROUP) && in ath_keyset()
258 (k->wk_flags & IEEE80211_KEY_SWMIC) == 0) { in ath_keyset()
445 !(k->wk_flags & IEEE80211_KEY_GROUP) || in ath_key_alloc()
470 if (k->wk_flags & IEEE80211_KEY_SWCRYPT) { in ath_key_alloc()
473 (k->wk_flags & IEEE80211_KEY_SWMIC) == 0) { in ath_key_alloc()
503 (k->wk_flags & IEEE80211_KEY_SWMIC) == 0 && sc->sc_splitmic) in ath_key_delete()
[all …]
H A Dif_ath_tx.c1019 if ((k->wk_flags & IEEE80211_KEY_SWMIC) == 0 && !isfrag) in ath_tx_tag_crypto()
H A Dif_ath.c6286 ni->ni_ucastkey.wk_flags |= IEEE80211_KEY_DEVKEY; in ath_setup_stationkey()
/freebsd/sys/dev/rtwn/
H A Dif_rtwn_cam.c120 k->wk_flags |= IEEE80211_KEY_SWCRYPT; in rtwn_key_alloc()
142 k->wk_flags |= IEEE80211_KEY_SWCRYPT; in rtwn_key_alloc()
174 k->wk_flags |= IEEE80211_KEY_SWCRYPT; in rtwn_key_alloc()
218 k->wk_cipher->ic_cipher, algo, k->wk_flags, k->wk_keylen, in rtwn_key_set_cb0()
289 k->wk_keyix, k->wk_flags, ether_sprintf(k->wk_macaddr)); in rtwn_key_del_cb()
306 if (k->wk_flags & IEEE80211_KEY_SWCRYPT) { in rtwn_process_key()
H A Dif_rtwn_tx.c163 if (!(k->wk_flags & IEEE80211_KEY_SWCRYPT)) in rtwn_tx_data()
211 if (!(k->wk_flags & IEEE80211_KEY_SWCRYPT)) in rtwn_tx_raw()
/freebsd/sys/dev/usb/wlan/
H A Dif_rum.c1366 if (k != NULL && !(k->wk_flags & IEEE80211_KEY_SWCRYPT)) { in rum_setup_tx_desc()
1461 if (!(k->wk_flags & IEEE80211_KEY_SWCRYPT)) { in rum_tx_crypto_flags()
1515 if ((k->wk_flags & IEEE80211_KEY_SWCRYPT) && in rum_tx_mgt()
1661 if ((k->wk_flags & IEEE80211_KEY_SWCRYPT) && in rum_tx_data()
2899 (k->wk_flags & IEEE80211_KEY_XMIT) ? "on" : "off", in rum_group_key_set_cb()
2900 (k->wk_flags & IEEE80211_KEY_RECV) ? "on" : "off"); in rum_group_key_set_cb()
2954 (k->wk_flags & IEEE80211_KEY_XMIT) ? "on" : "off", in rum_pair_key_set_cb()
2955 (k->wk_flags & IEEE80211_KEY_RECV) ? "on" : "off"); in rum_pair_key_set_cb()
3011 if (!(k->wk_flags & IEEE80211_KEY_SWCRYPT)) { in rum_key_alloc()
3042 if (k->wk_flags & IEEE80211_KEY_SWCRYPT) { in rum_key_set()
[all …]
H A Dif_run.c2396 (k->wk_flags & IEEE80211_KEY_GROUP) ? "group" : "pairwise", in run_key_set_cb()
2397 (k->wk_flags & IEEE80211_KEY_XMIT) ? "on" : "off", in run_key_set_cb()
2398 (k->wk_flags & IEEE80211_KEY_RECV) ? "on" : "off"); in run_key_set_cb()
2400 if (k->wk_flags & IEEE80211_KEY_GROUP) { in run_key_set_cb()
2422 if (!(k->wk_flags & IEEE80211_KEY_GROUP) || in run_key_set_cb()
2423 (k->wk_flags & (IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV))) { in run_key_set_cb()
2448 if (k->wk_flags & IEEE80211_KEY_GROUP) { in run_key_set_cb()
2523 if (k->wk_flags & IEEE80211_KEY_GROUP) { in run_key_delete_cb()
2567 k0->wk_flags = k->wk_flags; in run_key_delete()
H A Dif_rsu.c1537 k->wk_flags |= IEEE80211_KEY_SWCRYPT; in rsu_key_alloc()
1567 if (k->wk_flags & IEEE80211_KEY_SWCRYPT) { in rsu_process_key()
1726 key.grpkey = (k->wk_flags & IEEE80211_KEY_GROUP) != 0; in rsu_set_key_group()
1732 k->wk_cipher->ic_cipher, key.algo, k->wk_flags, k->wk_keylen, in rsu_set_key_group()
1771 k->wk_flags, k->wk_keylen, ether_sprintf(key.macaddr)); in rsu_set_key_pair()
2845 if (k != NULL && !(k->wk_flags & IEEE80211_KEY_SWENCRYPT)) { in rsu_tx_start()
H A Dif_uath.c2126 if (wk->wk_flags & (IEEE80211_KEY_XMIT|IEEE80211_KEY_RECV)) { in uath_set_keys()
/freebsd/tools/regression/net80211/wep/
H A Dtest_wep.c200 key->wk_flags = IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV; in runtest()
/freebsd/tools/regression/net80211/ccmp/
H A Dtest_ccmp.c606 key->wk_flags = IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV; in runtest()
/freebsd/tools/regression/net80211/tkip/
H A Dtest_tkip.c195 key->wk_flags = IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV; in runtest()
/freebsd/sys/dev/mwl/
H A Dif_mwl.c1521 (k->wk_flags & IEEE80211_KEY_GROUP)) { in mwl_key_alloc()
1590 if (k->wk_flags & IEEE80211_KEY_GROUP) { in addgroupflags()
1591 if (k->wk_flags & IEEE80211_KEY_XMIT) in addgroupflags()
1593 if (k->wk_flags & IEEE80211_KEY_RECV) in addgroupflags()
1617 (((k)->wk_flags & (GRPXMIT|IEEE80211_KEY_RECV)) == \ in _mwl_key_set()
1625 KASSERT((k->wk_flags & IEEE80211_KEY_SWCRYPT) == 0, in _mwl_key_set()
1692 if ((k->wk_flags & IEEE80211_KEY_GROUP) == 0) { in _mwl_key_set()
1705 } else if ((k->wk_flags & GRPXMIT) == GRPXMIT) in _mwl_key_set()
/freebsd/sys/dev/wpi/
H A Dif_wpi.c2834 swcrypt = k->wk_flags & IEEE80211_KEY_SWCRYPT; in wpi_tx_data()
2992 swcrypt = k->wk_flags & IEEE80211_KEY_SWCRYPT; in wpi_tx_data_raw()
4622 if (k->wk_flags & IEEE80211_KEY_GROUP) in wpi_load_key()
4709 if (k->wk_flags & IEEE80211_KEY_GROUP) in wpi_del_key()
4774 if (k->wk_flags & IEEE80211_KEY_SWCRYPT) { in wpi_process_key()
4779 if (!(k->wk_flags & IEEE80211_KEY_RECV)) { in wpi_process_key()