/Linux-v5.10/drivers/staging/rtl8723bs/os_dep/ |
D | ioctl_cfg80211.c | 566 struct security_priv* psecuritypriv = &(padapter->securitypriv); in rtw_cfg80211_ap_set_encryption() local 631 if (psecuritypriv->bWepDefaultKeyIdxSet == 0) in rtw_cfg80211_ap_set_encryption() 635 psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_Auto; in rtw_cfg80211_ap_set_encryption() 636 psecuritypriv->ndisencryptstatus = Ndis802_11Encryption1Enabled; in rtw_cfg80211_ap_set_encryption() 637 psecuritypriv->dot11PrivacyAlgrthm = _WEP40_; in rtw_cfg80211_ap_set_encryption() 638 psecuritypriv->dot118021XGrpPrivacy = _WEP40_; in rtw_cfg80211_ap_set_encryption() 642 psecuritypriv->dot11PrivacyAlgrthm = _WEP104_; in rtw_cfg80211_ap_set_encryption() 643 psecuritypriv->dot118021XGrpPrivacy = _WEP104_; in rtw_cfg80211_ap_set_encryption() 646 psecuritypriv->dot11PrivacyKeyIndex = wep_key_idx; in rtw_cfg80211_ap_set_encryption() 649 memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), param->u.crypt.key, wep_key_len); in rtw_cfg80211_ap_set_encryption() [all …]
|
D | recv_linux.c | 169 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_handle_tkip_mic_err() local 172 if (psecuritypriv->last_mic_err_time == 0) { in rtw_handle_tkip_mic_err() 173 psecuritypriv->last_mic_err_time = jiffies; in rtw_handle_tkip_mic_err() 177 if (cur_time - psecuritypriv->last_mic_err_time < 60*HZ) { in rtw_handle_tkip_mic_err() 178 psecuritypriv->btkip_countermeasure = true; in rtw_handle_tkip_mic_err() 179 psecuritypriv->last_mic_err_time = 0; in rtw_handle_tkip_mic_err() 180 psecuritypriv->btkip_countermeasure_time = cur_time; in rtw_handle_tkip_mic_err() 182 psecuritypriv->last_mic_err_time = jiffies; in rtw_handle_tkip_mic_err()
|
D | ioctl_linux.c | 429 struct security_priv *psecuritypriv = &padapter->securitypriv; in wpa_set_encryption() local 515 memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), pwep->KeyMaterial, pwep->KeyLength); in wpa_set_encryption() 516 psecuritypriv->dot11DefKeylen[wep_key_idx] = pwep->KeyLength; in wpa_set_encryption() 517 rtw_set_key(padapter, psecuritypriv, wep_key_idx, 0, true); in wpa_set_encryption() 940 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wx_set_pmkid() local 964 if (!memcmp(psecuritypriv->PMKIDList[j].Bssid, strIssueBssid, ETH_ALEN)) { in rtw_wx_set_pmkid() 968 memcpy(psecuritypriv->PMKIDList[j].PMKID, pPMK->pmkid, IW_PMKID_LEN); in rtw_wx_set_pmkid() 969 psecuritypriv->PMKIDList[j].bUsed = true; in rtw_wx_set_pmkid() 970 psecuritypriv->PMKIDIndex = j+1; in rtw_wx_set_pmkid() 979 psecuritypriv->PMKIDIndex); in rtw_wx_set_pmkid() [all …]
|
/Linux-v5.10/drivers/staging/rtl8188eu/core/ |
D | rtw_ioctl_set.c | 444 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_set_802_11_authentication_mode() local 451 psecuritypriv->ndisauthtype = authmode; in rtw_set_802_11_authentication_mode() 455 psecuritypriv->ndisauthtype)); in rtw_set_802_11_authentication_mode() 457 if (psecuritypriv->ndisauthtype > 3) in rtw_set_802_11_authentication_mode() 458 psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_8021X; in rtw_set_802_11_authentication_mode() 460 res = rtw_set_auth(padapter, psecuritypriv); in rtw_set_802_11_authentication_mode() 473 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_set_802_11_add_wep() local 486 psecuritypriv->dot11PrivacyAlgrthm = _WEP40_; in rtw_set_802_11_add_wep() 490 psecuritypriv->dot11PrivacyAlgrthm = _WEP104_; in rtw_set_802_11_add_wep() 494 psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_; in rtw_set_802_11_add_wep() [all …]
|
D | rtw_security.c | 138 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wep_encrypt() local 140 const int keyindex = psecuritypriv->dot11PrivacyKeyIndex; in rtw_wep_encrypt() 165 if (crypto_ops->set_key(psecuritypriv->dot11DefKey[keyindex].skey, in rtw_wep_encrypt() 166 psecuritypriv->dot11DefKeylen[keyindex], NULL, crypto_private) < 0) in rtw_wep_encrypt() 206 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wep_decrypt() local 228 if (crypto_ops->set_key(psecuritypriv->dot11DefKey[keyindex].skey, in rtw_wep_decrypt() 229 psecuritypriv->dot11DefKeylen[keyindex], NULL, crypto_private) < 0) { in rtw_wep_decrypt() 588 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_tkip_encrypt() local 609 prwskey = psecuritypriv->dot118021XGrpKey[psecuritypriv->dot118021XGrpKeyid].skey; in rtw_tkip_encrypt() 667 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_tkip_decrypt() local [all …]
|
D | rtw_mlme.c | 278 struct security_priv *psecuritypriv = &adapter->securitypriv; in rtw_is_same_ibss() local 280 if ((psecuritypriv->dot11PrivacyAlgrthm != _NO_PRIVACY_) && in rtw_is_same_ibss() 283 else if ((psecuritypriv->dot11PrivacyAlgrthm == _NO_PRIVACY_) && in rtw_is_same_ibss() 499 struct security_priv *psecuritypriv = &adapter->securitypriv; in rtw_is_desired_network() local 509 desired_encmode = psecuritypriv->ndisencryptstatus; in rtw_is_desired_network() 1516 int rtw_set_auth(struct adapter *adapter, struct security_priv *psecuritypriv) in rtw_set_auth() argument 1535 psetauthparm->mode = (unsigned char)psecuritypriv->dot11AuthAlgrthm; in rtw_set_auth() 1544 psecuritypriv->dot11AuthAlgrthm)); in rtw_set_auth() 1550 int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, int keyid, u8 set_tx) in rtw_set_key() argument 1569 if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) { in rtw_set_key() [all …]
|
D | rtw_ap.c | 504 struct security_priv *psecuritypriv = &padapter->securitypriv; in update_sta_info_apmode() local 515 if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) in update_sta_info_apmode() 601 struct security_priv *psecuritypriv = &padapter->securitypriv; in start_bss_network() local 636 if ((psecuritypriv->dot11PrivacyAlgrthm != _WEP40_) && in start_bss_network() 637 (psecuritypriv->dot11PrivacyAlgrthm != _WEP104_)) in start_bss_network() 658 val8 = (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) ? 0xcc : 0xcf; in start_bss_network() 746 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_check_beacon_data() local 842 psecuritypriv->wpa_psk = 0; in rtw_check_beacon_data() 847 psecuritypriv->wpa2_group_cipher = _NO_PRIVACY_; in rtw_check_beacon_data() 848 psecuritypriv->wpa2_pairwise_cipher = _NO_PRIVACY_; in rtw_check_beacon_data() [all …]
|
D | rtw_pwrctrl.c | 157 struct security_priv *psecuritypriv = &padapter->securitypriv; in ips_leave() local 176 …if ((psecuritypriv->dot11PrivacyAlgrthm == _WEP40_) || (psecuritypriv->dot11PrivacyAlgrthm == _WEP… in ips_leave() 181 if (keyid == psecuritypriv->dot11PrivacyKeyIndex) in ips_leave() 182 result = rtw_set_key(padapter, psecuritypriv, keyid, 1); in ips_leave() 184 result = rtw_set_key(padapter, psecuritypriv, keyid, 0); in ips_leave()
|
D | rtw_recv.c | 211 struct security_priv *psecuritypriv = &adapter->securitypriv; in recvframe_chkmic() local 229 if (!psecuritypriv) { in recvframe_chkmic() 236 mickey = &psecuritypriv->dot118021XGrprxmickey[prxattrib->key_index].skey[0]; in recvframe_chkmic() 312 prxattrib->ra[3], prxattrib->ra[4], prxattrib->ra[5], psecuritypriv->binstallGrpkey)); in recvframe_chkmic() 330 if (!psecuritypriv->bcheck_grpkey && is_multicast_ether_addr(prxattrib->ra)) { in recvframe_chkmic() 331 psecuritypriv->bcheck_grpkey = true; in recvframe_chkmic() 353 struct security_priv *psecuritypriv = &padapter->securitypriv; in decryptor() local 370 prxattrib->key_index = psecuritypriv->dot11PrivacyKeyIndex; in decryptor() 375 prxattrib->key_index = psecuritypriv->dot118021XGrpKeyid; in decryptor() 382 psecuritypriv->hw_decrypted = false; in decryptor() [all …]
|
/Linux-v5.10/drivers/staging/rtl8723bs/core/ |
D | rtw_ioctl_set.c | 552 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_set_802_11_authentication_mode() local 558 psecuritypriv->ndisauthtype = authmode; in rtw_set_802_11_authentication_mode() 560 …"rtw_set_802_11_authentication_mode:psecuritypriv->ndisauthtype =%d", psecuritypriv->ndisauthtype)… in rtw_set_802_11_authentication_mode() 562 if (psecuritypriv->ndisauthtype > 3) in rtw_set_802_11_authentication_mode() 563 psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_8021X; in rtw_set_802_11_authentication_mode() 565 res = rtw_set_auth(padapter, psecuritypriv); in rtw_set_802_11_authentication_mode() 579 struct security_priv *psecuritypriv = &(padapter->securitypriv); in rtw_set_802_11_add_wep() local 592 psecuritypriv->dot11PrivacyAlgrthm = _WEP40_; in rtw_set_802_11_add_wep() 596 psecuritypriv->dot11PrivacyAlgrthm = _WEP104_; in rtw_set_802_11_add_wep() 600 psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_; in rtw_set_802_11_add_wep() [all …]
|
D | rtw_ap.c | 557 struct security_priv *psecuritypriv = &padapter->securitypriv; in update_sta_info_apmode() local 574 if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) in update_sta_info_apmode() 767 struct security_priv *psecuritypriv = &(padapter->securitypriv); in start_bss_network() local 808 (psecuritypriv->dot11PrivacyAlgrthm != _WEP40_) && in start_bss_network() 809 (psecuritypriv->dot11PrivacyAlgrthm != _WEP104_) in start_bss_network() 833 psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X in start_bss_network() 958 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_check_beacon_data() local 1077 psecuritypriv->wpa_psk = 0; in rtw_check_beacon_data() 1081 psecuritypriv->wpa2_group_cipher = _NO_PRIVACY_; in rtw_check_beacon_data() 1082 psecuritypriv->wpa2_pairwise_cipher = _NO_PRIVACY_; in rtw_check_beacon_data() [all …]
|
D | rtw_security.c | 226 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wep_encrypt() local 237 keylength = psecuritypriv->dot11DefKeylen[psecuritypriv->dot11PrivacyKeyIndex]; in rtw_wep_encrypt() 242 …memcpy(&wepkey[3], &psecuritypriv->dot11DefKey[psecuritypriv->dot11PrivacyKeyIndex].skey[0], keyle… in rtw_wep_encrypt() 267 WEP_SW_ENC_CNT_INC(psecuritypriv, pattrib->ra); in rtw_wep_encrypt() 281 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wep_decrypt() local 290 keylength = psecuritypriv->dot11DefKeylen[keyindex]; in rtw_wep_decrypt() 293 memcpy(&wepkey[3], &psecuritypriv->dot11DefKey[keyindex].skey[0], keylength); in rtw_wep_decrypt() 316 WEP_SW_DEC_CNT_INC(psecuritypriv, prxattrib->ra); in rtw_wep_decrypt() 668 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_tkip_encrypt() local 685 prwskey = psecuritypriv->dot118021XGrpKey[psecuritypriv->dot118021XGrpKeyid].skey; in rtw_tkip_encrypt() [all …]
|
D | rtw_mlme.c | 385 struct security_priv *psecuritypriv = &adapter->securitypriv; in rtw_is_same_ibss() local 387 if ((psecuritypriv->dot11PrivacyAlgrthm != _NO_PRIVACY_) && in rtw_is_same_ibss() 390 else if ((psecuritypriv->dot11PrivacyAlgrthm == _NO_PRIVACY_) && in rtw_is_same_ibss() 712 struct security_priv *psecuritypriv = &adapter->securitypriv; in rtw_is_desired_network() local 722 desired_encmode = psecuritypriv->ndisencryptstatus; in rtw_is_desired_network() 739 if (psecuritypriv->ndisauthtype == Ndis802_11AuthModeWPA2PSK) { in rtw_is_desired_network() 2128 sint rtw_set_auth(struct adapter *adapter, struct security_priv *psecuritypriv) in rtw_set_auth() argument 2148 psetauthparm->mode = (unsigned char)psecuritypriv->dot11AuthAlgrthm; in rtw_set_auth() 2158 …x_mlme_c_, _drv_err_, ("after enqueue set_auth_cmd, auth_mode =%x\n", psecuritypriv->dot11AuthAlgr… in rtw_set_auth() 2166 sint rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, sint keyid, u8 set_t… in rtw_set_key() argument [all …]
|
D | rtw_recv.c | 322 struct security_priv *psecuritypriv = &adapter->securitypriv; in recvframe_chkmic() local 340 mickey = &psecuritypriv->dot118021XGrprxmickey[prxattrib->key_index].skey[0]; in recvframe_chkmic() 346 if (psecuritypriv->binstallGrpkey == false) { in recvframe_chkmic() 401 prxattrib->ra[3], prxattrib->ra[4], prxattrib->ra[5], psecuritypriv->binstallGrpkey)); in recvframe_chkmic() 421 if ((psecuritypriv->bcheck_grpkey == false) && (IS_MCAST(prxattrib->ra) == true)) { in recvframe_chkmic() 422 psecuritypriv->bcheck_grpkey = true; in recvframe_chkmic() 445 struct security_priv *psecuritypriv = &padapter->securitypriv; in decryptor() local 463 prxattrib->key_index = psecuritypriv->dot11PrivacyKeyIndex; in decryptor() 468 prxattrib->key_index = psecuritypriv->dot118021XGrpKeyid; in decryptor() 474 …if ((prxattrib->encrypt > 0) && ((prxattrib->bdecrypted == 0) || (psecuritypriv->sw_decrypt == tru… in decryptor() [all …]
|
/Linux-v5.10/drivers/staging/rtl8188eu/os_dep/ |
D | recv_linux.c | 33 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_handle_tkip_mic_err() local 36 if (psecuritypriv->last_mic_err_time == 0) { in rtw_handle_tkip_mic_err() 37 psecuritypriv->last_mic_err_time = jiffies; in rtw_handle_tkip_mic_err() 41 if (cur_time - psecuritypriv->last_mic_err_time < 60 * HZ) { in rtw_handle_tkip_mic_err() 42 psecuritypriv->btkip_countermeasure = true; in rtw_handle_tkip_mic_err() 43 psecuritypriv->last_mic_err_time = 0; in rtw_handle_tkip_mic_err() 44 psecuritypriv->btkip_countermeasure_time = cur_time; in rtw_handle_tkip_mic_err() 46 psecuritypriv->last_mic_err_time = jiffies; in rtw_handle_tkip_mic_err()
|
D | ioctl_linux.c | 350 struct security_priv *psecuritypriv = &padapter->securitypriv; in wpa_set_encryption() local 421 memcpy(&psecuritypriv->dot11DefKey[wep_key_idx].skey[0], pwep->KeyMaterial, pwep->KeyLength); in wpa_set_encryption() 422 psecuritypriv->dot11DefKeylen[wep_key_idx] = pwep->KeyLength; in wpa_set_encryption() 423 rtw_set_key(padapter, psecuritypriv, wep_key_idx, 0); in wpa_set_encryption() 766 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wx_set_pmkid() local 781 if (!memcmp(psecuritypriv->PMKIDList[j].bssid, strIssueBssid, ETH_ALEN)) { in rtw_wx_set_pmkid() 784 memcpy(psecuritypriv->PMKIDList[j].PMKID, pPMK->pmkid, IW_PMKID_LEN); in rtw_wx_set_pmkid() 785 psecuritypriv->PMKIDList[j].used = true; in rtw_wx_set_pmkid() 786 psecuritypriv->PMKIDIndex = j + 1; in rtw_wx_set_pmkid() 795 __func__, psecuritypriv->PMKIDIndex); in rtw_wx_set_pmkid() [all …]
|
D | os_intfs.c | 366 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_init_default_value() local 382 psecuritypriv->binstallGrpkey = _FAIL; in rtw_init_default_value() 383 psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_Open; in rtw_init_default_value() 384 psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_; in rtw_init_default_value() 385 psecuritypriv->dot11PrivacyKeyIndex = 0; in rtw_init_default_value() 386 psecuritypriv->dot118021XGrpPrivacy = _NO_PRIVACY_; in rtw_init_default_value() 387 psecuritypriv->dot118021XGrpKeyid = 1; in rtw_init_default_value() 388 psecuritypriv->ndisauthtype = Ndis802_11AuthModeOpen; in rtw_init_default_value() 389 psecuritypriv->ndisencryptstatus = Ndis802_11WEPDisabled; in rtw_init_default_value()
|
/Linux-v5.10/drivers/staging/rtl8712/ |
D | rtl871x_ioctl_set.c | 317 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_set_802_11_authentication_mode() local 320 psecuritypriv->ndisauthtype = authmode; in r8712_set_802_11_authentication_mode() 321 if (psecuritypriv->ndisauthtype > 3) in r8712_set_802_11_authentication_mode() 322 psecuritypriv->AuthAlgrthm = 2; /* 802.1x */ in r8712_set_802_11_authentication_mode() 323 if (r8712_set_auth(padapter, psecuritypriv)) in r8712_set_802_11_authentication_mode() 334 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_set_802_11_add_wep() local 341 psecuritypriv->PrivacyAlgrthm = _WEP40_; in r8712_set_802_11_add_wep() 344 psecuritypriv->PrivacyAlgrthm = _WEP104_; in r8712_set_802_11_add_wep() 347 psecuritypriv->PrivacyAlgrthm = _NO_PRIVACY_; in r8712_set_802_11_add_wep() 350 memcpy(psecuritypriv->DefKey[keyid].skey, &wep->KeyMaterial, in r8712_set_802_11_add_wep() [all …]
|
D | rtl871x_mlme.c | 221 struct security_priv *psecuritypriv = &adapter->securitypriv; in r8712_is_same_ibss() local 223 if ((psecuritypriv->PrivacyAlgrthm != _NO_PRIVACY_) && in r8712_is_same_ibss() 226 else if ((psecuritypriv->PrivacyAlgrthm == _NO_PRIVACY_) && in r8712_is_same_ibss() 422 struct security_priv *psecuritypriv = &adapter->securitypriv; in is_desired_network() local 424 if (psecuritypriv->wps_phase) { in is_desired_network() 431 if ((psecuritypriv->PrivacyAlgrthm != _NO_PRIVACY_) && in is_desired_network() 1147 struct security_priv *psecuritypriv) in r8712_set_auth() argument 1162 psetauthparm->mode = (u8)psecuritypriv->AuthAlgrthm; in r8712_set_auth() 1174 struct security_priv *psecuritypriv, in r8712_set_key() argument 1191 if (psecuritypriv->AuthAlgrthm == 2) { /* 802.1X */ in r8712_set_key() [all …]
|
D | rtl871x_security.h | 140 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst) \ argument 142 switch (psecuritypriv->AuthAlgrthm) { \ 146 encry_algo = (u8)psecuritypriv->PrivacyAlgrthm; \ 150 encry_algo = (u8)psecuritypriv->XGrpPrivacy; \
|
D | rtl871x_cmd.c | 344 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_joinbss_cmd() local 370 psecnetwork = &psecuritypriv->sec_bss; in r8712_joinbss_cmd() 372 psecuritypriv->authenticator_ie[0] = (unsigned char) in r8712_joinbss_cmd() 375 memcpy(&psecuritypriv->authenticator_ie[1], in r8712_joinbss_cmd() 378 memcpy(&psecuritypriv->authenticator_ie[1], in r8712_joinbss_cmd() 425 psecuritypriv->supplicant_ie[0] = (u8)psecnetwork->IELength; in r8712_joinbss_cmd() 427 memcpy(&psecuritypriv->supplicant_ie[1], &psecnetwork->IEs[0], in r8712_joinbss_cmd() 430 memcpy(&psecuritypriv->supplicant_ie[1], &psecnetwork->IEs[0], in r8712_joinbss_cmd() 519 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_setstakey_cmd() local 542 psecuritypriv->PrivacyAlgrthm; in r8712_setstakey_cmd() [all …]
|
D | rtl871x_recv.c | 143 struct security_priv *psecuritypriv = &adapter->securitypriv; in r8712_recvframe_chkmic() local 153 mickey = &psecuritypriv->XGrprxmickey[(((idx >> in r8712_recvframe_chkmic() 155 if (!psecuritypriv->binstallGrpkey) in r8712_recvframe_chkmic() 182 if (!psecuritypriv->bcheck_grpkey && in r8712_recvframe_chkmic() 184 psecuritypriv->bcheck_grpkey = true; in r8712_recvframe_chkmic() 197 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_decryptor() local 201 psecuritypriv->sw_decrypt)) { in r8712_decryptor() 202 psecuritypriv->hw_decrypted = false; in r8712_decryptor() 218 psecuritypriv->hw_decrypted = true; in r8712_decryptor() 466 struct security_priv *psecuritypriv = &adapter->securitypriv; in validate_recv_data_frame() local [all …]
|
D | rtl871x_security.c | 160 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_wep_encrypt() local 168 pki = psecuritypriv->PrivacyKeyIndex; in r8712_wep_encrypt() 169 keylength = psecuritypriv->DefKeylen[pki]; in r8712_wep_encrypt() 174 memcpy(&wepkey[3], &psecuritypriv->DefKey[ in r8712_wep_encrypt() 175 psecuritypriv->PrivacyKeyIndex].skey[0], in r8712_wep_encrypt() 218 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_wep_decrypt() local 227 keylength = psecuritypriv->DefKeylen[keyindex]; in r8712_wep_decrypt() 229 memcpy(&wepkey[3], &psecuritypriv->DefKey[ in r8712_wep_decrypt() 230 psecuritypriv->PrivacyKeyIndex].skey[0], in r8712_wep_decrypt() 653 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_tkip_decrypt() local [all …]
|
/Linux-v5.10/drivers/staging/rtl8188eu/include/ |
D | rtw_security.h | 164 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst) \ argument 166 switch (psecuritypriv->dot11AuthAlgrthm) { \ 170 encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm; \ 174 encry_algo = (u8)psecuritypriv->dot118021XGrpPrivacy;\ 179 encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm; \
|
/Linux-v5.10/drivers/staging/rtl8723bs/include/ |
D | rtw_security.h | 208 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst)\ argument 210 switch (psecuritypriv->dot11AuthAlgrthm)\ 215 encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm;\ 219 encry_algo = (u8)psecuritypriv->dot118021XGrpPrivacy;\ 224 encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm;\
|