Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c358 struct ndis_802_11_wep *pwep = NULL; in wpa_set_encryption() local
405 pwep = (struct ndis_802_11_wep *)rtw_malloc(wep_total_len); in wpa_set_encryption()
406 if (pwep == NULL) { in wpa_set_encryption()
410 memset(pwep, 0, wep_total_len); in wpa_set_encryption()
411 pwep->KeyLength = wep_key_len; in wpa_set_encryption()
412 pwep->Length = wep_total_len; in wpa_set_encryption()
421 pwep->KeyIndex = wep_key_idx; in wpa_set_encryption()
422 pwep->KeyIndex |= 0x80000000; in wpa_set_encryption()
423 memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); in wpa_set_encryption()
426 if (rtw_set_802_11_add_wep(padapter, pwep) == (u8)_FAIL) in wpa_set_encryption()
[all …]
/linux-4.1.27/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c397 struct NDIS_802_11_WEP *pwep = NULL; in wpa_set_encryption() local
426 pwep = kmalloc((u32)(wep_key_len + in wpa_set_encryption()
429 if (pwep == NULL) in wpa_set_encryption()
431 memset(pwep, 0, sizeof(struct NDIS_802_11_WEP)); in wpa_set_encryption()
432 pwep->KeyLength = wep_key_len; in wpa_set_encryption()
433 pwep->Length = wep_key_len + in wpa_set_encryption()
444 pwep->KeyIndex = wep_key_idx; in wpa_set_encryption()
445 pwep->KeyIndex |= 0x80000000; in wpa_set_encryption()
446 memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); in wpa_set_encryption()
448 if (r8712_set_802_11_add_wep(padapter, pwep) == in wpa_set_encryption()
[all …]