Lines Matching defs:key
137 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen);
139 memcpy(il->stations[sta_id].sta.key.key, keyconf->key, keyconf->keylen);
141 if ((il->stations[sta_id].sta.key.
143 il->stations[sta_id].sta.key.key_offset =
145 /* else, we are overriding an existing key => no need to allocated room
148 WARN(il->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET,
149 "no space for a new key");
151 il->stations[sta_id].sta.key.key_flags = key_flags;
155 D_INFO("hwcrypto: modify ucode station key info\n");
186 memset(&il->stations[sta_id].sta.key, 0, sizeof(struct il4965_keyinfo));
187 il->stations[sta_id].sta.key.key_flags = STA_KEY_FLG_NO_ENC;
194 D_INFO("hwcrypto: clear ucode station key info\n");
222 D_WEP("Set dynamic key: alg=%x len=%d idx=%d sta=%d ret=%d\n",
235 il3945_set_static_key(struct il_priv *il, struct ieee80211_key_conf *key)
237 if (key->cipher == WLAN_CIPHER_SUITE_WEP40 ||
238 key->cipher == WLAN_CIPHER_SUITE_WEP104)
241 IL_ERR("Static key invalid: cipher %x\n", key->cipher);
359 memcpy(tx_cmd->key, keyinfo->key, keyinfo->keylen);
375 memcpy(&tx_cmd->key[3], keyinfo->key, keyinfo->keylen);
377 D_TX("Configuring packet for WEP encryption " "with key %d\n",
2911 struct ieee80211_key_conf *key)
2930 !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) {
2951 ret = il3945_set_static_key(il, key);
2953 ret = il3945_set_dynamic_key(il, key, sta_id);
2954 D_MAC80211("enable hwcrypto key\n");
2961 D_MAC80211("disable hwcrypto key\n");