Lines Matching refs:keyconf

1605 	struct ieee80211_key_conf *keyconf = info->control.hw_key;
1607 switch (keyconf->cipher) {
1610 memcpy(tx_cmd->key, keyconf->key, keyconf->keylen);
1618 ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key);
1627 (TX_CMD_SEC_WEP | (keyconf->keyidx & TX_CMD_SEC_MSK) <<
1630 memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen);
1633 keyconf->keyidx);
1637 IL_ERR("Unknown encode cipher %x\n", keyconf->cipher);
3178 struct ieee80211_key_conf *keyconf)
3181 int idx = keyconf->keyidx;
3201 struct ieee80211_key_conf *keyconf)
3204 int len = keyconf->keylen;
3205 int idx = keyconf->keyidx;
3210 D_WEP("Bad WEP key length %d\n", keyconf->keylen);
3214 keyconf->flags &= ~IEEE80211_KEY_FLAG_GENERATE_IV;
3215 keyconf->hw_key_idx = HW_KEY_DEFAULT;
3216 il->stations[IL_AP_ID].keyinfo.cipher = keyconf->cipher;
3219 memcpy(&il->_4965.wep_keys[idx].key, &keyconf->key, len);
3229 struct ieee80211_key_conf *keyconf, u8 sta_id)
3237 keyconf->flags &= ~IEEE80211_KEY_FLAG_GENERATE_IV;
3240 key_flags |= cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS);
3243 if (keyconf->keylen == WEP_KEY_LEN_128)
3251 il->stations[sta_id].keyinfo.cipher = keyconf->cipher;
3252 il->stations[sta_id].keyinfo.keylen = keyconf->keylen;
3253 il->stations[sta_id].keyinfo.keyidx = keyconf->keyidx;
3255 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen);
3257 memcpy(&il->stations[sta_id].sta.key.key[3], keyconf->key,
3258 keyconf->keylen);
3283 struct ieee80211_key_conf *keyconf, u8 sta_id)
3292 key_flags |= cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS);
3298 keyconf->flags |= IEEE80211_KEY_FLAG_GENERATE_IV;
3301 il->stations[sta_id].keyinfo.cipher = keyconf->cipher;
3302 il->stations[sta_id].keyinfo.keylen = keyconf->keylen;
3304 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen);
3306 memcpy(il->stations[sta_id].sta.key.key, keyconf->key, keyconf->keylen);
3331 struct ieee80211_key_conf *keyconf, u8 sta_id)
3337 key_flags |= cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS);
3343 keyconf->flags |= IEEE80211_KEY_FLAG_GENERATE_IV;
3344 keyconf->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC;
3348 il->stations[sta_id].keyinfo.cipher = keyconf->cipher;
3364 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, 16);
3366 memcpy(il->stations[sta_id].sta.key.key, keyconf->key, 16);
3374 il4965_update_tkip_key(struct il_priv *il, struct ieee80211_key_conf *keyconf,
3409 struct ieee80211_key_conf *keyconf, u8 sta_id)
3424 D_WEP("Remove dynamic key: idx=%d sta=%d\n", keyconf->keyidx, sta_id);
3426 if (keyconf->keyidx != keyidx) {
3437 IL_WARN("Removing wrong key %d 0x%x\n", keyconf->keyidx,
3451 il->stations[sta_id].sta.key.key_offset = keyconf->hw_key_idx;
3469 il4965_set_dynamic_key(struct il_priv *il, struct ieee80211_key_conf *keyconf,
3477 keyconf->hw_key_idx = HW_KEY_DYNAMIC;
3479 switch (keyconf->cipher) {
3482 il4965_set_ccmp_dynamic_key_info(il, keyconf, sta_id);
3486 il4965_set_tkip_dynamic_key_info(il, keyconf, sta_id);
3490 ret = il4965_set_wep_dynamic_key_info(il, keyconf, sta_id);
3494 keyconf->cipher);
3499 keyconf->cipher, keyconf->keylen, keyconf->keyidx, sta_id, ret);
5869 struct ieee80211_key_conf *keyconf,
5876 il4965_update_tkip_key(il, keyconf, sta, iv32, phase1key);