Home
last modified time | relevance | path

Searched refs:wep (Results 1 – 13 of 13) sorted by relevance

/drivers/staging/rtl8187se/ieee80211/
Dieee80211_crypt_wep.c107 struct prism2_wep_data *wep = priv; in prism2_wep_encrypt() local
108 struct blkcipher_desc desc = { .tfm = wep->tx_tfm }; in prism2_wep_encrypt()
125 klen = 3 + wep->key_len; in prism2_wep_encrypt()
127 wep->iv++; in prism2_wep_encrypt()
132 if ((wep->iv & 0xff00) == 0xff00) { in prism2_wep_encrypt()
133 u8 B = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt()
135 wep->iv += 0x0100; in prism2_wep_encrypt()
139 *pos++ = key[0] = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt()
140 *pos++ = key[1] = (wep->iv >> 8) & 0xff; in prism2_wep_encrypt()
141 *pos++ = key[2] = wep->iv & 0xff; in prism2_wep_encrypt()
[all …]
/drivers/staging/rtl8192e/
Drtllib_crypt_wep.c98 struct prism2_wep_data *wep = priv; in prism2_wep_encrypt() local
104 struct blkcipher_desc desc = {.tfm = wep->tx_tfm}; in prism2_wep_encrypt()
120 klen = 3 + wep->key_len; in prism2_wep_encrypt()
122 wep->iv++; in prism2_wep_encrypt()
127 if ((wep->iv & 0xff00) == 0xff00) { in prism2_wep_encrypt()
128 u8 B = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt()
130 wep->iv += 0x0100; in prism2_wep_encrypt()
134 *pos++ = key[0] = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt()
135 *pos++ = key[1] = (wep->iv >> 8) & 0xff; in prism2_wep_encrypt()
136 *pos++ = key[2] = wep->iv & 0xff; in prism2_wep_encrypt()
[all …]
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_wep.c104 struct prism2_wep_data *wep = priv; in prism2_wep_encrypt() local
109 struct blkcipher_desc desc = {.tfm = wep->tx_tfm}; in prism2_wep_encrypt()
122 klen = 3 + wep->key_len; in prism2_wep_encrypt()
124 wep->iv++; in prism2_wep_encrypt()
129 if ((wep->iv & 0xff00) == 0xff00) { in prism2_wep_encrypt()
130 u8 B = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt()
132 wep->iv += 0x0100; in prism2_wep_encrypt()
136 *pos++ = key[0] = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt()
137 *pos++ = key[1] = (wep->iv >> 8) & 0xff; in prism2_wep_encrypt()
138 *pos++ = key[2] = wep->iv & 0xff; in prism2_wep_encrypt()
[all …]
/drivers/net/wireless/ti/wl12xx/
Ddebugfs.c68 WL12XX_DEBUGFS_FWSTATS_FILE(wep, addr_key_count, "%u");
69 WL12XX_DEBUGFS_FWSTATS_FILE(wep, default_key_count, "%u");
71 WL12XX_DEBUGFS_FWSTATS_FILE(wep, key_not_found, "%u");
72 WL12XX_DEBUGFS_FWSTATS_FILE(wep, decrypt_fail, "%u");
73 WL12XX_DEBUGFS_FWSTATS_FILE(wep, packets, "%u");
74 WL12XX_DEBUGFS_FWSTATS_FILE(wep, interrupt, "%u");
178 DEBUGFS_FWSTATS_ADD(wep, addr_key_count); in wl12xx_debugfs_add_files()
179 DEBUGFS_FWSTATS_ADD(wep, default_key_count); in wl12xx_debugfs_add_files()
181 DEBUGFS_FWSTATS_ADD(wep, key_not_found); in wl12xx_debugfs_add_files()
182 DEBUGFS_FWSTATS_ADD(wep, decrypt_fail); in wl12xx_debugfs_add_files()
[all …]
Dacx.h262 struct wl12xx_acx_wep_statistics wep; member
/drivers/net/wireless/ti/wl1251/
Ddebugfs.c155 DEBUGFS_FWSTATS_FILE(wep, addr_key_count, 20, "%u");
156 DEBUGFS_FWSTATS_FILE(wep, default_key_count, 20, "%u");
158 DEBUGFS_FWSTATS_FILE(wep, key_not_found, 20, "%u");
159 DEBUGFS_FWSTATS_FILE(wep, decrypt_fail, 20, "%u");
160 DEBUGFS_FWSTATS_FILE(wep, packets, 20, "%u");
161 DEBUGFS_FWSTATS_FILE(wep, interrupt, 20, "%u");
295 DEBUGFS_FWSTATS_DEL(wep, addr_key_count); in wl1251_debugfs_delete_files()
296 DEBUGFS_FWSTATS_DEL(wep, default_key_count); in wl1251_debugfs_delete_files()
298 DEBUGFS_FWSTATS_DEL(wep, key_not_found); in wl1251_debugfs_delete_files()
299 DEBUGFS_FWSTATS_DEL(wep, decrypt_fail); in wl1251_debugfs_delete_files()
[all …]
Dacx.h1081 struct acx_wep_statistics wep; member
/drivers/staging/rtl8712/
Drtl871x_ioctl_set.c346 struct NDIS_802_11_WEP *wep) in r8712_set_802_11_add_wep() argument
353 bdefaultkey = (wep->KeyIndex & 0x40000000) > 0 ? false : true; in r8712_set_802_11_add_wep()
354 btransmitkey = (wep->KeyIndex & 0x80000000) > 0 ? true : false; in r8712_set_802_11_add_wep()
355 keyid = wep->KeyIndex & 0x3fffffff; in r8712_set_802_11_add_wep()
358 switch (wep->KeyLength) { in r8712_set_802_11_add_wep()
369 memcpy(psecuritypriv->DefKey[keyid].skey, &wep->KeyMaterial, in r8712_set_802_11_add_wep()
370 wep->KeyLength); in r8712_set_802_11_add_wep()
371 psecuritypriv->DefKeylen[keyid] = wep->KeyLength; in r8712_set_802_11_add_wep()
Drtl871x_ioctl_set.h44 struct NDIS_802_11_WEP *wep);
Drtl871x_ioctl_linux.c1544 struct NDIS_802_11_WEP wep; in r8711_wx_set_enc() local
1550 memset(&wep, 0, sizeof(struct NDIS_802_11_WEP)); in r8711_wx_set_enc()
1599 wep.KeyIndex = key; in r8711_wx_set_enc()
1601 wep.KeyLength = erq->length <= 5 ? 5 : 13; in r8711_wx_set_enc()
1602 wep.Length = wep.KeyLength + in r8711_wx_set_enc()
1605 wep.KeyLength = 0 ; in r8711_wx_set_enc()
1626 wep.KeyIndex |= 0x80000000; /* transmit key */ in r8711_wx_set_enc()
1627 memcpy(wep.KeyMaterial, keybuf, wep.KeyLength); in r8711_wx_set_enc()
1628 if (r8712_set_802_11_add_wep(padapter, &wep) == _FAIL) in r8711_wx_set_enc()
/drivers/net/ethernet/toshiba/
Dps3_gelic_wireless.c1762 struct gelic_eurus_wep_cfg *wep; in gelic_wl_do_wep_setup() local
1770 wep = (struct gelic_eurus_wep_cfg *)__get_free_page(GFP_KERNEL); in gelic_wl_do_wep_setup()
1771 if (!wep) in gelic_wl_do_wep_setup()
1774 memset(wep, 0, sizeof(*wep)); in gelic_wl_do_wep_setup()
1792 memcpy(wep->key[i], wl->key[i], wl->key_len[i]); in gelic_wl_do_wep_setup()
1803 wep->security = cpu_to_be16(GELIC_EURUS_WEP_SEC_104BIT); in gelic_wl_do_wep_setup()
1806 wep->security = cpu_to_be16(GELIC_EURUS_WEP_SEC_40BIT); in gelic_wl_do_wep_setup()
1810 wep->security = cpu_to_be16(GELIC_EURUS_WEP_SEC_NONE); in gelic_wl_do_wep_setup()
1815 wep, sizeof(*wep)); in gelic_wl_do_wep_setup()
1823 free_page((unsigned long)wep); in gelic_wl_do_wep_setup()
/drivers/net/wireless/prism54/
Disl_ioctl.c128 u32 channel, authen, wep, filter, dot1x, mlme, conformance, power, mode; in prism54_mib_init() local
136 wep = CARD_DEFAULT_WEP; in prism54_mib_init()
146 mgt_set(priv, DOT11_OID_PRIVACYINVOKED, &wep); in prism54_mib_init()
2504 u32 mlme, authen, dot1x, filter, wep; in prism54_set_wpa() local
2509 wep = 1; /* For privacy invoked */ in prism54_set_wpa()
2521 wep = 0; in prism54_set_wpa()
2535 mgt_set_request(priv, DOT11_OID_PRIVACYINVOKED, 0, &wep); in prism54_set_wpa()
/drivers/net/wireless/mwifiex/
DREADME47 WEP encryption, wep keys can be specified in the command.