Lines Matching refs:keyconf

1602 	struct ieee80211_key_conf *keyconf = info->control.hw_key;  in il4965_tx_cmd_build_hwcrypto()  local
1604 switch (keyconf->cipher) { in il4965_tx_cmd_build_hwcrypto()
1607 memcpy(tx_cmd->key, keyconf->key, keyconf->keylen); in il4965_tx_cmd_build_hwcrypto()
1615 ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); in il4965_tx_cmd_build_hwcrypto()
1624 (TX_CMD_SEC_WEP | (keyconf->keyidx & TX_CMD_SEC_MSK) << in il4965_tx_cmd_build_hwcrypto()
1627 memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); in il4965_tx_cmd_build_hwcrypto()
1630 keyconf->keyidx); in il4965_tx_cmd_build_hwcrypto()
1634 IL_ERR("Unknown encode cipher %x\n", keyconf->cipher); in il4965_tx_cmd_build_hwcrypto()
3175 struct ieee80211_key_conf *keyconf) in il4965_remove_default_wep_key() argument
3178 int idx = keyconf->keyidx; in il4965_remove_default_wep_key()
3198 struct ieee80211_key_conf *keyconf) in il4965_set_default_wep_key() argument
3201 int len = keyconf->keylen; in il4965_set_default_wep_key()
3202 int idx = keyconf->keyidx; in il4965_set_default_wep_key()
3207 D_WEP("Bad WEP key length %d\n", keyconf->keylen); in il4965_set_default_wep_key()
3211 keyconf->flags &= ~IEEE80211_KEY_FLAG_GENERATE_IV; in il4965_set_default_wep_key()
3212 keyconf->hw_key_idx = HW_KEY_DEFAULT; in il4965_set_default_wep_key()
3213 il->stations[IL_AP_ID].keyinfo.cipher = keyconf->cipher; in il4965_set_default_wep_key()
3216 memcpy(&il->_4965.wep_keys[idx].key, &keyconf->key, len); in il4965_set_default_wep_key()
3226 struct ieee80211_key_conf *keyconf, u8 sta_id) in il4965_set_wep_dynamic_key_info() argument
3234 keyconf->flags &= ~IEEE80211_KEY_FLAG_GENERATE_IV; in il4965_set_wep_dynamic_key_info()
3237 key_flags |= cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in il4965_set_wep_dynamic_key_info()
3240 if (keyconf->keylen == WEP_KEY_LEN_128) in il4965_set_wep_dynamic_key_info()
3248 il->stations[sta_id].keyinfo.cipher = keyconf->cipher; in il4965_set_wep_dynamic_key_info()
3249 il->stations[sta_id].keyinfo.keylen = keyconf->keylen; in il4965_set_wep_dynamic_key_info()
3250 il->stations[sta_id].keyinfo.keyidx = keyconf->keyidx; in il4965_set_wep_dynamic_key_info()
3252 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen); in il4965_set_wep_dynamic_key_info()
3254 memcpy(&il->stations[sta_id].sta.key.key[3], keyconf->key, in il4965_set_wep_dynamic_key_info()
3255 keyconf->keylen); in il4965_set_wep_dynamic_key_info()
3280 struct ieee80211_key_conf *keyconf, u8 sta_id) in il4965_set_ccmp_dynamic_key_info() argument
3289 key_flags |= cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in il4965_set_ccmp_dynamic_key_info()
3295 keyconf->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; in il4965_set_ccmp_dynamic_key_info()
3298 il->stations[sta_id].keyinfo.cipher = keyconf->cipher; in il4965_set_ccmp_dynamic_key_info()
3299 il->stations[sta_id].keyinfo.keylen = keyconf->keylen; in il4965_set_ccmp_dynamic_key_info()
3301 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen); in il4965_set_ccmp_dynamic_key_info()
3303 memcpy(il->stations[sta_id].sta.key.key, keyconf->key, keyconf->keylen); in il4965_set_ccmp_dynamic_key_info()
3328 struct ieee80211_key_conf *keyconf, u8 sta_id) in il4965_set_tkip_dynamic_key_info() argument
3334 key_flags |= cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in il4965_set_tkip_dynamic_key_info()
3340 keyconf->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; in il4965_set_tkip_dynamic_key_info()
3341 keyconf->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; in il4965_set_tkip_dynamic_key_info()
3345 il->stations[sta_id].keyinfo.cipher = keyconf->cipher; in il4965_set_tkip_dynamic_key_info()
3361 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, 16); in il4965_set_tkip_dynamic_key_info()
3363 memcpy(il->stations[sta_id].sta.key.key, keyconf->key, 16); in il4965_set_tkip_dynamic_key_info()
3371 il4965_update_tkip_key(struct il_priv *il, struct ieee80211_key_conf *keyconf, in il4965_update_tkip_key() argument
3406 struct ieee80211_key_conf *keyconf, u8 sta_id) in il4965_remove_dynamic_key() argument
3421 D_WEP("Remove dynamic key: idx=%d sta=%d\n", keyconf->keyidx, sta_id); in il4965_remove_dynamic_key()
3423 if (keyconf->keyidx != keyidx) { in il4965_remove_dynamic_key()
3434 IL_WARN("Removing wrong key %d 0x%x\n", keyconf->keyidx, in il4965_remove_dynamic_key()
3448 il->stations[sta_id].sta.key.key_offset = keyconf->hw_key_idx; in il4965_remove_dynamic_key()
3466 il4965_set_dynamic_key(struct il_priv *il, struct ieee80211_key_conf *keyconf, in il4965_set_dynamic_key() argument
3474 keyconf->hw_key_idx = HW_KEY_DYNAMIC; in il4965_set_dynamic_key()
3476 switch (keyconf->cipher) { in il4965_set_dynamic_key()
3479 il4965_set_ccmp_dynamic_key_info(il, keyconf, sta_id); in il4965_set_dynamic_key()
3483 il4965_set_tkip_dynamic_key_info(il, keyconf, sta_id); in il4965_set_dynamic_key()
3487 ret = il4965_set_wep_dynamic_key_info(il, keyconf, sta_id); in il4965_set_dynamic_key()
3491 keyconf->cipher); in il4965_set_dynamic_key()
3496 keyconf->cipher, keyconf->keylen, keyconf->keyidx, sta_id, ret); in il4965_set_dynamic_key()
5872 struct ieee80211_key_conf *keyconf, in il4965_mac_update_tkip_key() argument
5879 il4965_update_tkip_key(il, keyconf, sta, iv32, phase1key); in il4965_mac_update_tkip_key()