Home
last modified time | relevance | path

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

/Linux-v5.4/net/wireless/
Dlib80211_crypt_wep.c66 struct lib80211_wep_data *wep = priv; in lib80211_wep_build_iv() local
77 klen = 3 + wep->key_len; in lib80211_wep_build_iv()
79 wep->iv++; in lib80211_wep_build_iv()
84 if ((wep->iv & 0xff00) == 0xff00) { in lib80211_wep_build_iv()
85 u8 B = (wep->iv >> 16) & 0xff; in lib80211_wep_build_iv()
87 wep->iv += 0x0100; in lib80211_wep_build_iv()
91 *pos++ = (wep->iv >> 16) & 0xff; in lib80211_wep_build_iv()
92 *pos++ = (wep->iv >> 8) & 0xff; in lib80211_wep_build_iv()
93 *pos++ = wep->iv & 0xff; in lib80211_wep_build_iv()
94 *pos++ = wep->key_idx << 6; in lib80211_wep_build_iv()
[all …]
/Linux-v5.4/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_wep.c83 struct prism2_wep_data *wep = priv; in prism2_wep_encrypt() local
102 klen = 3 + wep->key_len; in prism2_wep_encrypt()
104 wep->iv++; in prism2_wep_encrypt()
110 if ((wep->iv & 0xff00) == 0xff00) { in prism2_wep_encrypt()
111 u8 B = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt()
114 wep->iv += 0x0100; in prism2_wep_encrypt()
118 *pos++ = key[0] = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt()
119 *pos++ = key[1] = (wep->iv >> 8) & 0xff; in prism2_wep_encrypt()
120 *pos++ = key[2] = wep->iv & 0xff; in prism2_wep_encrypt()
121 *pos++ = wep->key_idx << 6; in prism2_wep_encrypt()
[all …]
/Linux-v5.4/drivers/staging/rtl8192e/
Drtllib_crypt_wep.c87 struct prism2_wep_data *wep = priv; in prism2_wep_encrypt() local
109 klen = 3 + wep->key_len; in prism2_wep_encrypt()
111 wep->iv++; in prism2_wep_encrypt()
117 if ((wep->iv & 0xff00) == 0xff00) { in prism2_wep_encrypt()
118 u8 B = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt()
121 wep->iv += 0x0100; in prism2_wep_encrypt()
125 *pos++ = key[0] = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt()
126 *pos++ = key[1] = (wep->iv >> 8) & 0xff; in prism2_wep_encrypt()
127 *pos++ = key[2] = wep->iv & 0xff; in prism2_wep_encrypt()
128 *pos++ = wep->key_idx << 6; in prism2_wep_encrypt()
[all …]
/Linux-v5.4/drivers/net/wireless/ti/wl12xx/
Ddebugfs.c54 WL12XX_DEBUGFS_FWSTATS_FILE(wep, addr_key_count, "%u");
55 WL12XX_DEBUGFS_FWSTATS_FILE(wep, default_key_count, "%u");
57 WL12XX_DEBUGFS_FWSTATS_FILE(wep, key_not_found, "%u");
58 WL12XX_DEBUGFS_FWSTATS_FILE(wep, decrypt_fail, "%u");
59 WL12XX_DEBUGFS_FWSTATS_FILE(wep, packets, "%u");
60 WL12XX_DEBUGFS_FWSTATS_FILE(wep, interrupt, "%u");
154 DEBUGFS_FWSTATS_ADD(wep, addr_key_count); in wl12xx_debugfs_add_files()
155 DEBUGFS_FWSTATS_ADD(wep, default_key_count); in wl12xx_debugfs_add_files()
157 DEBUGFS_FWSTATS_ADD(wep, key_not_found); in wl12xx_debugfs_add_files()
158 DEBUGFS_FWSTATS_ADD(wep, decrypt_fail); in wl12xx_debugfs_add_files()
[all …]
Dacx.h248 struct wl12xx_acx_wep_statistics wep; member
/Linux-v5.4/drivers/net/wireless/ti/wl1251/
Ddebugfs.c136 DEBUGFS_FWSTATS_FILE(wep, addr_key_count, 20, "%u");
137 DEBUGFS_FWSTATS_FILE(wep, default_key_count, 20, "%u");
139 DEBUGFS_FWSTATS_FILE(wep, key_not_found, 20, "%u");
140 DEBUGFS_FWSTATS_FILE(wep, decrypt_fail, 20, "%u");
141 DEBUGFS_FWSTATS_FILE(wep, packets, 20, "%u");
142 DEBUGFS_FWSTATS_FILE(wep, interrupt, 20, "%u");
276 DEBUGFS_FWSTATS_DEL(wep, addr_key_count); in wl1251_debugfs_delete_files()
277 DEBUGFS_FWSTATS_DEL(wep, default_key_count); in wl1251_debugfs_delete_files()
279 DEBUGFS_FWSTATS_DEL(wep, key_not_found); in wl1251_debugfs_delete_files()
280 DEBUGFS_FWSTATS_DEL(wep, decrypt_fail); in wl1251_debugfs_delete_files()
[all …]
Dacx.h1067 struct acx_wep_statistics wep; member
/Linux-v5.4/drivers/staging/rtl8712/
Drtl871x_ioctl_set.c331 struct NDIS_802_11_WEP *wep) in r8712_set_802_11_add_wep() argument
336 keyid = wep->KeyIndex & 0x3fffffff; in r8712_set_802_11_add_wep()
339 switch (wep->KeyLength) { in r8712_set_802_11_add_wep()
350 memcpy(psecuritypriv->DefKey[keyid].skey, &wep->KeyMaterial, in r8712_set_802_11_add_wep()
351 wep->KeyLength); in r8712_set_802_11_add_wep()
352 psecuritypriv->DefKeylen[keyid] = wep->KeyLength; in r8712_set_802_11_add_wep()
Drtl871x_ioctl_set.h32 struct NDIS_802_11_WEP *wep);
Drtl871x_ioctl_linux.c1501 struct NDIS_802_11_WEP wep; in r8711_wx_set_enc() local
1507 memset(&wep, 0, sizeof(struct NDIS_802_11_WEP)); in r8711_wx_set_enc()
1557 wep.KeyIndex = key; in r8711_wx_set_enc()
1559 wep.KeyLength = erq->length <= 5 ? 5 : 13; in r8711_wx_set_enc()
1560 wep.Length = wep.KeyLength + in r8711_wx_set_enc()
1563 wep.KeyLength = 0; in r8711_wx_set_enc()
1585 wep.KeyIndex |= 0x80000000; /* transmit key */ in r8711_wx_set_enc()
1586 memcpy(wep.KeyMaterial, keybuf, wep.KeyLength); in r8711_wx_set_enc()
1587 if (r8712_set_802_11_add_wep(padapter, &wep)) in r8711_wx_set_enc()
/Linux-v5.4/drivers/staging/rtl8188eu/core/
Drtw_ioctl_set.c470 u8 rtw_set_802_11_add_wep(struct adapter *padapter, struct ndis_802_11_wep *wep) in rtw_set_802_11_add_wep() argument
476 keyid = wep->KeyIndex & 0x3fffffff; in rtw_set_802_11_add_wep()
484 switch (wep->KeyLength) { in rtw_set_802_11_add_wep()
500 wep->KeyLength, wep->KeyIndex, keyid)); in rtw_set_802_11_add_wep()
503 &wep->KeyMaterial, wep->KeyLength); in rtw_set_802_11_add_wep()
505 psecuritypriv->dot11DefKeylen[keyid] = wep->KeyLength; in rtw_set_802_11_add_wep()
/Linux-v5.4/drivers/staging/rtl8723bs/core/
Drtw_ioctl_set.c575 u8 rtw_set_802_11_add_wep(struct adapter *padapter, struct ndis_802_11_wep *wep) in rtw_set_802_11_add_wep() argument
582 keyid = wep->KeyIndex & 0x3fffffff; in rtw_set_802_11_add_wep()
590 switch (wep->KeyLength) { in rtw_set_802_11_add_wep()
607 wep->KeyLength, wep->KeyIndex, keyid)); in rtw_set_802_11_add_wep()
609 memcpy(&(psecuritypriv->dot11DefKey[keyid].skey[0]), &(wep->KeyMaterial), wep->KeyLength); in rtw_set_802_11_add_wep()
611 psecuritypriv->dot11DefKeylen[keyid] = wep->KeyLength; in rtw_set_802_11_add_wep()
/Linux-v5.4/drivers/staging/rtl8188eu/include/
Drtw_ioctl_set.h18 u8 rtw_set_802_11_add_wep(struct adapter *adapter, struct ndis_802_11_wep *wep);
/Linux-v5.4/drivers/staging/rtl8723bs/include/
Drtw_ioctl_set.h21 u8 rtw_set_802_11_add_wep(struct adapter *padapter, struct ndis_802_11_wep * wep);
/Linux-v5.4/net/mac80211/
DMakefile9 wep.o \
/Linux-v5.4/drivers/net/ethernet/toshiba/
Dps3_gelic_wireless.c1744 struct gelic_eurus_wep_cfg *wep; in gelic_wl_do_wep_setup() local
1752 wep = (struct gelic_eurus_wep_cfg *)__get_free_page(GFP_KERNEL); in gelic_wl_do_wep_setup()
1753 if (!wep) in gelic_wl_do_wep_setup()
1756 memset(wep, 0, sizeof(*wep)); in gelic_wl_do_wep_setup()
1774 memcpy(wep->key[i], wl->key[i], wl->key_len[i]); in gelic_wl_do_wep_setup()
1785 wep->security = cpu_to_be16(GELIC_EURUS_WEP_SEC_104BIT); in gelic_wl_do_wep_setup()
1788 wep->security = cpu_to_be16(GELIC_EURUS_WEP_SEC_40BIT); in gelic_wl_do_wep_setup()
1792 wep->security = cpu_to_be16(GELIC_EURUS_WEP_SEC_NONE); in gelic_wl_do_wep_setup()
1797 wep, sizeof(*wep)); in gelic_wl_do_wep_setup()
1805 free_page((unsigned long)wep); in gelic_wl_do_wep_setup()
/Linux-v5.4/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c1577 struct ndis_802_11_wep wep; in rtw_wx_set_enc() local
1586 memset(&wep, 0, sizeof(struct ndis_802_11_wep)); in rtw_wx_set_enc()
1641 wep.KeyIndex = key; in rtw_wx_set_enc()
1643 wep.KeyLength = erq->length <= 5 ? 5 : 13; in rtw_wx_set_enc()
1645 wep.Length = wep.KeyLength + offsetof(struct ndis_802_11_wep, KeyMaterial); in rtw_wx_set_enc()
1647 wep.KeyLength = 0; in rtw_wx_set_enc()
1671 wep.KeyIndex |= 0x80000000; in rtw_wx_set_enc()
1673 memcpy(wep.KeyMaterial, keybuf, wep.KeyLength); in rtw_wx_set_enc()
1675 if (!rtw_set_802_11_add_wep(padapter, &wep)) { in rtw_wx_set_enc()
/Linux-v5.4/drivers/net/wireless/intersil/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()
2505 u32 mlme, authen, dot1x, filter, wep; in prism54_set_wpa() local
2510 wep = 1; /* For privacy invoked */ in prism54_set_wpa()
2522 wep = 0; in prism54_set_wpa()
2536 mgt_set_request(priv, DOT11_OID_PRIVACYINVOKED, 0, &wep); in prism54_set_wpa()
/Linux-v5.4/drivers/staging/rtl8723bs/os_dep/
Dioctl_linux.c1839 struct ndis_802_11_wep wep; in rtw_wx_set_enc() local
1847 memset(&wep, 0, sizeof(struct ndis_802_11_wep)); in rtw_wx_set_enc()
1906 wep.KeyIndex = key; in rtw_wx_set_enc()
1908 wep.KeyLength = erq->length <= 5 ? 5 : 13; in rtw_wx_set_enc()
1910 wep.Length = wep.KeyLength + FIELD_OFFSET(struct ndis_802_11_wep, KeyMaterial); in rtw_wx_set_enc()
1912 wep.KeyLength = 0 ; in rtw_wx_set_enc()
1937 wep.KeyIndex |= 0x80000000; in rtw_wx_set_enc()
1939 memcpy(wep.KeyMaterial, keybuf, wep.KeyLength); in rtw_wx_set_enc()
1941 if (rtw_set_802_11_add_wep(padapter, &wep) == false) { in rtw_wx_set_enc()
/Linux-v5.4/drivers/net/wireless/marvell/mwifiex/
DREADME47 WEP encryption, wep keys can be specified in the command.
Dsta_cmd.c735 km->key_param_set.key_params.wep.key_len = in mwifiex_cmd_802_11_key_material_v2()
737 memcpy(km->key_param_set.key_params.wep.key, in mwifiex_cmd_802_11_key_material_v2()
Dfw.h979 struct mwifiex_wep_param wep; member
/Linux-v5.4/drivers/net/wireless/ath/wcn36xx/
Dhal.h918 u8 wep:1; member
938 u8 wep:1;