/drivers/staging/rtl8192e/ |
D | rtllib_crypt_tkip.c | 381 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() 408 keyidx >>= 6; in rtllib_tkip_decrypt() 409 if (tkey->key_idx != keyidx) { in rtllib_tkip_decrypt() 412 tkey->key_idx, keyidx, priv); in rtllib_tkip_decrypt() 419 hdr->addr2, keyidx); in rtllib_tkip_decrypt() 499 return keyidx; in rtllib_tkip_decrypt() 586 int keyidx) in rtllib_michael_mic_failure() argument 593 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in rtllib_michael_mic_failure() [all …]
|
D | rtllib_crypt_ccmp.c | 262 u8 keyidx, *pos; in rtllib_ccmp_decrypt() local 275 keyidx = pos[3]; in rtllib_ccmp_decrypt() 276 if (!(keyidx & (1 << 5))) { in rtllib_ccmp_decrypt() 284 keyidx >>= 6; in rtllib_ccmp_decrypt() 285 if (key->key_idx != keyidx) { in rtllib_ccmp_decrypt() 287 key->key_idx, keyidx, priv); in rtllib_ccmp_decrypt() 293 hdr->addr2, keyidx); in rtllib_ccmp_decrypt() 354 return keyidx; in rtllib_ccmp_decrypt() 361 int keyidx; in rtllib_ccmp_set_key() local 364 keyidx = data->key_idx; in rtllib_ccmp_set_key() [all …]
|
D | rtllib_crypt_wep.c | 36 static void *prism2_wep_init(int keyidx) in prism2_wep_init() argument 43 priv->key_idx = keyidx; in prism2_wep_init() 173 u8 keyidx, *pos; in prism2_wep_decrypt() local 188 keyidx = *pos++ >> 6; in prism2_wep_decrypt() 189 if (keyidx != wep->key_idx) in prism2_wep_decrypt()
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_tkip.c | 388 u8 keyidx, *pos; in ieee80211_tkip_decrypt() local 405 keyidx = pos[3]; in ieee80211_tkip_decrypt() 406 if (!(keyidx & (1 << 5))) { in ieee80211_tkip_decrypt() 413 keyidx >>= 6; in ieee80211_tkip_decrypt() 414 if (tkey->key_idx != keyidx) { in ieee80211_tkip_decrypt() 416 "keyidx=%d priv=%p\n", tkey->key_idx, keyidx, priv); in ieee80211_tkip_decrypt() 423 " key\n", hdr->addr2, keyidx); in ieee80211_tkip_decrypt() 501 return keyidx; in ieee80211_tkip_decrypt() 591 int keyidx) in ieee80211_michael_mic_failure() argument 598 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in ieee80211_michael_mic_failure() [all …]
|
D | ieee80211_crypt_ccmp.c | 271 u8 keyidx, *pos; in ieee80211_ccmp_decrypt() local 283 keyidx = pos[3]; in ieee80211_ccmp_decrypt() 284 if (!(keyidx & (1 << 5))) { in ieee80211_ccmp_decrypt() 292 keyidx >>= 6; in ieee80211_ccmp_decrypt() 293 if (key->key_idx != keyidx) { in ieee80211_ccmp_decrypt() 295 key->key_idx, keyidx, priv); in ieee80211_ccmp_decrypt() 301 hdr->addr2, keyidx); in ieee80211_ccmp_decrypt() 366 return keyidx; in ieee80211_ccmp_decrypt() 373 int keyidx; in ieee80211_ccmp_set_key() local 376 keyidx = data->key_idx; in ieee80211_ccmp_set_key() [all …]
|
D | ieee80211_crypt_wep.c | 40 static void *prism2_wep_init(int keyidx) in prism2_wep_init() argument 47 priv->key_idx = keyidx; in prism2_wep_init() 162 u8 keyidx, *pos; in prism2_wep_decrypt() local 176 keyidx = *pos++ >> 6; in prism2_wep_decrypt() 177 if (keyidx != wep->key_idx) in prism2_wep_decrypt()
|
D | ieee80211_crypt.h | 34 void * (*init)(int keyidx); 51 int (*decrypt_msdu)(struct sk_buff *skb, int keyidx, int hdr_len,
|
/drivers/staging/wlan-ng/ |
D | p80211wep.c | 151 u8 keyidx; in wep_decrypt() local 161 keyidx = WEP_KEY(iv[3]); in wep_decrypt() 164 keyidx = key_override; in wep_decrypt() 166 if (keyidx >= NUM_WEPKEYS) in wep_decrypt() 169 keylen = wlandev->wep_keylens[keyidx]; in wep_decrypt() 175 memcpy(key + 3, wlandev->wep_keys[keyidx], keylen); in wep_decrypt()
|
/drivers/staging/rtl8712/ |
D | rtl871x_xmit.h | 51 #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/ |
D | smd.h | 90 u8 keyidx, 96 u8 keyidx, 101 u8 keyidx, 105 u8 keyidx);
|
D | main.c | 399 cmd, key_conf->cipher, key_conf->keyidx, in wcn36xx_set_key() 454 key_conf->keyidx, in wcn36xx_set_key() 461 key_conf->keyidx, in wcn36xx_set_key() 469 key_conf->keyidx, in wcn36xx_set_key() 480 key_conf->keyidx); in wcn36xx_set_key() 487 key_conf->keyidx, in wcn36xx_set_key()
|
D | smd.c | 1456 u8 keyidx, in wcn36xx_smd_set_stakey() argument 1470 msg_body.set_sta_key_params.key[0].id = keyidx; in wcn36xx_smd_set_stakey() 1497 u8 keyidx, in wcn36xx_smd_set_bsskey() argument 1509 msg_body.keys[0].id = keyidx; in wcn36xx_smd_set_bsskey() 1535 u8 keyidx, in wcn36xx_smd_remove_stakey() argument 1546 msg_body.key_id = keyidx; in wcn36xx_smd_remove_stakey() 1567 u8 keyidx) in wcn36xx_smd_remove_bsskey() argument 1576 msg_body.key_id = keyidx; in wcn36xx_smd_remove_bsskey()
|
/drivers/staging/rtl8188eu/include/ |
D | rtw_xmit.h | 53 #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/ |
D | rtw_xmit.h | 48 #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/ |
D | xmit.c | 481 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/ |
D | libipw_rx.c | 304 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/ |
D | sta.c | 1018 keyconf->keyidx); in iwl_remove_default_wep_key() 1020 memset(&ctx->wep_keys[keyconf->keyidx], 0, sizeof(ctx->wep_keys[0])); in iwl_remove_default_wep_key() 1029 keyconf->keyidx, ret); in iwl_remove_default_wep_key() 1051 ctx->wep_keys[keyconf->keyidx].key_size = keyconf->keylen; in iwl_set_default_wep_key() 1052 memcpy(&ctx->wep_keys[keyconf->keyidx].key, &keyconf->key, in iwl_set_default_wep_key() 1057 keyconf->keylen, keyconf->keyidx, ret); in iwl_set_default_wep_key() 1110 key_flags = cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in iwlagn_send_sta_key() 1197 keyconf->keyidx, sta_id); in iwl_remove_dynamic_key() 1203 key_flags = cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in iwl_remove_dynamic_key() 1270 keyconf->cipher, keyconf->keylen, keyconf->keyidx, in iwl_set_dynamic_key()
|
/drivers/net/wireless/b43/ |
D | xmit.c | 721 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/iwlwifi/mvm/ |
D | sta.c | 1251 u16 keyidx; in iwl_mvm_send_sta_key() local 1255 keyidx = (keyconf->keyidx << STA_KEY_FLG_KEYID_POS) & in iwl_mvm_send_sta_key() 1257 key_flags = cpu_to_le16(keyidx); in iwl_mvm_send_sta_key() 1321 (keyconf->keyidx != 4 && keyconf->keyidx != 5))) in iwl_mvm_send_sta_igtk() 1324 igtk_cmd.key_id = cpu_to_le32(keyconf->keyidx); in iwl_mvm_send_sta_igtk() 1419 key_flags = cpu_to_le16((keyconf->keyidx << STA_KEY_FLG_KEYID_POS) & in __iwl_mvm_remove_sta_key() 1531 keyconf->cipher, keyconf->keylen, keyconf->keyidx, in iwl_mvm_set_sta_key() 1551 keyconf->keyidx, sta_id); in iwl_mvm_remove_sta_key()
|
/drivers/net/wireless/ath/ |
D | key.c | 518 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/ |
D | hostap_80211_rx.c | 689 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/ath10k/ |
D | mac.h | 58 u8 keyidx);
|
/drivers/net/wireless/ath/carl9170/ |
D | mac.c | 475 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/ |
D | key.c | 59 u8 key_inx = key->keyidx; in vnt_set_keymode()
|
/drivers/staging/vt6655/ |
D | key.c | 53 u8 key_inx = key->keyidx; in vnt_set_keymode()
|