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

12

/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_crypt.h34 void * (*init)(int keyidx);
40 * value from decrypt_mpdu is passed as the keyidx value for
51 int (*decrypt_msdu)(struct sk_buff *skb, int keyidx, int hdr_len,
H A Dieee80211_crypt_ccmp.c273 u8 keyidx, *pos; local
285 keyidx = pos[3];
286 if (!(keyidx & (1 << 5))) {
294 keyidx >>= 6;
295 if (key->key_idx != keyidx) {
297 "keyidx=%d priv=%p\n", key->key_idx, keyidx, priv);
304 " key\n", hdr->addr2, keyidx);
371 return keyidx;
378 int keyidx; local
[all...]
H A Dieee80211_crypt_wep.c41 static void *prism2_wep_init(int keyidx) argument
48 priv->key_idx = keyidx;
177 u8 keyidx, *pos; local
190 keyidx = *pos++ >> 6;
191 if (keyidx != wep->key_idx)
H A Dieee80211_crypt_tkip.c391 u8 keyidx, *pos; local
407 keyidx = pos[3];
408 if (!(keyidx & (1 << 5))) {
415 keyidx >>= 6;
416 if (tkey->key_idx != keyidx) {
418 "keyidx=%d priv=%p\n", tkey->key_idx, keyidx, priv);
425 " key\n", hdr->addr2, keyidx);
499 return keyidx;
590 int keyidx)
588 ieee80211_michael_mic_failure(struct net_device *dev, struct ieee80211_hdr_4addr *hdr, int keyidx) argument
609 ieee80211_michael_mic_verify(struct sk_buff *skb, int keyidx, int hdr_len, void *priv) argument
659 int keyidx; local
[all...]
H A Dieee80211_crypt.c185 static void *ieee80211_crypt_null_init(int keyidx) { return (void *) 1; } argument
/drivers/net/wireless/ath/wcn36xx/
H A Dsmd.h90 u8 keyidx,
96 u8 keyidx,
101 u8 keyidx,
105 u8 keyidx);
H A Dmain.c395 cmd, key_conf->cipher, key_conf->keyidx,
450 key_conf->keyidx,
457 key_conf->keyidx,
465 key_conf->keyidx,
476 key_conf->keyidx);
483 key_conf->keyidx,
/drivers/staging/rtl8192e/
H A Drtllib_crypt_ccmp.c265 u8 keyidx, *pos; local
278 keyidx = pos[3];
279 if (!(keyidx & (1 << 5))) {
287 keyidx >>= 6;
288 if (key->key_idx != keyidx) {
290 "keyidx=%d priv=%p\n", key->key_idx, keyidx, priv);
297 " key\n", hdr->addr2, keyidx);
358 return keyidx;
365 int keyidx; local
[all...]
H A Drtllib_crypt_wep.c36 static void *prism2_wep_init(int keyidx) argument
43 priv->key_idx = keyidx;
175 u8 keyidx, *pos; local
190 keyidx = *pos++ >> 6;
191 if (keyidx != wep->key_idx)
H A Drtllib_crypt_tkip.c381 u8 keyidx, *pos; local
399 keyidx = pos[3];
400 if (!(keyidx & (1 << 5))) {
407 keyidx >>= 6;
408 if (tkey->key_idx != keyidx) {
410 "keyidx=%d priv=%p\n", tkey->key_idx, keyidx, priv);
417 " key\n", hdr->addr2, keyidx);
494 return keyidx;
581 int keyidx)
579 rtllib_michael_mic_failure(struct net_device *dev, struct rtllib_hdr_4addr *hdr, int keyidx) argument
600 rtllib_michael_mic_verify(struct sk_buff *skb, int keyidx, int hdr_len, void *priv) argument
652 int keyidx; local
[all...]
H A Drtllib_crypt.c186 static void *rtllib_crypt_null_init(int keyidx) { return (void *) 1; } argument
/drivers/staging/rtl8712/
H A Drtl871x_xmit.h51 #define WEP_IV(pattrib_iv, txpn, keyidx)\
56 pattrib_iv[3] = ((keyidx & 0x3)<<6);\
62 #define TKIP_IV(pattrib_iv, txpn, keyidx)\
67 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
76 #define AES_IV(pattrib_iv, txpn, keyidx)\
81 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
/drivers/staging/wlan-ng/
H A Dp80211wep.c156 u8 keyidx; local
166 keyidx = WEP_KEY(iv[3]);
169 keyidx = key_override;
171 if (keyidx >= NUM_WEPKEYS)
174 keylen = wlandev->wep_keylens[keyidx];
180 memcpy(key + 3, wlandev->wep_keys[keyidx], keylen);
186 keyidx, keylen, 5, key + 3);
/drivers/staging/rtl8723au/include/
H A Drtw_xmit.h48 #define WEP_IV(pattrib_iv, dot11txpn, keyidx) \
53 pattrib_iv[3] = ((keyidx & 0x3) << 6); \
58 #define TKIP_IV(pattrib_iv, dot11txpn, keyidx) \
63 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6); \
72 #define AES_IV(pattrib_iv, dot11txpn, keyidx)\
77 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3) << 6); \
/drivers/staging/rtl8188eu/include/
H A Drtw_xmit.h53 #define WEP_IV(pattrib_iv, dot11txpn, keyidx)\
58 pattrib_iv[3] = ((keyidx & 0x3)<<6);\
63 #define TKIP_IV(pattrib_iv, dot11txpn, keyidx)\
68 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
76 #define AES_IV(pattrib_iv, dot11txpn, keyidx)\
81 pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6); \
/drivers/net/wireless/b43legacy/
H A Dxmit.c481 unsigned int keyidx; local
486 keyidx = ((macstat & B43legacy_RX_MAC_KEYIDX)
491 keyidx = b43legacy_kidx_to_raw(dev, keyidx);
492 B43legacy_WARN_ON(keyidx >= dev->max_nr_keys);
494 if (dev->key[keyidx].algorithm != B43legacy_SEC_ALGO_NONE) {
/drivers/net/wireless/iwlwifi/dvm/
H A Dsta.c1051 keyconf->keyidx);
1053 memset(&ctx->wep_keys[keyconf->keyidx], 0, sizeof(ctx->wep_keys[0]));
1062 keyconf->keyidx, ret);
1084 ctx->wep_keys[keyconf->keyidx].key_size = keyconf->keylen;
1085 memcpy(&ctx->wep_keys[keyconf->keyidx].key, &keyconf->key,
1090 keyconf->keylen, keyconf->keyidx, ret);
1143 key_flags = cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS);
1230 keyconf->keyidx, sta_id);
1236 key_flags = cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS);
1303 keyconf->cipher, keyconf->keylen, keyconf->keyidx,
[all...]
/drivers/net/wireless/iwlwifi/mvm/
H A Dsta.c1081 u16 keyidx; local
1084 keyidx = (keyconf->keyidx << STA_KEY_FLG_KEYID_POS) &
1086 key_flags = cpu_to_le16(keyidx);
1143 (keyconf->keyidx != 4 && keyconf->keyidx != 5)))
1146 igtk_cmd.key_id = cpu_to_le32(keyconf->keyidx);
1275 keyconf->cipher, keyconf->keylen, keyconf->keyidx,
1297 keyconf->keyidx, sta_id);
1333 key_flags = cpu_to_le16((keyconf->keyidx << STA_KEY_FLG_KEYID_PO
[all...]
/drivers/net/wireless/hostap/
H A Dhostap_80211_rx.c689 int keyidx, struct lib80211_crypt_data *crypt)
701 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv);
705 " (SA=%pM keyidx=%d)\n",
706 local->dev->name, hdr->addr2, keyidx);
736 int keyidx = 0; local
824 (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0)
913 (keyidx = hostap_rx_frame_decrypt(local, skb, crypt)) < 0)
977 hostap_rx_frame_decrypt_msdu(local, skb, keyidx, crypt))
688 hostap_rx_frame_decrypt_msdu(local_info_t *local, struct sk_buff *skb, int keyidx, struct lib80211_crypt_data *crypt) argument
/drivers/net/wireless/ath/
H A Dkey.c518 idx = key->keyidx;
527 idx = key->keyidx;
530 } else if (key->keyidx) {
536 /* Only keyidx 0 should be used with unicast key, but
538 idx = key->keyidx;
/drivers/staging/vt6656/
H A Dkey.c59 u8 key_inx = key->keyidx;
/drivers/net/wireless/ipw2x00/
H A Dlibipw_rx.c304 struct sk_buff *skb, int keyidx,
317 res = crypt->ops->decrypt_msdu(skb, keyidx, hdrlen, crypt->priv);
321 " (SA=%pM keyidx=%d)\n", ieee->dev->name, hdr->addr2,
322 keyidx);
353 int keyidx = 0; local
426 keyidx = skb->data[hdrlen + 3] >> 6;
429 /* ieee->crypt[] is WEP_KEY (4) in length. Given that keyidx
430 * is only allowed 2-bits of storage, no value of keyidx can
431 * be provided via above code that would result in keyidx
433 crypt = ieee->crypt_info.crypt[keyidx];
303 libipw_rx_frame_decrypt_msdu(struct libipw_device *ieee, struct sk_buff *skb, int keyidx, struct lib80211_crypt_data *crypt) argument
[all...]
/drivers/net/wireless/b43/
H A Dxmit.c721 unsigned int keyidx; local
724 keyidx = ((macstat & B43_RX_MAC_KEYIDX)
729 keyidx = b43_kidx_to_raw(dev, keyidx);
730 B43_WARN_ON(keyidx >= ARRAY_SIZE(dev->key));
732 if (dev->key[keyidx].algorithm != B43_SEC_ALGO_NONE) {
/drivers/net/wireless/ath/carl9170/
H A Dmac.c475 const u8 ktype, const u8 keyidx, const u8 *keydata,
485 key.keyId = cpu_to_le16(keyidx);
474 carl9170_upload_key(struct ar9170 *ar, const u8 id, const u8 *mac, const u8 ktype, const u8 keyidx, const u8 *keydata, const int keylen) argument
/drivers/net/wireless/ath/ath10k/
H A Dmac.c43 .key_idx = key->keyidx,
1904 int ret, keyidx = arvif->def_wep_key_newidx; local
1911 if (arvif->def_wep_key_idx == keyidx)
1914 ath10k_dbg(ar, ATH10K_DBG_MAC, "mac vdev %d set keyidx %d\n",
1915 arvif->vdev_id, keyidx);
1920 keyidx);
1928 arvif->def_wep_key_idx = keyidx;
1952 if (key->keyidx == arvif->def_wep_key_idx)
1958 arvif->def_wep_key_newidx = key->keyidx;
3306 key->keyidx);
[all...]

Completed in 630 milliseconds

12