Lines Matching defs:key
317 * keys, so we should use the same function for both key types.
321 struct ieee80211_key_conf *key)
329 * Disallow to set WEP key other than with index 0,
333 if ((key->cipher == WLAN_CIPHER_SUITE_WEP40 ||
334 key->cipher == WLAN_CIPHER_SUITE_WEP104) &&
335 key->keyidx != 0)
339 * Pairwise key will always be entry 0, but this
340 * could collide with a shared key on the same
354 key->hw_key_idx += reg ? ffz(reg) : 0;
358 * If this is not the first key, compare the cipher with the
361 if (key->hw_key_idx > 0 && crypto->cipher != curr_cipher)
364 rt2500usb_register_multiwrite(rt2x00dev, KEY_ENTRY(key->hw_key_idx),
365 crypto->key, sizeof(crypto->key));
376 key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV;
377 key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC;
382 * a particular key is valid.
390 mask |= 1 << key->hw_key_idx;
392 mask &= ~(1 << key->hw_key_idx);