/Linux-v4.19/drivers/staging/rtl8723bs/os_dep/ |
D | ioctl_cfg80211.c | 594 struct security_priv* psecuritypriv =&(padapter->securitypriv); in rtw_cfg80211_ap_set_encryption() local 659 if (psecuritypriv->bWepDefaultKeyIdxSet == 0) in rtw_cfg80211_ap_set_encryption() 663 psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_Auto; in rtw_cfg80211_ap_set_encryption() 664 psecuritypriv->ndisencryptstatus = Ndis802_11Encryption1Enabled; in rtw_cfg80211_ap_set_encryption() 665 psecuritypriv->dot11PrivacyAlgrthm = _WEP40_; in rtw_cfg80211_ap_set_encryption() 666 psecuritypriv->dot118021XGrpPrivacy = _WEP40_; in rtw_cfg80211_ap_set_encryption() 670 psecuritypriv->dot11PrivacyAlgrthm = _WEP104_; in rtw_cfg80211_ap_set_encryption() 671 psecuritypriv->dot118021XGrpPrivacy = _WEP104_; in rtw_cfg80211_ap_set_encryption() 674 psecuritypriv->dot11PrivacyKeyIndex = wep_key_idx; in rtw_cfg80211_ap_set_encryption() 677 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 | 200 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_handle_tkip_mic_err() local 203 if (psecuritypriv->last_mic_err_time == 0) in rtw_handle_tkip_mic_err() 205 psecuritypriv->last_mic_err_time = jiffies; in rtw_handle_tkip_mic_err() 211 if (cur_time - psecuritypriv->last_mic_err_time < 60*HZ) in rtw_handle_tkip_mic_err() 213 psecuritypriv->btkip_countermeasure = true; in rtw_handle_tkip_mic_err() 214 psecuritypriv->last_mic_err_time = 0; in rtw_handle_tkip_mic_err() 215 psecuritypriv->btkip_countermeasure_time = cur_time; in rtw_handle_tkip_mic_err() 219 psecuritypriv->last_mic_err_time = jiffies; in rtw_handle_tkip_mic_err()
|
D | ioctl_linux.c | 434 struct security_priv *psecuritypriv = &padapter->securitypriv; in wpa_set_encryption() local 522 memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), pwep->KeyMaterial, pwep->KeyLength); in wpa_set_encryption() 523 psecuritypriv->dot11DefKeylen[wep_key_idx]=pwep->KeyLength; in wpa_set_encryption() 524 rtw_set_key(padapter, psecuritypriv, wep_key_idx, 0, true); in wpa_set_encryption() 948 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wx_set_pmkid() local 972 if (!memcmp(psecuritypriv->PMKIDList[j].Bssid, strIssueBssid, ETH_ALEN)) { in rtw_wx_set_pmkid() 976 memcpy(psecuritypriv->PMKIDList[j].PMKID, pPMK->pmkid, IW_PMKID_LEN); in rtw_wx_set_pmkid() 977 psecuritypriv->PMKIDList[ j ].bUsed = true; in rtw_wx_set_pmkid() 978 psecuritypriv->PMKIDIndex = j+1; in rtw_wx_set_pmkid() 987 psecuritypriv->PMKIDIndex); in rtw_wx_set_pmkid() [all …]
|
/Linux-v4.19/drivers/staging/rtl8188eu/core/ |
D | rtw_ioctl_set.c | 443 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_set_802_11_authentication_mode() local 449 psecuritypriv->ndisauthtype = authmode; in rtw_set_802_11_authentication_mode() 453 psecuritypriv->ndisauthtype)); in rtw_set_802_11_authentication_mode() 455 if (psecuritypriv->ndisauthtype > 3) in rtw_set_802_11_authentication_mode() 456 psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_8021X; in rtw_set_802_11_authentication_mode() 458 res = rtw_set_auth(padapter, psecuritypriv); in rtw_set_802_11_authentication_mode() 471 struct security_priv *psecuritypriv = &(padapter->securitypriv); in rtw_set_802_11_add_wep() local 484 psecuritypriv->dot11PrivacyAlgrthm = _WEP40_; in rtw_set_802_11_add_wep() 488 psecuritypriv->dot11PrivacyAlgrthm = _WEP104_; in rtw_set_802_11_add_wep() 492 psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_; in rtw_set_802_11_add_wep() [all …]
|
D | rtw_mlme.c | 287 struct security_priv *psecuritypriv = &adapter->securitypriv; in rtw_is_same_ibss() local 289 if ((psecuritypriv->dot11PrivacyAlgrthm != _NO_PRIVACY_) && in rtw_is_same_ibss() 292 else if ((psecuritypriv->dot11PrivacyAlgrthm == _NO_PRIVACY_) && in rtw_is_same_ibss() 503 struct security_priv *psecuritypriv = &adapter->securitypriv; in rtw_is_desired_network() local 513 desired_encmode = psecuritypriv->ndisencryptstatus; in rtw_is_desired_network() 1540 int rtw_set_auth(struct adapter *adapter, struct security_priv *psecuritypriv) in rtw_set_auth() argument 1559 psetauthparm->mode = (unsigned char)psecuritypriv->dot11AuthAlgrthm; in rtw_set_auth() 1568 psecuritypriv->dot11AuthAlgrthm)); in rtw_set_auth() 1574 int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, int keyid, u8 set_tx) in rtw_set_key() argument 1593 if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) { in rtw_set_key() [all …]
|
D | rtw_ap.c | 508 struct security_priv *psecuritypriv = &padapter->securitypriv; in update_sta_info_apmode() local 519 if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) in update_sta_info_apmode() 610 struct security_priv *psecuritypriv = &padapter->securitypriv; in start_bss_network() local 645 if ((psecuritypriv->dot11PrivacyAlgrthm != _WEP40_) && in start_bss_network() 646 (psecuritypriv->dot11PrivacyAlgrthm != _WEP104_)) in start_bss_network() 667 val8 = (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) ? 0xcc : 0xcf; in start_bss_network() 750 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_check_beacon_data() local 841 psecuritypriv->wpa_psk = 0; in rtw_check_beacon_data() 846 psecuritypriv->wpa2_group_cipher = _NO_PRIVACY_; in rtw_check_beacon_data() 847 psecuritypriv->wpa2_pairwise_cipher = _NO_PRIVACY_; in rtw_check_beacon_data() [all …]
|
D | rtw_security.c | 139 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wep_encrypt() local 141 const int keyindex = psecuritypriv->dot11PrivacyKeyIndex; in rtw_wep_encrypt() 166 if (crypto_ops->set_key(psecuritypriv->dot11DefKey[keyindex].skey, in rtw_wep_encrypt() 167 psecuritypriv->dot11DefKeylen[keyindex], NULL, crypto_private) < 0) in rtw_wep_encrypt() 207 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wep_decrypt() local 229 if (crypto_ops->set_key(psecuritypriv->dot11DefKey[keyindex].skey, in rtw_wep_decrypt() 230 psecuritypriv->dot11DefKeylen[keyindex], NULL, crypto_private) < 0) { in rtw_wep_decrypt() 591 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_tkip_encrypt() local 612 prwskey = psecuritypriv->dot118021XGrpKey[psecuritypriv->dot118021XGrpKeyid].skey; in rtw_tkip_encrypt() 671 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_tkip_decrypt() local [all …]
|
D | rtw_pwrctrl.c | 157 struct security_priv *psecuritypriv = &(padapter->securitypriv); in ips_leave() local 176 …if ((_WEP40_ == psecuritypriv->dot11PrivacyAlgrthm) || (_WEP104_ == psecuritypriv->dot11PrivacyAlg… 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 | 219 struct security_priv *psecuritypriv = &adapter->securitypriv; in recvframe_chkmic() local 237 if (!psecuritypriv) { in recvframe_chkmic() 244 mickey = &psecuritypriv->dot118021XGrprxmickey[prxattrib->key_index].skey[0]; in recvframe_chkmic() 320 prxattrib->ra[3], prxattrib->ra[4], prxattrib->ra[5], psecuritypriv->binstallGrpkey)); in recvframe_chkmic() 338 if ((!psecuritypriv->bcheck_grpkey) && (IS_MCAST(prxattrib->ra))) { in recvframe_chkmic() 339 psecuritypriv->bcheck_grpkey = true; in recvframe_chkmic() 361 struct security_priv *psecuritypriv = &padapter->securitypriv; in decryptor() local 378 prxattrib->key_index = psecuritypriv->dot11PrivacyKeyIndex; in decryptor() 383 prxattrib->key_index = psecuritypriv->dot118021XGrpKeyid; in decryptor() 390 psecuritypriv->hw_decrypted = false; in decryptor() [all …]
|
/Linux-v4.19/drivers/staging/rtl8723bs/core/ |
D | rtw_ioctl_set.c | 559 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_set_802_11_authentication_mode() local 565 psecuritypriv->ndisauthtype = authmode; in rtw_set_802_11_authentication_mode() 567 …"rtw_set_802_11_authentication_mode:psecuritypriv->ndisauthtype =%d", psecuritypriv->ndisauthtype)… in rtw_set_802_11_authentication_mode() 569 if (psecuritypriv->ndisauthtype > 3) in rtw_set_802_11_authentication_mode() 570 psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_8021X; in rtw_set_802_11_authentication_mode() 572 res = rtw_set_auth(padapter, psecuritypriv); in rtw_set_802_11_authentication_mode() 586 struct security_priv *psecuritypriv = &(padapter->securitypriv); in rtw_set_802_11_add_wep() local 599 psecuritypriv->dot11PrivacyAlgrthm = _WEP40_; in rtw_set_802_11_add_wep() 603 psecuritypriv->dot11PrivacyAlgrthm = _WEP104_; in rtw_set_802_11_add_wep() 607 psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_; in rtw_set_802_11_add_wep() [all …]
|
D | rtw_ap.c | 592 struct security_priv *psecuritypriv = &padapter->securitypriv; in update_sta_info_apmode() local 609 if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) in update_sta_info_apmode() 820 struct security_priv *psecuritypriv = &(padapter->securitypriv); in start_bss_network() local 868 (psecuritypriv->dot11PrivacyAlgrthm != _WEP40_) && in start_bss_network() 869 (psecuritypriv->dot11PrivacyAlgrthm != _WEP104_) in start_bss_network() 893 psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X in start_bss_network() 1031 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_check_beacon_data() local 1158 psecuritypriv->wpa_psk = 0; in rtw_check_beacon_data() 1162 psecuritypriv->wpa2_group_cipher = _NO_PRIVACY_; in rtw_check_beacon_data() 1163 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() 310 WEP_SW_DEC_CNT_INC(psecuritypriv, prxattrib->ra); in rtw_wep_decrypt() 666 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_tkip_encrypt() local 702 prwskey = psecuritypriv->dot118021XGrpKey[psecuritypriv->dot118021XGrpKeyid].skey; in rtw_tkip_encrypt() [all …]
|
D | rtw_mlme.c | 416 struct security_priv *psecuritypriv = &adapter->securitypriv; in rtw_is_same_ibss() local 418 if ((psecuritypriv->dot11PrivacyAlgrthm != _NO_PRIVACY_) && in rtw_is_same_ibss() 421 else if ((psecuritypriv->dot11PrivacyAlgrthm == _NO_PRIVACY_) && in rtw_is_same_ibss() 750 struct security_priv *psecuritypriv = &adapter->securitypriv; in rtw_is_desired_network() local 760 desired_encmode = psecuritypriv->ndisencryptstatus; in rtw_is_desired_network() 777 if (psecuritypriv->ndisauthtype == Ndis802_11AuthModeWPA2PSK) { in rtw_is_desired_network() 2261 sint rtw_set_auth(struct adapter *adapter, struct security_priv *psecuritypriv) in rtw_set_auth() argument 2282 psetauthparm->mode = (unsigned char)psecuritypriv->dot11AuthAlgrthm; in rtw_set_auth() 2293 …x_mlme_c_, _drv_err_, ("after enqueue set_auth_cmd, auth_mode =%x\n", psecuritypriv->dot11AuthAlgr… in rtw_set_auth() 2301 sint rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, sint keyid, u8 set_t… in rtw_set_key() argument [all …]
|
/Linux-v4.19/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 | 353 struct security_priv *psecuritypriv = &padapter->securitypriv; in wpa_set_encryption() local 424 … memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), pwep->KeyMaterial, pwep->KeyLength); in wpa_set_encryption() 425 psecuritypriv->dot11DefKeylen[wep_key_idx] = pwep->KeyLength; in wpa_set_encryption() 426 rtw_set_key(padapter, psecuritypriv, wep_key_idx, 0); in wpa_set_encryption() 777 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wx_set_pmkid() local 793 if (!memcmp(psecuritypriv->PMKIDList[j].Bssid, strIssueBssid, ETH_ALEN)) { in rtw_wx_set_pmkid() 796 memcpy(psecuritypriv->PMKIDList[j].PMKID, pPMK->pmkid, IW_PMKID_LEN); in rtw_wx_set_pmkid() 797 psecuritypriv->PMKIDList[j].bUsed = true; in rtw_wx_set_pmkid() 798 psecuritypriv->PMKIDIndex = j+1; in rtw_wx_set_pmkid() 807 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-v4.19/drivers/staging/rtl8712/ |
D | rtl871x_ioctl_set.c | 329 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_set_802_11_authentication_mode() local 332 psecuritypriv->ndisauthtype = authmode; in r8712_set_802_11_authentication_mode() 333 if (psecuritypriv->ndisauthtype > 3) in r8712_set_802_11_authentication_mode() 334 psecuritypriv->AuthAlgrthm = 2; /* 802.1x */ in r8712_set_802_11_authentication_mode() 335 if (r8712_set_auth(padapter, psecuritypriv) == _SUCCESS) in r8712_set_802_11_authentication_mode() 346 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_set_802_11_add_wep() local 353 psecuritypriv->PrivacyAlgrthm = _WEP40_; in r8712_set_802_11_add_wep() 356 psecuritypriv->PrivacyAlgrthm = _WEP104_; in r8712_set_802_11_add_wep() 359 psecuritypriv->PrivacyAlgrthm = _NO_PRIVACY_; in r8712_set_802_11_add_wep() 362 memcpy(psecuritypriv->DefKey[keyid].skey, &wep->KeyMaterial, in r8712_set_802_11_add_wep() [all …]
|
D | rtl871x_mlme.c | 257 struct security_priv *psecuritypriv = &adapter->securitypriv; in r8712_is_same_ibss() local 259 if ((psecuritypriv->PrivacyAlgrthm != _NO_PRIVACY_) && in r8712_is_same_ibss() 262 else if ((psecuritypriv->PrivacyAlgrthm == _NO_PRIVACY_) && in r8712_is_same_ibss() 458 struct security_priv *psecuritypriv = &adapter->securitypriv; in is_desired_network() local 460 if (psecuritypriv->wps_phase) { in is_desired_network() 467 if ((psecuritypriv->PrivacyAlgrthm != _NO_PRIVACY_) && in is_desired_network() 1193 struct security_priv *psecuritypriv) in r8712_set_auth() argument 1208 psetauthparm->mode = (u8)psecuritypriv->AuthAlgrthm; in r8712_set_auth() 1220 struct security_priv *psecuritypriv, in r8712_set_key() argument 1237 if (psecuritypriv->AuthAlgrthm == 2) { /* 802.1X */ in r8712_set_key() [all …]
|
D | rtl871x_security.h | 152 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst) \ argument 154 switch (psecuritypriv->AuthAlgrthm) { \ 158 encry_algo = (u8)psecuritypriv->PrivacyAlgrthm; \ 162 encry_algo = (u8)psecuritypriv->XGrpPrivacy; \
|
D | rtl871x_recv.c | 160 struct security_priv *psecuritypriv = &adapter->securitypriv; in r8712_recvframe_chkmic() local 170 mickey = &psecuritypriv->XGrprxmickey[(((idx >> in r8712_recvframe_chkmic() 172 if (!psecuritypriv->binstallGrpkey) in r8712_recvframe_chkmic() 199 if (!psecuritypriv->bcheck_grpkey && in r8712_recvframe_chkmic() 201 psecuritypriv->bcheck_grpkey = true; in r8712_recvframe_chkmic() 214 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_decryptor() local 218 psecuritypriv->sw_decrypt)) { in r8712_decryptor() 219 psecuritypriv->hw_decrypted = false; in r8712_decryptor() 235 psecuritypriv->hw_decrypted = true; in r8712_decryptor() 484 struct security_priv *psecuritypriv = &adapter->securitypriv; in validate_recv_data_frame() local [all …]
|
D | rtl871x_xmit.c | 198 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_update_attrib() local 317 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in r8712_update_attrib() 343 !psecuritypriv->hw_decrypted)) in r8712_update_attrib() 365 struct security_priv *psecuritypriv = &padapter->securitypriv; in xmitframe_addmic() local 383 if (!memcmp(psecuritypriv->XGrptxmickey in xmitframe_addmic() 384 [psecuritypriv->XGrpKeyid].skey, in xmitframe_addmic() 389 psecuritypriv-> in xmitframe_addmic() 390 XGrptxmickey[psecuritypriv-> in xmitframe_addmic() 431 ((psecuritypriv->sw_encrypt) in xmitframe_addmic() 439 ((psecuritypriv->sw_encrypt) ? in xmitframe_addmic() [all …]
|
D | rtl871x_cmd.c | 456 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_joinbss_cmd() local 482 psecnetwork = &psecuritypriv->sec_bss; in r8712_joinbss_cmd() 488 psecuritypriv->authenticator_ie[0] = (unsigned char) in r8712_joinbss_cmd() 491 memcpy(&psecuritypriv->authenticator_ie[1], in r8712_joinbss_cmd() 494 memcpy(&psecuritypriv->authenticator_ie[1], in r8712_joinbss_cmd() 541 psecuritypriv->supplicant_ie[0] = (u8)psecnetwork->IELength; in r8712_joinbss_cmd() 543 memcpy(&psecuritypriv->supplicant_ie[1], &psecnetwork->IEs[0], in r8712_joinbss_cmd() 546 memcpy(&psecuritypriv->supplicant_ie[1], &psecnetwork->IEs[0], in r8712_joinbss_cmd() 637 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_setstakey_cmd() local 660 psecuritypriv->PrivacyAlgrthm; in r8712_setstakey_cmd() [all …]
|
D | rtl871x_security.c | 172 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_wep_encrypt() local 180 pki = psecuritypriv->PrivacyKeyIndex; in r8712_wep_encrypt() 181 keylength = psecuritypriv->DefKeylen[pki]; in r8712_wep_encrypt() 186 memcpy(&wepkey[3], &psecuritypriv->DefKey[ in r8712_wep_encrypt() 187 psecuritypriv->PrivacyKeyIndex].skey[0], in r8712_wep_encrypt() 230 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_wep_decrypt() local 239 keylength = psecuritypriv->DefKeylen[keyindex]; in r8712_wep_decrypt() 241 memcpy(&wepkey[3], &psecuritypriv->DefKey[ in r8712_wep_decrypt() 242 psecuritypriv->PrivacyKeyIndex].skey[0], in r8712_wep_decrypt() 665 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_tkip_decrypt() local [all …]
|
/Linux-v4.19/drivers/staging/rtl8188eu/include/ |
D | rtw_security.h | 165 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst) \ argument 167 switch (psecuritypriv->dot11AuthAlgrthm) { \ 171 encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm; \ 175 encry_algo = (u8)psecuritypriv->dot118021XGrpPrivacy;\ 180 encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm; \
|
/Linux-v4.19/drivers/staging/rtl8723bs/include/ |
D | rtw_security.h | 210 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst)\ argument 212 switch (psecuritypriv->dot11AuthAlgrthm)\ 217 encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm;\ 221 encry_algo = (u8)psecuritypriv->dot118021XGrpPrivacy;\ 226 encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm;\
|