Home
last modified time | relevance | path

Searched refs:pwep (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c360 struct ndis_802_11_wep *pwep = NULL; in wpa_set_encryption() local
407 pwep = (struct ndis_802_11_wep *)rtw_malloc(wep_total_len); in wpa_set_encryption()
408 if (pwep == NULL) { in wpa_set_encryption()
412 memset(pwep, 0, wep_total_len); in wpa_set_encryption()
413 pwep->KeyLength = wep_key_len; in wpa_set_encryption()
414 pwep->Length = wep_total_len; in wpa_set_encryption()
423 pwep->KeyIndex = wep_key_idx; in wpa_set_encryption()
424 pwep->KeyIndex |= 0x80000000; in wpa_set_encryption()
425 memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); in wpa_set_encryption()
428 if (rtw_set_802_11_add_wep(padapter, pwep) == (u8)_FAIL) in wpa_set_encryption()
[all …]
/linux-4.4.14/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c371 struct NDIS_802_11_WEP *pwep = NULL; in wpa_set_encryption() local
401 pwep = kmalloc((u32)(wep_key_len + in wpa_set_encryption()
404 if (pwep == NULL) in wpa_set_encryption()
406 memset(pwep, 0, sizeof(struct NDIS_802_11_WEP)); in wpa_set_encryption()
407 pwep->KeyLength = wep_key_len; in wpa_set_encryption()
408 pwep->Length = wep_key_len + in wpa_set_encryption()
420 pwep->KeyIndex = wep_key_idx; in wpa_set_encryption()
421 pwep->KeyIndex |= 0x80000000; in wpa_set_encryption()
422 memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); in wpa_set_encryption()
424 if (r8712_set_802_11_add_wep(padapter, pwep) == in wpa_set_encryption()
[all …]