ic_def_txkey
reg |= __SHIFTIN(ic->ic_def_txkey, ATW_MACTEST_KEYID_MASK);
hh->atw_keyid = ic->ic_def_txkey;
rtw_wep_setkeys(sc, ic->ic_nw_keys, ic->ic_def_txkey);
rtw_wep_setkeys(sc, ic->ic_nw_keys, ic->ic_def_txkey);
error = wi_write_val(sc, WI_RID_TX_CRYPT_KEY, ic->ic_def_txkey);
ic->ic_def_txkey);
if (ic->ic_def_txkey == IEEE80211_KEYIX_NONE ||
IEEE80211_KEY_UNDEFINED(ic->ic_nw_keys[ic->ic_def_txkey]))
keylen = ic->ic_nw_keys[ic->ic_def_txkey].wk_keylen;
switch (ic->ic_nw_keys[ic->ic_def_txkey].wk_keylen) {
cmd.WEP_DefaultKeyID = ic->ic_def_txkey;
if (ic->ic_def_txkey == IEEE80211_KEYIX_NONE) {
ic->ic_def_txkey);
keyid = ic->ic_def_txkey;
k = &ic->ic_nw_keys[ic->ic_def_txkey];
ireq->i_val = ic->ic_def_txkey;
ic->ic_def_txkey = kid;
ic->ic_def_txkey = kid;
if (ic->ic_def_txkey != kid) {
ic->ic_def_txkey = kid;
nwkey->i_defkid = ic->ic_def_txkey + 1;
wreq->wi_val[0] = htole16(ic->ic_def_txkey);
ic->ic_def_txkey = i;
if (wk->wk_keyix == ic->ic_def_txkey)
if (ic->ic_def_txkey == IEEE80211_KEYIX_NONE ||
IEEE80211_KEY_UNDEFINED(ic->ic_nw_keys[ic->ic_def_txkey]))
return &ic->ic_nw_keys[ic->ic_def_txkey];
if (ic->ic_def_txkey == IEEE80211_KEYIX_NONE ||
IEEE80211_KEY_UNDEFINED(ic->ic_nw_keys[ic->ic_def_txkey]))
return &ic->ic_nw_keys[ic->ic_def_txkey];
ic->ic_def_txkey);