Lines Matching refs:keyconf

1601 	struct ieee80211_key_conf *keyconf = info->control.hw_key;  in il4965_tx_cmd_build_hwcrypto()  local
1603 switch (keyconf->cipher) { in il4965_tx_cmd_build_hwcrypto()
1606 memcpy(tx_cmd->key, keyconf->key, keyconf->keylen); in il4965_tx_cmd_build_hwcrypto()
1614 ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); in il4965_tx_cmd_build_hwcrypto()
1623 (TX_CMD_SEC_WEP | (keyconf->keyidx & TX_CMD_SEC_MSK) << in il4965_tx_cmd_build_hwcrypto()
1626 memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); in il4965_tx_cmd_build_hwcrypto()
1629 keyconf->keyidx); in il4965_tx_cmd_build_hwcrypto()
1633 IL_ERR("Unknown encode cipher %x\n", keyconf->cipher); in il4965_tx_cmd_build_hwcrypto()
3176 struct ieee80211_key_conf *keyconf) in il4965_remove_default_wep_key() argument
3179 int idx = keyconf->keyidx; in il4965_remove_default_wep_key()
3199 struct ieee80211_key_conf *keyconf) in il4965_set_default_wep_key() argument
3202 int len = keyconf->keylen; in il4965_set_default_wep_key()
3203 int idx = keyconf->keyidx; in il4965_set_default_wep_key()
3208 D_WEP("Bad WEP key length %d\n", keyconf->keylen); in il4965_set_default_wep_key()
3212 keyconf->flags &= ~IEEE80211_KEY_FLAG_GENERATE_IV; in il4965_set_default_wep_key()
3213 keyconf->hw_key_idx = HW_KEY_DEFAULT; in il4965_set_default_wep_key()
3214 il->stations[IL_AP_ID].keyinfo.cipher = keyconf->cipher; in il4965_set_default_wep_key()
3217 memcpy(&il->_4965.wep_keys[idx].key, &keyconf->key, len); in il4965_set_default_wep_key()
3227 struct ieee80211_key_conf *keyconf, u8 sta_id) in il4965_set_wep_dynamic_key_info() argument
3235 keyconf->flags &= ~IEEE80211_KEY_FLAG_GENERATE_IV; in il4965_set_wep_dynamic_key_info()
3238 key_flags |= cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in il4965_set_wep_dynamic_key_info()
3241 if (keyconf->keylen == WEP_KEY_LEN_128) in il4965_set_wep_dynamic_key_info()
3249 il->stations[sta_id].keyinfo.cipher = keyconf->cipher; in il4965_set_wep_dynamic_key_info()
3250 il->stations[sta_id].keyinfo.keylen = keyconf->keylen; in il4965_set_wep_dynamic_key_info()
3251 il->stations[sta_id].keyinfo.keyidx = keyconf->keyidx; in il4965_set_wep_dynamic_key_info()
3253 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen); in il4965_set_wep_dynamic_key_info()
3255 memcpy(&il->stations[sta_id].sta.key.key[3], keyconf->key, in il4965_set_wep_dynamic_key_info()
3256 keyconf->keylen); in il4965_set_wep_dynamic_key_info()
3281 struct ieee80211_key_conf *keyconf, u8 sta_id) in il4965_set_ccmp_dynamic_key_info() argument
3290 key_flags |= cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in il4965_set_ccmp_dynamic_key_info()
3296 keyconf->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; in il4965_set_ccmp_dynamic_key_info()
3299 il->stations[sta_id].keyinfo.cipher = keyconf->cipher; in il4965_set_ccmp_dynamic_key_info()
3300 il->stations[sta_id].keyinfo.keylen = keyconf->keylen; in il4965_set_ccmp_dynamic_key_info()
3302 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen); in il4965_set_ccmp_dynamic_key_info()
3304 memcpy(il->stations[sta_id].sta.key.key, keyconf->key, keyconf->keylen); in il4965_set_ccmp_dynamic_key_info()
3329 struct ieee80211_key_conf *keyconf, u8 sta_id) in il4965_set_tkip_dynamic_key_info() argument
3335 key_flags |= cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in il4965_set_tkip_dynamic_key_info()
3341 keyconf->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; in il4965_set_tkip_dynamic_key_info()
3342 keyconf->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; in il4965_set_tkip_dynamic_key_info()
3346 il->stations[sta_id].keyinfo.cipher = keyconf->cipher; in il4965_set_tkip_dynamic_key_info()
3362 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, 16); in il4965_set_tkip_dynamic_key_info()
3364 memcpy(il->stations[sta_id].sta.key.key, keyconf->key, 16); in il4965_set_tkip_dynamic_key_info()
3372 il4965_update_tkip_key(struct il_priv *il, struct ieee80211_key_conf *keyconf, in il4965_update_tkip_key() argument
3407 struct ieee80211_key_conf *keyconf, u8 sta_id) in il4965_remove_dynamic_key() argument
3422 D_WEP("Remove dynamic key: idx=%d sta=%d\n", keyconf->keyidx, sta_id); in il4965_remove_dynamic_key()
3424 if (keyconf->keyidx != keyidx) { in il4965_remove_dynamic_key()
3435 IL_WARN("Removing wrong key %d 0x%x\n", keyconf->keyidx, in il4965_remove_dynamic_key()
3449 il->stations[sta_id].sta.key.key_offset = keyconf->hw_key_idx; in il4965_remove_dynamic_key()
3467 il4965_set_dynamic_key(struct il_priv *il, struct ieee80211_key_conf *keyconf, in il4965_set_dynamic_key() argument
3475 keyconf->hw_key_idx = HW_KEY_DYNAMIC; in il4965_set_dynamic_key()
3477 switch (keyconf->cipher) { in il4965_set_dynamic_key()
3480 il4965_set_ccmp_dynamic_key_info(il, keyconf, sta_id); in il4965_set_dynamic_key()
3484 il4965_set_tkip_dynamic_key_info(il, keyconf, sta_id); in il4965_set_dynamic_key()
3488 ret = il4965_set_wep_dynamic_key_info(il, keyconf, sta_id); in il4965_set_dynamic_key()
3492 keyconf->cipher); in il4965_set_dynamic_key()
3497 keyconf->cipher, keyconf->keylen, keyconf->keyidx, sta_id, ret); in il4965_set_dynamic_key()
5873 struct ieee80211_key_conf *keyconf, in il4965_mac_update_tkip_key() argument
5880 il4965_update_tkip_key(il, keyconf, sta, iv32, phase1key); in il4965_mac_update_tkip_key()