Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/staging/rtl8723bs/os_dep/
Dioctl_linux.c50 struct ndis_802_11_wep *pwep = NULL; in wpa_set_encryption() local
93 pwep = kzalloc(sizeof(*pwep), GFP_KERNEL); in wpa_set_encryption()
94 if (!pwep) { in wpa_set_encryption()
99 pwep->key_length = wep_key_len; in wpa_set_encryption()
100 pwep->length = wep_total_len; in wpa_set_encryption()
111 pwep->key_index = wep_key_idx; in wpa_set_encryption()
112 pwep->key_index |= 0x80000000; in wpa_set_encryption()
114 memcpy(pwep->key_material, param->u.crypt.key, pwep->key_length); in wpa_set_encryption()
117 if (rtw_set_802_11_add_wep(padapter, pwep) == (u8)_FAIL) in wpa_set_encryption()
128 memcpy(&psecuritypriv->dot11DefKey[wep_key_idx].skey[0], pwep->key_material, pwep->key_length); in wpa_set_encryption()
[all …]
Dioctl_cfg80211.c1714 struct ndis_802_11_wep *pwep = NULL; in cfg80211_rtw_connect() local
1727 pwep = rtw_malloc(wep_total_len); in cfg80211_rtw_connect()
1728 if (!pwep) { in cfg80211_rtw_connect()
1733 memset(pwep, 0, wep_total_len); in cfg80211_rtw_connect()
1735 pwep->key_length = wep_key_len; in cfg80211_rtw_connect()
1736 pwep->length = wep_total_len; in cfg80211_rtw_connect()
1747 pwep->key_index = wep_key_idx; in cfg80211_rtw_connect()
1748 pwep->key_index |= 0x80000000; in cfg80211_rtw_connect()
1750 memcpy(pwep->key_material, (void *)sme->key, pwep->key_length); in cfg80211_rtw_connect()
1752 if (rtw_set_802_11_add_wep(padapter, pwep) == (u8)_FAIL) in cfg80211_rtw_connect()
[all …]
/linux-6.6.21/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c371 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 …]