Searched refs:pwep (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/drivers/staging/rtl8723bs/os_dep/ |
D | ioctl_linux.c | 50 struct ndis_802_11_wep *pwep = NULL; in wpa_set_encryption() local 94 pwep = kzalloc(sizeof(*pwep), GFP_KERNEL); in wpa_set_encryption() 95 if (!pwep) { in wpa_set_encryption() 100 pwep->key_length = wep_key_len; in wpa_set_encryption() 101 pwep->length = wep_total_len; in wpa_set_encryption() 112 pwep->key_index = wep_key_idx; in wpa_set_encryption() 113 pwep->key_index |= 0x80000000; in wpa_set_encryption() 115 memcpy(pwep->key_material, param->u.crypt.key, pwep->key_length); in wpa_set_encryption() 118 if (rtw_set_802_11_add_wep(padapter, pwep) == (u8)_FAIL) in wpa_set_encryption() 129 memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), pwep->key_material, pwep->key_length); in wpa_set_encryption() [all …]
|
D | ioctl_cfg80211.c | 1738 struct ndis_802_11_wep *pwep = NULL; in cfg80211_rtw_connect() local 1751 pwep = rtw_malloc(wep_total_len); in cfg80211_rtw_connect() 1752 if (!pwep) { in cfg80211_rtw_connect() 1757 memset(pwep, 0, wep_total_len); in cfg80211_rtw_connect() 1759 pwep->key_length = wep_key_len; in cfg80211_rtw_connect() 1760 pwep->length = wep_total_len; in cfg80211_rtw_connect() 1771 pwep->key_index = wep_key_idx; in cfg80211_rtw_connect() 1772 pwep->key_index |= 0x80000000; in cfg80211_rtw_connect() 1774 memcpy(pwep->key_material, (void *)sme->key, pwep->key_length); in cfg80211_rtw_connect() 1776 if (rtw_set_802_11_add_wep(padapter, pwep) == (u8)_FAIL) in cfg80211_rtw_connect() [all …]
|
/linux-6.1.9/drivers/staging/rtl8712/ |
D | rtl871x_ioctl_linux.c | 371 struct NDIS_802_11_WEP *pwep = NULL; in wpa_set_encryption() local 402 pwep = kzalloc(sizeof(*pwep), GFP_ATOMIC); in wpa_set_encryption() 403 if (!pwep) in wpa_set_encryption() 405 pwep->KeyLength = wep_key_len; in wpa_set_encryption() 406 pwep->Length = wep_key_len + in wpa_set_encryption() 412 pwep->KeyIndex = wep_key_idx; in wpa_set_encryption() 413 pwep->KeyIndex |= 0x80000000; in wpa_set_encryption() 414 memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); in wpa_set_encryption() 416 if (r8712_set_802_11_add_wep(padapter, pwep)) in wpa_set_encryption() 428 pwep->KeyMaterial, in wpa_set_encryption() [all …]
|
/linux-6.1.9/drivers/staging/r8188eu/os_dep/ |
D | ioctl_linux.c | 367 struct ndis_802_11_wep *pwep = NULL; in wpa_set_encryption() local 406 wep_total_len = wep_key_len + sizeof(*pwep); in wpa_set_encryption() 407 pwep = kzalloc(wep_total_len, GFP_KERNEL); in wpa_set_encryption() 408 if (!pwep) 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() 425 if (rtw_set_802_11_add_wep(padapter, pwep) == (u8)_FAIL) in wpa_set_encryption() [all …]
|