Home
last modified time | relevance | path

Searched refs:keyidx (Results 1 – 21 of 21) sorted by relevance

/drivers/staging/wlan-ng/
Dp80211wep.c179 u8 keyidx; in wep_decrypt() local
188 keyidx = WEP_KEY(iv[3]); in wep_decrypt()
191 keyidx = key_override; in wep_decrypt()
193 if (keyidx >= NUM_WEPKEYS) return -2; in wep_decrypt()
195 keylen = wlandev->wep_keylens[keyidx]; in wep_decrypt()
200 memcpy(key+3, wlandev->wep_keys[keyidx], keylen); in wep_decrypt()
205 …x %02x (%d %d) %02x:%02x:%02x:%02x:%02x\n", len, key[0], key[1], key[2], keyidx, keylen, key[3], k… in wep_decrypt()
/drivers/staging/rtl8187se/ieee80211/
Dieee80211_crypt_tkip.c471 u8 keyidx, *pos; in ieee80211_tkip_decrypt() local
487 keyidx = pos[3]; in ieee80211_tkip_decrypt()
488 if (!(keyidx & (1 << 5))) { in ieee80211_tkip_decrypt()
495 keyidx >>= 6; in ieee80211_tkip_decrypt()
496 if (tkey->key_idx != keyidx) { in ieee80211_tkip_decrypt()
498 "keyidx=%d priv=%p\n", tkey->key_idx, keyidx, priv); in ieee80211_tkip_decrypt()
505 " key\n", MAC_ARG(hdr->addr2), keyidx); in ieee80211_tkip_decrypt()
605 return keyidx; in ieee80211_tkip_decrypt()
759 int keyidx) in ieee80211_michael_mic_failure() argument
766 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in ieee80211_michael_mic_failure()
[all …]
Dieee80211_crypt_ccmp.c317 u8 keyidx, *pos; in ieee80211_ccmp_decrypt() local
335 keyidx = pos[3]; in ieee80211_ccmp_decrypt()
336 if (!(keyidx & (1 << 5))) { in ieee80211_ccmp_decrypt()
344 keyidx >>= 6; in ieee80211_ccmp_decrypt()
345 if (key->key_idx != keyidx) { in ieee80211_ccmp_decrypt()
347 "keyidx=%d priv=%p\n", key->key_idx, keyidx, priv); in ieee80211_ccmp_decrypt()
354 " key\n", MAC_ARG(hdr->addr2), keyidx); in ieee80211_ccmp_decrypt()
416 return keyidx; in ieee80211_ccmp_decrypt()
423 int keyidx; in ieee80211_ccmp_set_key() local
426 keyidx = data->key_idx; in ieee80211_ccmp_set_key()
[all …]
Dieee80211_crypt_wep.c63 static void * prism2_wep_init(int keyidx) in prism2_wep_init() argument
71 priv->key_idx = keyidx; in prism2_wep_init()
247 u8 keyidx, *pos; in prism2_wep_decrypt() local
260 keyidx = *pos++ >> 6; in prism2_wep_decrypt()
261 if (keyidx != wep->key_idx) in prism2_wep_decrypt()
Dieee80211_crypt.h34 void * (*init)(int keyidx);
51 int (*decrypt_msdu)(struct sk_buff *skb, int keyidx, int hdr_len,
Dieee80211_rx.c414 int keyidx, struct ieee80211_crypt_data *crypt) in ieee80211_rx_frame_decrypt_msdu() argument
433 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in ieee80211_rx_frame_decrypt_msdu()
438 ieee->dev->name, MAC_ARG(hdr->addr2), keyidx); in ieee80211_rx_frame_decrypt_msdu()
594 int keyidx = 0; in ieee80211_rx() local
730 (keyidx = hostap_rx_frame_decrypt(ieee, skb, crypt)) < 0) in ieee80211_rx()
857 (keyidx = ieee80211_rx_frame_decrypt(ieee, skb, crypt)) < 0) in ieee80211_rx()
920 ieee80211_rx_frame_decrypt_msdu(ieee, skb, keyidx, crypt)) in ieee80211_rx()
Dieee80211_crypt.c193 static void * ieee80211_crypt_null_init(int keyidx) { return (void *) 1; } in ieee80211_crypt_null_init() argument
/drivers/net/wireless/iwlwifi/
Diwl-sta.c553 if (!test_and_clear_bit(keyconf->keyidx, &priv->ucode_key_table)) in iwl_remove_default_wep_key()
555 keyconf->keyidx); in iwl_remove_default_wep_key()
558 memset(&priv->wep_keys[keyconf->keyidx], 0, sizeof(priv->wep_keys[0])); in iwl_remove_default_wep_key()
561 keyconf->keyidx, ret); in iwl_remove_default_wep_key()
587 if (test_and_set_bit(keyconf->keyidx, &priv->ucode_key_table)) in iwl_set_default_wep_key()
589 keyconf->keyidx); in iwl_set_default_wep_key()
591 priv->wep_keys[keyconf->keyidx].key_size = keyconf->keylen; in iwl_set_default_wep_key()
592 memcpy(&priv->wep_keys[keyconf->keyidx].key, &keyconf->key, in iwl_set_default_wep_key()
597 keyconf->keylen, keyconf->keyidx, ret); in iwl_set_default_wep_key()
615 key_flags |= cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in iwl_set_wep_dynamic_key_info()
[all …]
Diwl-dev.h369 u8 keyidx; member
Diwl-tx.c793 (keyconf->keyidx & TX_CMD_SEC_MSK) << TX_CMD_SEC_SHIFT); in iwl_tx_cmd_build_hwcrypto()
801 "with key %d\n", keyconf->keyidx); in iwl_tx_cmd_build_hwcrypto()
Diwl3945-base.c1312 keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in iwl3945_update_sta_key_info()
/drivers/staging/rtl8187se/
Dieee80211_crypt.h34 void * (*init)(int keyidx);
51 int (*decrypt_msdu)(struct sk_buff *skb, int keyidx, int hdr_len,
/drivers/net/wireless/b43legacy/
Dxmit.c496 unsigned int keyidx; in b43legacy_rx() local
501 keyidx = ((macstat & B43legacy_RX_MAC_KEYIDX) in b43legacy_rx()
506 keyidx = b43legacy_kidx_to_raw(dev, keyidx); in b43legacy_rx()
507 B43legacy_WARN_ON(keyidx >= dev->max_nr_keys); in b43legacy_rx()
509 if (dev->key[keyidx].algorithm != B43legacy_SEC_ALGO_NONE) { in b43legacy_rx()
/drivers/net/wireless/b43/
Dxmit.c567 unsigned int keyidx; in b43_rx() local
570 keyidx = ((macstat & B43_RX_MAC_KEYIDX) in b43_rx()
575 keyidx = b43_kidx_to_raw(dev, keyidx); in b43_rx()
576 B43_WARN_ON(keyidx >= dev->max_nr_keys); in b43_rx()
578 if (dev->key[keyidx].algorithm != B43_SEC_ALGO_NONE) { in b43_rx()
Dmain.c3569 index = (u8) (key->keyidx); in b43_op_set_key()
3619 cmd == SET_KEY ? "Using" : "Disabling", key->keyidx, in b43_op_set_key()
/drivers/net/wireless/ipw2x00/
Dlibipw_rx.c302 struct sk_buff *skb, int keyidx, in ieee80211_rx_frame_decrypt_msdu() argument
315 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in ieee80211_rx_frame_decrypt_msdu()
320 keyidx); in ieee80211_rx_frame_decrypt_msdu()
352 int keyidx = 0; in ieee80211_rx() local
427 keyidx = skb->data[hdrlen + 3] >> 6; in ieee80211_rx()
434 crypt = ieee->crypt_info.crypt[keyidx]; in ieee80211_rx()
472 (keyidx = hostap_rx_frame_decrypt(ieee, skb, crypt)) < 0) { in ieee80211_rx()
575 (keyidx = ieee80211_rx_frame_decrypt(ieee, skb, crypt)) < 0) in ieee80211_rx()
639 ieee80211_rx_frame_decrypt_msdu(ieee, skb, keyidx, crypt)) in ieee80211_rx()
672 keyidx = skb->data[hdrlen + 3] >> 6; in ieee80211_rx()
[all …]
/drivers/net/wireless/hostap/
Dhostap_80211_rx.c690 int keyidx, struct lib80211_crypt_data *crypt) in hostap_rx_frame_decrypt_msdu() argument
702 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in hostap_rx_frame_decrypt_msdu()
707 local->dev->name, hdr->addr2, keyidx); in hostap_rx_frame_decrypt_msdu()
738 int keyidx = 0; in hostap_80211_rx() local
827 (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0) in hostap_80211_rx()
919 (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0) in hostap_80211_rx()
983 hostap_rx_frame_decrypt_msdu(local, skb, keyidx, crypt)) in hostap_80211_rx()
/drivers/net/wireless/
Drndis_wlan.c1546 int keyidx, ret; in rndis_iw_set_encode_ext() local
1549 keyidx = wrqu->encoding.flags & IW_ENCODE_INDEX; in rndis_iw_set_encode_ext()
1552 if (keyidx) in rndis_iw_set_encode_ext()
1553 keyidx--; in rndis_iw_set_encode_ext()
1555 keyidx = priv->encr_tx_key_index; in rndis_iw_set_encode_ext()
1557 if (keyidx < 0 || keyidx >= 4) in rndis_iw_set_encode_ext()
1562 priv->encr_tx_key_index = keyidx; in rndis_iw_set_encode_ext()
1563 return add_wep_key(usbdev, ext->key, ext->key_len, keyidx); in rndis_iw_set_encode_ext()
1568 return remove_key(usbdev, keyidx, NULL); in rndis_iw_set_encode_ext()
1578 ndis_key.index = cpu_to_le32(keyidx); in rndis_iw_set_encode_ext()
[all …]
/drivers/net/wireless/ath5k/
Dbase.c1187 unsigned int pktlen, flags, keyidx = AR5K_TXKEYIX_INVALID; in ath5k_txbuf_setup() local
1204 keyidx = info->control.hw_key->hw_key_idx; in ath5k_txbuf_setup()
1211 info->control.rates[0].count, keyidx, 0, flags, 0, 0); in ath5k_txbuf_setup()
3047 ret = ath5k_hw_set_key(sc->ah, key->keyidx, key, addr); in ath5k_set_key()
3052 __set_bit(key->keyidx, sc->keymap); in ath5k_set_key()
3053 key->hw_key_idx = key->keyidx; in ath5k_set_key()
3058 ath5k_hw_reset_key(sc->ah, key->keyidx); in ath5k_set_key()
3059 __clear_bit(key->keyidx, sc->keymap); in ath5k_set_key()
/drivers/net/wireless/ath9k/
Dmain.c830 idx = key->keyidx; in ath_key_config()
831 } else if (key->keyidx) { in ath_key_config()
839 idx = key->keyidx; in ath_key_config()
/drivers/net/wireless/p54/
Dp54common.c2101 if (key->keyidx > priv->rx_keycache_size) { in p54_set_key()
2123 rxkey->entry = key->keyidx; in p54_set_key()
2124 rxkey->key_id = key->keyidx; in p54_set_key()