Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c347 struct ndis_802_11_wep *pwep = NULL; in wpa_set_encryption() local
392 pwep = (struct ndis_802_11_wep *)rtw_malloc(wep_total_len); in wpa_set_encryption()
393 if (!pwep) { in wpa_set_encryption()
397 memset(pwep, 0, wep_total_len); in wpa_set_encryption()
398 pwep->KeyLength = wep_key_len; in wpa_set_encryption()
399 pwep->Length = wep_total_len; in wpa_set_encryption()
408 pwep->KeyIndex = wep_key_idx; in wpa_set_encryption()
409 pwep->KeyIndex |= 0x80000000; in wpa_set_encryption()
410 memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); in wpa_set_encryption()
413 if (rtw_set_802_11_add_wep(padapter, pwep) == (u8)_FAIL) in wpa_set_encryption()
[all …]
/Linux-v5.10/drivers/staging/rtl8723bs/os_dep/
Dioctl_linux.c426 struct ndis_802_11_wep *pwep = NULL; in wpa_set_encryption() local
476 pwep = kzalloc(wep_total_len, GFP_KERNEL); in wpa_set_encryption()
477 if (pwep == NULL) { in wpa_set_encryption()
482 pwep->KeyLength = wep_key_len; in wpa_set_encryption()
483 pwep->Length = wep_total_len; in wpa_set_encryption()
494 pwep->KeyIndex = wep_key_idx; in wpa_set_encryption()
495 pwep->KeyIndex |= 0x80000000; in wpa_set_encryption()
497 memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); in wpa_set_encryption()
502 if (rtw_set_802_11_add_wep(padapter, pwep) == (u8)_FAIL) in wpa_set_encryption()
515 memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), pwep->KeyMaterial, pwep->KeyLength); in wpa_set_encryption()
[all …]
Dioctl_cfg80211.c2127 struct ndis_802_11_wep *pwep = NULL; in cfg80211_rtw_connect() local
2142 pwep = rtw_malloc(wep_total_len); in cfg80211_rtw_connect()
2143 if (pwep == NULL) { in cfg80211_rtw_connect()
2149 memset(pwep, 0, wep_total_len); in cfg80211_rtw_connect()
2151 pwep->KeyLength = wep_key_len; in cfg80211_rtw_connect()
2152 pwep->Length = wep_total_len; in cfg80211_rtw_connect()
2165 pwep->KeyIndex = wep_key_idx; in cfg80211_rtw_connect()
2166 pwep->KeyIndex |= 0x80000000; in cfg80211_rtw_connect()
2168 memcpy(pwep->KeyMaterial, (void *)sme->key, pwep->KeyLength); in cfg80211_rtw_connect()
2170 if (rtw_set_802_11_add_wep(padapter, pwep) == (u8)_FAIL) in cfg80211_rtw_connect()
[all …]
/Linux-v5.10/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c373 struct NDIS_802_11_WEP *pwep = NULL; in wpa_set_encryption() local
404 pwep = kzalloc(sizeof(*pwep), GFP_ATOMIC); in wpa_set_encryption()
405 if (!pwep) in wpa_set_encryption()
407 pwep->KeyLength = wep_key_len; in wpa_set_encryption()
408 pwep->Length = wep_key_len + in wpa_set_encryption()
414 pwep->KeyIndex = wep_key_idx; in wpa_set_encryption()
415 pwep->KeyIndex |= 0x80000000; in wpa_set_encryption()
416 memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); in wpa_set_encryption()
418 if (r8712_set_802_11_add_wep(padapter, pwep)) in wpa_set_encryption()
430 pwep->KeyMaterial, in wpa_set_encryption()
[all …]