/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_wep.c | 87 struct prism2_wep_data *wep = priv; in prism2_wep_encrypt() local 106 klen = 3 + wep->key_len; in prism2_wep_encrypt() 108 wep->iv++; in prism2_wep_encrypt() 114 if ((wep->iv & 0xff00) == 0xff00) { in prism2_wep_encrypt() 115 u8 B = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt() 118 wep->iv += 0x0100; in prism2_wep_encrypt() 122 *pos++ = key[0] = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt() 123 *pos++ = key[1] = (wep->iv >> 8) & 0xff; in prism2_wep_encrypt() 124 *pos++ = key[2] = wep->iv & 0xff; in prism2_wep_encrypt() 125 *pos++ = wep->key_idx << 6; in prism2_wep_encrypt() [all …]
|
/drivers/staging/rtl8192e/ |
D | rtllib_crypt_wep.c | 91 struct prism2_wep_data *wep = priv; in prism2_wep_encrypt() local 113 klen = 3 + wep->key_len; in prism2_wep_encrypt() 115 wep->iv++; in prism2_wep_encrypt() 121 if ((wep->iv & 0xff00) == 0xff00) { in prism2_wep_encrypt() 122 u8 B = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt() 125 wep->iv += 0x0100; in prism2_wep_encrypt() 129 *pos++ = key[0] = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt() 130 *pos++ = key[1] = (wep->iv >> 8) & 0xff; in prism2_wep_encrypt() 131 *pos++ = key[2] = wep->iv & 0xff; in prism2_wep_encrypt() 132 *pos++ = wep->key_idx << 6; in prism2_wep_encrypt() [all …]
|
/drivers/net/wireless/ti/wl12xx/ |
D | debugfs.c | 68 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 …]
|
D | acx.h | 262 struct wl12xx_acx_wep_statistics wep; member
|
/drivers/net/wireless/ti/wl1251/ |
D | debugfs.c | 155 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 …]
|
D | acx.h | 1081 struct acx_wep_statistics wep; member
|
/drivers/staging/rtl8723bs/core/ |
D | rtw_ioctl_set.c | 590 u8 rtw_set_802_11_add_wep(struct adapter *padapter, struct ndis_802_11_wep *wep) in rtw_set_802_11_add_wep() argument 599 bdefaultkey = (wep->KeyIndex & 0x40000000) > 0 ? false : true; /* for ??? */ in rtw_set_802_11_add_wep() 600 btransmitkey = (wep->KeyIndex & 0x80000000) > 0 ? true : false; /* for ??? */ in rtw_set_802_11_add_wep() 601 keyid = wep->KeyIndex & 0x3fffffff; in rtw_set_802_11_add_wep() 609 switch (wep->KeyLength) { in rtw_set_802_11_add_wep() 626 wep->KeyLength, wep->KeyIndex, keyid)); in rtw_set_802_11_add_wep() 628 memcpy(&(psecuritypriv->dot11DefKey[keyid].skey[0]), &(wep->KeyMaterial), wep->KeyLength); in rtw_set_802_11_add_wep() 630 psecuritypriv->dot11DefKeylen[keyid] = wep->KeyLength; in rtw_set_802_11_add_wep()
|
/drivers/staging/rtl8712/ |
D | rtl871x_ioctl_set.c | 345 struct NDIS_802_11_WEP *wep) in r8712_set_802_11_add_wep() argument 350 keyid = wep->KeyIndex & 0x3fffffff; in r8712_set_802_11_add_wep() 353 switch (wep->KeyLength) { in r8712_set_802_11_add_wep() 364 memcpy(psecuritypriv->DefKey[keyid].skey, &wep->KeyMaterial, in r8712_set_802_11_add_wep() 365 wep->KeyLength); in r8712_set_802_11_add_wep() 366 psecuritypriv->DefKeylen[keyid] = wep->KeyLength; in r8712_set_802_11_add_wep()
|
D | rtl871x_ioctl_set.h | 44 struct NDIS_802_11_WEP *wep);
|
D | rtl871x_ioctl_linux.c | 1502 struct NDIS_802_11_WEP wep; in r8711_wx_set_enc() local 1508 memset(&wep, 0, sizeof(struct NDIS_802_11_WEP)); in r8711_wx_set_enc() 1558 wep.KeyIndex = key; in r8711_wx_set_enc() 1560 wep.KeyLength = erq->length <= 5 ? 5 : 13; in r8711_wx_set_enc() 1561 wep.Length = wep.KeyLength + in r8711_wx_set_enc() 1564 wep.KeyLength = 0; in r8711_wx_set_enc() 1586 wep.KeyIndex |= 0x80000000; /* transmit key */ in r8711_wx_set_enc() 1587 memcpy(wep.KeyMaterial, keybuf, wep.KeyLength); in r8711_wx_set_enc() 1588 if (r8712_set_802_11_add_wep(padapter, &wep) == _FAIL) in r8711_wx_set_enc()
|
/drivers/staging/rtl8188eu/core/ |
D | rtw_ioctl_set.c | 493 u8 rtw_set_802_11_add_wep(struct adapter *padapter, struct ndis_802_11_wep *wep) in rtw_set_802_11_add_wep() argument 500 keyid = wep->KeyIndex & 0x3fffffff; in rtw_set_802_11_add_wep() 508 switch (wep->KeyLength) { in rtw_set_802_11_add_wep() 524 wep->KeyLength, wep->KeyIndex, keyid)); in rtw_set_802_11_add_wep() 526 memcpy(&(psecuritypriv->dot11DefKey[keyid].skey[0]), &(wep->KeyMaterial), wep->KeyLength); in rtw_set_802_11_add_wep() 528 psecuritypriv->dot11DefKeylen[keyid] = wep->KeyLength; in rtw_set_802_11_add_wep()
|
/drivers/staging/wilc1000/ |
D | host_interface.c | 83 struct host_if_wep_attr wep; member 1546 strWIDList[0].val = (s8 *)&pstrHostIFkeyAttr->attr.wep.mode; in Handle_Key() 1551 strWIDList[1].val = (s8 *)&pstrHostIFkeyAttr->attr.wep.auth_type; in Handle_Key() 1553 pu8keybuf = kmalloc(pstrHostIFkeyAttr->attr.wep.key_len + 2, in Handle_Key() 1558 pu8keybuf[0] = pstrHostIFkeyAttr->attr.wep.index; in Handle_Key() 1559 pu8keybuf[1] = pstrHostIFkeyAttr->attr.wep.key_len; in Handle_Key() 1561 memcpy(&pu8keybuf[2], pstrHostIFkeyAttr->attr.wep.key, in Handle_Key() 1562 pstrHostIFkeyAttr->attr.wep.key_len); in Handle_Key() 1564 kfree(pstrHostIFkeyAttr->attr.wep.key); in Handle_Key() 1568 strWIDList[2].size = pstrHostIFkeyAttr->attr.wep.key_len + 2; in Handle_Key() [all …]
|
/drivers/staging/rtl8188eu/include/ |
D | rtw_ioctl_set.h | 26 u8 rtw_set_802_11_add_wep(struct adapter *adapter, struct ndis_802_11_wep *wep);
|
/drivers/staging/rtl8723bs/include/ |
D | rtw_ioctl_set.h | 29 u8 rtw_set_802_11_add_wep(struct adapter *padapter, struct ndis_802_11_wep * wep);
|
/drivers/net/ethernet/toshiba/ |
D | ps3_gelic_wireless.c | 1759 struct gelic_eurus_wep_cfg *wep; in gelic_wl_do_wep_setup() local 1767 wep = (struct gelic_eurus_wep_cfg *)__get_free_page(GFP_KERNEL); in gelic_wl_do_wep_setup() 1768 if (!wep) in gelic_wl_do_wep_setup() 1771 memset(wep, 0, sizeof(*wep)); in gelic_wl_do_wep_setup() 1789 memcpy(wep->key[i], wl->key[i], wl->key_len[i]); in gelic_wl_do_wep_setup() 1800 wep->security = cpu_to_be16(GELIC_EURUS_WEP_SEC_104BIT); in gelic_wl_do_wep_setup() 1803 wep->security = cpu_to_be16(GELIC_EURUS_WEP_SEC_40BIT); in gelic_wl_do_wep_setup() 1807 wep->security = cpu_to_be16(GELIC_EURUS_WEP_SEC_NONE); in gelic_wl_do_wep_setup() 1812 wep, sizeof(*wep)); in gelic_wl_do_wep_setup() 1820 free_page((unsigned long)wep); in gelic_wl_do_wep_setup()
|
/drivers/staging/rtl8188eu/os_dep/ |
D | ioctl_linux.c | 1602 struct ndis_802_11_wep wep; in rtw_wx_set_enc() local 1611 memset(&wep, 0, sizeof(struct ndis_802_11_wep)); in rtw_wx_set_enc() 1667 wep.KeyIndex = key; in rtw_wx_set_enc() 1669 wep.KeyLength = erq->length <= 5 ? 5 : 13; in rtw_wx_set_enc() 1671 wep.Length = wep.KeyLength + offsetof(struct ndis_802_11_wep, KeyMaterial); in rtw_wx_set_enc() 1673 wep.KeyLength = 0; in rtw_wx_set_enc() 1697 wep.KeyIndex |= 0x80000000; in rtw_wx_set_enc() 1699 memcpy(wep.KeyMaterial, keybuf, wep.KeyLength); in rtw_wx_set_enc() 1701 if (rtw_set_802_11_add_wep(padapter, &wep) == false) { in rtw_wx_set_enc()
|
/drivers/net/wireless/intersil/prism54/ |
D | isl_ioctl.c | 128 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/staging/rtl8723bs/os_dep/ |
D | ioctl_linux.c | 1926 struct ndis_802_11_wep wep; in rtw_wx_set_enc() local 1934 memset(&wep, 0, sizeof(struct ndis_802_11_wep)); in rtw_wx_set_enc() 1993 wep.KeyIndex = key; in rtw_wx_set_enc() 1995 wep.KeyLength = erq->length <= 5 ? 5 : 13; in rtw_wx_set_enc() 1997 wep.Length = wep.KeyLength + FIELD_OFFSET(struct ndis_802_11_wep, KeyMaterial); in rtw_wx_set_enc() 1999 wep.KeyLength = 0 ; in rtw_wx_set_enc() 2024 wep.KeyIndex |= 0x80000000; in rtw_wx_set_enc() 2026 memcpy(wep.KeyMaterial, keybuf, wep.KeyLength); in rtw_wx_set_enc() 2028 if (rtw_set_802_11_add_wep(padapter, &wep) == false) { in rtw_wx_set_enc()
|
/drivers/net/wireless/marvell/mwifiex/ |
D | README | 47 WEP encryption, wep keys can be specified in the command.
|
D | sta_cmd.c | 735 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()
|
D | fw.h | 964 struct mwifiex_wep_param wep; member
|
/drivers/net/wireless/ath/wcn36xx/ |
D | hal.h | 905 u8 wep:1; member 925 u8 wep:1;
|