Home
last modified time | relevance | path

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

12

/drivers/staging/wlan-ng/
Dp80211wep.c156 u8 keyidx; in wep_decrypt() local
166 keyidx = WEP_KEY(iv[3]); in wep_decrypt()
169 keyidx = key_override; in wep_decrypt()
171 if (keyidx >= NUM_WEPKEYS) in wep_decrypt()
174 keylen = wlandev->wep_keylens[keyidx]; in wep_decrypt()
180 memcpy(key + 3, wlandev->wep_keys[keyidx], keylen); in wep_decrypt()
186 keyidx, keylen, 5, key + 3); in wep_decrypt()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_tkip.c391 u8 keyidx, *pos; in ieee80211_tkip_decrypt() local
407 keyidx = pos[3]; in ieee80211_tkip_decrypt()
408 if (!(keyidx & (1 << 5))) { in ieee80211_tkip_decrypt()
415 keyidx >>= 6; in ieee80211_tkip_decrypt()
416 if (tkey->key_idx != keyidx) { in ieee80211_tkip_decrypt()
418 "keyidx=%d priv=%p\n", tkey->key_idx, keyidx, priv); in ieee80211_tkip_decrypt()
425 " key\n", hdr->addr2, keyidx); in ieee80211_tkip_decrypt()
499 return keyidx; in ieee80211_tkip_decrypt()
590 int keyidx) in ieee80211_michael_mic_failure() argument
597 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in ieee80211_michael_mic_failure()
[all …]
Dieee80211_crypt_ccmp.c273 u8 keyidx, *pos; in ieee80211_ccmp_decrypt() local
285 keyidx = pos[3]; in ieee80211_ccmp_decrypt()
286 if (!(keyidx & (1 << 5))) { in ieee80211_ccmp_decrypt()
294 keyidx >>= 6; in ieee80211_ccmp_decrypt()
295 if (key->key_idx != keyidx) { in ieee80211_ccmp_decrypt()
297 "keyidx=%d priv=%p\n", key->key_idx, keyidx, priv); in ieee80211_ccmp_decrypt()
304 " key\n", hdr->addr2, keyidx); in ieee80211_ccmp_decrypt()
371 return keyidx; in ieee80211_ccmp_decrypt()
378 int keyidx; in ieee80211_ccmp_set_key() local
381 keyidx = data->key_idx; in ieee80211_ccmp_set_key()
[all …]
Dieee80211_crypt_wep.c41 static void *prism2_wep_init(int keyidx) in prism2_wep_init() argument
48 priv->key_idx = keyidx; in prism2_wep_init()
177 u8 keyidx, *pos; in prism2_wep_decrypt() local
190 keyidx = *pos++ >> 6; in prism2_wep_decrypt()
191 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,
/drivers/staging/rtl8192e/
Drtllib_crypt_tkip.c381 u8 keyidx, *pos; in rtllib_tkip_decrypt() local
399 keyidx = pos[3]; in rtllib_tkip_decrypt()
400 if (!(keyidx & (1 << 5))) { in rtllib_tkip_decrypt()
407 keyidx >>= 6; in rtllib_tkip_decrypt()
408 if (tkey->key_idx != keyidx) { in rtllib_tkip_decrypt()
410 "keyidx=%d priv=%p\n", tkey->key_idx, keyidx, priv); in rtllib_tkip_decrypt()
417 " key\n", hdr->addr2, keyidx); in rtllib_tkip_decrypt()
494 return keyidx; in rtllib_tkip_decrypt()
581 int keyidx) in rtllib_michael_mic_failure() argument
588 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in rtllib_michael_mic_failure()
[all …]
Drtllib_crypt_ccmp.c265 u8 keyidx, *pos; in rtllib_ccmp_decrypt() local
278 keyidx = pos[3]; in rtllib_ccmp_decrypt()
279 if (!(keyidx & (1 << 5))) { in rtllib_ccmp_decrypt()
287 keyidx >>= 6; in rtllib_ccmp_decrypt()
288 if (key->key_idx != keyidx) { in rtllib_ccmp_decrypt()
290 "keyidx=%d priv=%p\n", key->key_idx, keyidx, priv); in rtllib_ccmp_decrypt()
297 " key\n", hdr->addr2, keyidx); in rtllib_ccmp_decrypt()
358 return keyidx; in rtllib_ccmp_decrypt()
365 int keyidx; in rtllib_ccmp_set_key() local
368 keyidx = data->key_idx; in rtllib_ccmp_set_key()
[all …]
Drtllib_crypt_wep.c36 static void *prism2_wep_init(int keyidx) in prism2_wep_init() argument
43 priv->key_idx = keyidx; in prism2_wep_init()
175 u8 keyidx, *pos; in prism2_wep_decrypt() local
190 keyidx = *pos++ >> 6; in prism2_wep_decrypt()
191 if (keyidx != wep->key_idx) in prism2_wep_decrypt()
/drivers/staging/rtl8712/
Drtl871x_xmit.h51 #define WEP_IV(pattrib_iv, txpn, keyidx)\ argument
56 pattrib_iv[3] = ((keyidx & 0x3)<<6);\
62 #define TKIP_IV(pattrib_iv, txpn, keyidx)\ argument
67 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
76 #define AES_IV(pattrib_iv, txpn, keyidx)\ argument
81 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
/drivers/net/wireless/ath/wcn36xx/
Dsmd.h90 u8 keyidx,
96 u8 keyidx,
101 u8 keyidx,
105 u8 keyidx);
Dmain.c395 cmd, key_conf->cipher, key_conf->keyidx, in wcn36xx_set_key()
450 key_conf->keyidx, in wcn36xx_set_key()
457 key_conf->keyidx, in wcn36xx_set_key()
465 key_conf->keyidx, in wcn36xx_set_key()
476 key_conf->keyidx); in wcn36xx_set_key()
483 key_conf->keyidx, in wcn36xx_set_key()
Dsmd.c1389 u8 keyidx, in wcn36xx_smd_set_stakey() argument
1403 msg_body.set_sta_key_params.key[0].id = keyidx; in wcn36xx_smd_set_stakey()
1430 u8 keyidx, in wcn36xx_smd_set_bsskey() argument
1442 msg_body.keys[0].id = keyidx; in wcn36xx_smd_set_bsskey()
1468 u8 keyidx, in wcn36xx_smd_remove_stakey() argument
1479 msg_body.key_id = keyidx; in wcn36xx_smd_remove_stakey()
1500 u8 keyidx) in wcn36xx_smd_remove_bsskey() argument
1509 msg_body.key_id = keyidx; in wcn36xx_smd_remove_bsskey()
/drivers/staging/rtl8188eu/include/
Drtw_xmit.h53 #define WEP_IV(pattrib_iv, dot11txpn, keyidx)\ argument
58 pattrib_iv[3] = ((keyidx & 0x3)<<6);\
63 #define TKIP_IV(pattrib_iv, dot11txpn, keyidx)\ argument
68 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
76 #define AES_IV(pattrib_iv, dot11txpn, keyidx)\ argument
81 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6); \
/drivers/staging/rtl8723au/include/
Drtw_xmit.h48 #define WEP_IV(pattrib_iv, dot11txpn, keyidx) \ argument
53 pattrib_iv[3] = ((keyidx & 0x3) << 6); \
58 #define TKIP_IV(pattrib_iv, dot11txpn, keyidx) \ argument
63 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6); \
72 #define AES_IV(pattrib_iv, dot11txpn, keyidx)\ argument
77 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3) << 6); \
/drivers/net/wireless/b43legacy/
Dxmit.c481 unsigned int keyidx; in b43legacy_rx() local
486 keyidx = ((macstat & B43legacy_RX_MAC_KEYIDX) in b43legacy_rx()
491 keyidx = b43legacy_kidx_to_raw(dev, keyidx); in b43legacy_rx()
492 B43legacy_WARN_ON(keyidx >= dev->max_nr_keys); in b43legacy_rx()
494 if (dev->key[keyidx].algorithm != B43legacy_SEC_ALGO_NONE) { in b43legacy_rx()
/drivers/net/wireless/ipw2x00/
Dlibipw_rx.c304 struct sk_buff *skb, int keyidx, in libipw_rx_frame_decrypt_msdu() argument
317 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in libipw_rx_frame_decrypt_msdu()
322 keyidx); in libipw_rx_frame_decrypt_msdu()
353 int keyidx = 0; in libipw_rx() local
426 keyidx = skb->data[hdrlen + 3] >> 6; in libipw_rx()
433 crypt = ieee->crypt_info.crypt[keyidx]; in libipw_rx()
471 (keyidx = hostap_rx_frame_decrypt(ieee, skb, crypt)) < 0) { in libipw_rx()
574 (keyidx = libipw_rx_frame_decrypt(ieee, skb, crypt)) < 0) in libipw_rx()
638 libipw_rx_frame_decrypt_msdu(ieee, skb, keyidx, crypt)) in libipw_rx()
671 keyidx = skb->data[hdrlen + 3] >> 6; in libipw_rx()
[all …]
/drivers/net/wireless/iwlwifi/dvm/
Dsta.c1051 keyconf->keyidx); in iwl_remove_default_wep_key()
1053 memset(&ctx->wep_keys[keyconf->keyidx], 0, sizeof(ctx->wep_keys[0])); in iwl_remove_default_wep_key()
1062 keyconf->keyidx, ret); in iwl_remove_default_wep_key()
1084 ctx->wep_keys[keyconf->keyidx].key_size = keyconf->keylen; in iwl_set_default_wep_key()
1085 memcpy(&ctx->wep_keys[keyconf->keyidx].key, &keyconf->key, in iwl_set_default_wep_key()
1090 keyconf->keylen, keyconf->keyidx, ret); in iwl_set_default_wep_key()
1143 key_flags = cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in iwlagn_send_sta_key()
1230 keyconf->keyidx, sta_id); in iwl_remove_dynamic_key()
1236 key_flags = cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in iwl_remove_dynamic_key()
1303 keyconf->cipher, keyconf->keylen, keyconf->keyidx, in iwl_set_dynamic_key()
/drivers/net/wireless/iwlwifi/mvm/
Dsta.c1081 u16 keyidx; in iwl_mvm_send_sta_key() local
1084 keyidx = (keyconf->keyidx << STA_KEY_FLG_KEYID_POS) & in iwl_mvm_send_sta_key()
1086 key_flags = cpu_to_le16(keyidx); in iwl_mvm_send_sta_key()
1143 (keyconf->keyidx != 4 && keyconf->keyidx != 5))) in iwl_mvm_send_sta_igtk()
1146 igtk_cmd.key_id = cpu_to_le32(keyconf->keyidx); in iwl_mvm_send_sta_igtk()
1275 keyconf->cipher, keyconf->keylen, keyconf->keyidx, in iwl_mvm_set_sta_key()
1297 keyconf->keyidx, sta_id); in iwl_mvm_remove_sta_key()
1333 key_flags = cpu_to_le16((keyconf->keyidx << STA_KEY_FLG_KEYID_POS) & in iwl_mvm_remove_sta_key()
/drivers/net/wireless/b43/
Dxmit.c721 unsigned int keyidx; in b43_rx() local
724 keyidx = ((macstat & B43_RX_MAC_KEYIDX) in b43_rx()
729 keyidx = b43_kidx_to_raw(dev, keyidx); in b43_rx()
730 B43_WARN_ON(keyidx >= ARRAY_SIZE(dev->key)); in b43_rx()
732 if (dev->key[keyidx].algorithm != B43_SEC_ALGO_NONE) { in b43_rx()
/drivers/net/wireless/ath/
Dkey.c518 idx = key->keyidx; in ath_key_config()
527 idx = key->keyidx; in ath_key_config()
530 } else if (key->keyidx) { in ath_key_config()
538 idx = key->keyidx; in ath_key_config()
/drivers/net/wireless/hostap/
Dhostap_80211_rx.c689 int keyidx, struct lib80211_crypt_data *crypt) in hostap_rx_frame_decrypt_msdu() argument
701 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv); in hostap_rx_frame_decrypt_msdu()
706 local->dev->name, hdr->addr2, keyidx); in hostap_rx_frame_decrypt_msdu()
736 int keyidx = 0; in hostap_80211_rx() local
824 (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0) in hostap_80211_rx()
913 (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0) in hostap_80211_rx()
977 hostap_rx_frame_decrypt_msdu(local, skb, keyidx, crypt)) in hostap_80211_rx()
/drivers/net/wireless/ath/carl9170/
Dmac.c475 const u8 ktype, const u8 keyidx, const u8 *keydata, in carl9170_upload_key() argument
485 key.keyId = cpu_to_le16(keyidx); in carl9170_upload_key()
/drivers/staging/vt6656/
Dkey.c59 u8 key_inx = key->keyidx; in vnt_set_keymode()
/drivers/net/wireless/ath/ath10k/
Dmac.c43 .key_idx = key->keyidx, in ath10k_send_key()
1904 int ret, keyidx = arvif->def_wep_key_newidx; in ath10k_tx_wep_key_work() local
1911 if (arvif->def_wep_key_idx == keyidx) in ath10k_tx_wep_key_work()
1915 arvif->vdev_id, keyidx); in ath10k_tx_wep_key_work()
1920 keyidx); in ath10k_tx_wep_key_work()
1928 arvif->def_wep_key_idx = keyidx; in ath10k_tx_wep_key_work()
1952 if (key->keyidx == arvif->def_wep_key_idx) in ath10k_tx_h_update_wep_key()
1958 arvif->def_wep_key_newidx = key->keyidx; in ath10k_tx_h_update_wep_key()
3306 key->keyidx); in ath10k_set_key_h_def_keyidx()
3324 if (key->keyidx > WMI_MAX_KEY_INDEX) in ath10k_set_key()
[all …]
/drivers/net/wireless/rsi/
Drsi_91x_mac80211.c585 key->keyidx, in rsi_hal_key_config()
594 key->keyidx, in rsi_hal_key_config()
634 key->hw_key_idx = key->keyidx; in rsi_mac80211_set_key()

12