nwkey 1394 dev/ic/an.c an_set_nwkey(struct an_softc *sc, struct ieee80211_nwkey *nwkey) nwkey 1403 dev/ic/an.c switch (nwkey->i_wepon) { nwkey 1411 dev/ic/an.c error = an_set_nwkey_wep(sc, nwkey); nwkey 1429 dev/ic/an.c an_set_nwkey_wep(struct an_softc *sc, struct ieee80211_nwkey *nwkey) nwkey 1440 dev/ic/an.c keys[i].an_wep_keylen = nwkey->i_key[i].i_keylen; nwkey 1448 dev/ic/an.c if ((error = copyin(nwkey->i_key[i].i_keydat, nwkey 1453 dev/ic/an.c txkey = nwkey->i_defkid - 1; nwkey 1467 dev/ic/an.c ((nwkey->i_wepon & IEEE80211_NWKEY_PERSIST) ? "persist: " : ""), nwkey 1477 dev/ic/an.c if (!(nwkey->i_wepon & IEEE80211_NWKEY_PERSIST)) { nwkey 1535 dev/ic/an.c an_get_nwkey(struct an_softc *sc, struct ieee80211_nwkey *nwkey) nwkey 1541 dev/ic/an.c nwkey->i_wepon = IEEE80211_NWKEY_EAP; nwkey 1543 dev/ic/an.c nwkey->i_wepon = IEEE80211_NWKEY_WEP; nwkey 1545 dev/ic/an.c nwkey->i_wepon = IEEE80211_NWKEY_OPEN; nwkey 1547 dev/ic/an.c nwkey->i_defkid = sc->sc_tx_perskey + 1; nwkey 1549 dev/ic/an.c nwkey->i_defkid = sc->sc_tx_key + 1; nwkey 1550 dev/ic/an.c if (nwkey->i_key[0].i_keydat == NULL) nwkey 1553 dev/ic/an.c if (nwkey->i_key[i].i_keydat == NULL) nwkey 1558 dev/ic/an.c nwkey->i_key[i].i_keylen = sc->sc_wepkeys[i].an_wep_keylen; nwkey 1559 dev/ic/an.c if (nwkey->i_key[i].i_keylen < 0) { nwkey 1561 dev/ic/an.c nwkey->i_key[i].i_keylen = 0; nwkey 1565 dev/ic/an.c nwkey->i_key[i].i_keydat, nwkey 160 dev/ic/awi_wep.c awi_wep_setnwkey(sc, nwkey) nwkey 162 dev/ic/awi_wep.c struct ieee80211_nwkey *nwkey; nwkey 167 dev/ic/awi_wep.c if (nwkey->i_defkid <= 0 || nwkey 168 dev/ic/awi_wep.c nwkey->i_defkid > IEEE80211_WEP_NKID) nwkey 172 dev/ic/awi_wep.c if (nwkey->i_key[i].i_keydat == NULL) nwkey 174 dev/ic/awi_wep.c len = nwkey->i_key[i].i_keylen; nwkey 179 dev/ic/awi_wep.c error = copyin(nwkey->i_key[i].i_keydat, keybuf, len); nwkey 187 dev/ic/awi_wep.c sc->sc_wep_defkid = nwkey->i_defkid - 1; nwkey 188 dev/ic/awi_wep.c error = awi_wep_setalgo(sc, nwkey->i_wepon); nwkey 198 dev/ic/awi_wep.c awi_wep_getnwkey(sc, nwkey) nwkey 200 dev/ic/awi_wep.c struct ieee80211_nwkey *nwkey; nwkey 205 dev/ic/awi_wep.c nwkey->i_wepon = awi_wep_getalgo(sc); nwkey 206 dev/ic/awi_wep.c nwkey->i_defkid = sc->sc_wep_defkid + 1; nwkey 219 dev/ic/awi_wep.c if (nwkey->i_key[i].i_keydat == NULL) nwkey 229 dev/ic/awi_wep.c if (nwkey->i_key[i].i_keylen < len) { nwkey 233 dev/ic/awi_wep.c nwkey->i_key[i].i_keylen = len; nwkey 234 dev/ic/awi_wep.c error = copyout(keybuf, nwkey->i_key[i].i_keydat, len); nwkey 3000 dev/ic/if_wi.c wi_set_nwkey(struct wi_softc *sc, struct ieee80211_nwkey *nwkey) nwkey 3008 dev/ic/if_wi.c if (nwkey->i_defkid <= 0 || nwkey->i_defkid > IEEE80211_WEP_NKID) nwkey 3012 dev/ic/if_wi.c if (nwkey->i_key[i].i_keydat == NULL) nwkey 3014 dev/ic/if_wi.c len = nwkey->i_key[i].i_keylen; nwkey 3017 dev/ic/if_wi.c error = copyin(nwkey->i_key[i].i_keydat, nwkey 3036 dev/ic/if_wi.c wreq.wi_val[0] = htole16(nwkey->i_defkid - 1); nwkey 3046 dev/ic/if_wi.c wreq.wi_val[0] = htole16(nwkey->i_wepon); nwkey 3061 dev/ic/if_wi.c wi_get_nwkey(struct wi_softc *sc, struct ieee80211_nwkey *nwkey) nwkey 3068 dev/ic/if_wi.c nwkey->i_wepon = sc->wi_use_wep; nwkey 3069 dev/ic/if_wi.c nwkey->i_defkid = sc->wi_tx_key + 1; nwkey 3074 dev/ic/if_wi.c if (nwkey->i_key[i].i_keydat == NULL) nwkey 3080 dev/ic/if_wi.c if (nwkey->i_key[i].i_keylen < len) nwkey 3082 dev/ic/if_wi.c nwkey->i_key[i].i_keylen = len; nwkey 3084 dev/ic/if_wi.c nwkey->i_key[i].i_keydat, len); nwkey 141 net80211/ieee80211_ioctl.c struct ieee80211_nwkey *nwkey; nwkey 197 net80211/ieee80211_ioctl.c nwkey = (struct ieee80211_nwkey *)data; nwkey 199 net80211/ieee80211_ioctl.c nwkey->i_wepon != IEEE80211_NWKEY_OPEN) { nwkey 206 net80211/ieee80211_ioctl.c keys[i].k_len = nwkey->i_key[i].i_keylen; nwkey 217 net80211/ieee80211_ioctl.c if ((error = copyin(nwkey->i_key[i].i_keydat, nwkey 223 net80211/ieee80211_ioctl.c i = nwkey->i_defkid - 1; nwkey 227 net80211/ieee80211_ioctl.c if (nwkey->i_wepon != IEEE80211_NWKEY_OPEN) { nwkey 234 net80211/ieee80211_ioctl.c if (nwkey->i_wepon == IEEE80211_NWKEY_OPEN) nwkey 254 net80211/ieee80211_ioctl.c nwkey = (struct ieee80211_nwkey *)data; nwkey 256 net80211/ieee80211_ioctl.c nwkey->i_wepon = IEEE80211_NWKEY_WEP; nwkey 258 net80211/ieee80211_ioctl.c nwkey->i_wepon = IEEE80211_NWKEY_OPEN; nwkey 259 net80211/ieee80211_ioctl.c nwkey->i_defkid = ic->ic_wep_txkey + 1; nwkey 261 net80211/ieee80211_ioctl.c if (nwkey->i_key[i].i_keydat == NULL) nwkey 266 net80211/ieee80211_ioctl.c nwkey->i_key[i].i_keylen = ic->ic_nw_keys[i].k_len; nwkey 268 net80211/ieee80211_ioctl.c nwkey->i_key[i].i_keydat,