/drivers/staging/rtl8188eu/core/ |
D | rtw_ioctl_set.c | 466 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_set_802_11_authentication_mode() local 473 psecuritypriv->ndisauthtype = authmode; in rtw_set_802_11_authentication_mode() 477 psecuritypriv->ndisauthtype)); in rtw_set_802_11_authentication_mode() 479 if (psecuritypriv->ndisauthtype > 3) in rtw_set_802_11_authentication_mode() 480 psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_8021X; in rtw_set_802_11_authentication_mode() 482 res = rtw_set_auth(padapter, psecuritypriv); in rtw_set_802_11_authentication_mode() 496 struct security_priv *psecuritypriv = &(padapter->securitypriv); in rtw_set_802_11_add_wep() local 510 psecuritypriv->dot11PrivacyAlgrthm = _WEP40_; in rtw_set_802_11_add_wep() 514 psecuritypriv->dot11PrivacyAlgrthm = _WEP104_; in rtw_set_802_11_add_wep() 518 psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_; in rtw_set_802_11_add_wep() [all …]
|
D | rtw_mlme.c | 298 struct security_priv *psecuritypriv = &adapter->securitypriv; in rtw_is_same_ibss() local 300 if ((psecuritypriv->dot11PrivacyAlgrthm != _NO_PRIVACY_) && in rtw_is_same_ibss() 303 else if ((psecuritypriv->dot11PrivacyAlgrthm == _NO_PRIVACY_) && in rtw_is_same_ibss() 516 struct security_priv *psecuritypriv = &adapter->securitypriv; in rtw_is_desired_network() local 526 desired_encmode = psecuritypriv->ndisencryptstatus; in rtw_is_desired_network() 1559 int rtw_set_auth(struct adapter *adapter, struct security_priv *psecuritypriv) in rtw_set_auth() argument 1579 psetauthparm->mode = (unsigned char)psecuritypriv->dot11AuthAlgrthm; in rtw_set_auth() 1588 psecuritypriv->dot11AuthAlgrthm)); in rtw_set_auth() 1594 int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, int keyid, u8 set_tx) in rtw_set_key() argument 1615 if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) { in rtw_set_key() [all …]
|
D | rtw_ap.c | 634 struct security_priv *psecuritypriv = &padapter->securitypriv; in update_sta_info_apmode() local 645 if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) in update_sta_info_apmode() 737 struct security_priv *psecuritypriv = &(padapter->securitypriv); in start_bss_network() local 768 if ((psecuritypriv->dot11PrivacyAlgrthm != _WEP40_) && in start_bss_network() 769 (psecuritypriv->dot11PrivacyAlgrthm != _WEP104_)) in start_bss_network() 790 val8 = (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) ? 0xcc : 0xcf; in start_bss_network() 871 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_check_beacon_data() local 964 psecuritypriv->wpa_psk = 0; in rtw_check_beacon_data() 969 psecuritypriv->wpa2_group_cipher = _NO_PRIVACY_; in rtw_check_beacon_data() 970 psecuritypriv->wpa2_pairwise_cipher = _NO_PRIVACY_; in rtw_check_beacon_data() [all …]
|
D | rtw_security.c | 149 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wep_encrypt() local 163 keylength = psecuritypriv->dot11DefKeylen[psecuritypriv->dot11PrivacyKeyIndex]; in rtw_wep_encrypt() 168 …memcpy(&wepkey[3], &psecuritypriv->dot11DefKey[psecuritypriv->dot11PrivacyKeyIndex].skey[0], keyle… in rtw_wep_encrypt() 204 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wep_decrypt() local 213 keylength = psecuritypriv->dot11DefKeylen[keyindex]; in rtw_wep_decrypt() 215 memcpy(&wepkey[3], &psecuritypriv->dot11DefKey[keyindex].skey[0], keylength); in rtw_wep_decrypt() 571 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_tkip_encrypt() local 592 prwskey = psecuritypriv->dot118021XGrpKey[psecuritypriv->dot118021XGrpKeyid].skey; in rtw_tkip_encrypt() 651 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_tkip_decrypt() local 662 if (!psecuritypriv->binstallGrpkey) { in rtw_tkip_decrypt() [all …]
|
D | rtw_recv.c | 268 struct security_priv *psecuritypriv = &adapter->securitypriv; in recvframe_chkmic() local 283 if (!psecuritypriv) { in recvframe_chkmic() 289 mickey = &psecuritypriv->dot118021XGrprxmickey[prxattrib->key_index].skey[0]; in recvframe_chkmic() 362 prxattrib->ra[3], prxattrib->ra[4], prxattrib->ra[5], psecuritypriv->binstallGrpkey)); in recvframe_chkmic() 380 if ((!psecuritypriv->bcheck_grpkey) && (IS_MCAST(prxattrib->ra))) { in recvframe_chkmic() 381 psecuritypriv->bcheck_grpkey = true; in recvframe_chkmic() 402 struct security_priv *psecuritypriv = &padapter->securitypriv; in decryptor() local 418 prxattrib->key_index = psecuritypriv->dot11PrivacyKeyIndex; in decryptor() 423 prxattrib->key_index = psecuritypriv->dot118021XGrpKeyid; in decryptor() 429 if ((prxattrib->encrypt > 0) && ((prxattrib->bdecrypted == 0) || (psecuritypriv->sw_decrypt))) { in decryptor() [all …]
|
D | rtw_pwrctrl.c | 168 struct security_priv *psecuritypriv = &(padapter->securitypriv); in ips_leave() local 188 …if ((_WEP40_ == psecuritypriv->dot11PrivacyAlgrthm) || (_WEP104_ == psecuritypriv->dot11PrivacyAlg… in ips_leave() 193 if (keyid == psecuritypriv->dot11PrivacyKeyIndex) in ips_leave() 194 result = rtw_set_key(padapter, psecuritypriv, keyid, 1); in ips_leave() 196 result = rtw_set_key(padapter, psecuritypriv, keyid, 0); in ips_leave()
|
D | rtw_cmd.c | 374 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_joinbss_cmd() local 414 psecnetwork = (struct wlan_bssid_ex *)&psecuritypriv->sec_bss; in rtw_joinbss_cmd() 429 psecuritypriv->authenticator_ie[0] = (unsigned char)psecnetwork->IELength; in rtw_joinbss_cmd() 432 memcpy(&psecuritypriv->authenticator_ie[1], &psecnetwork->IEs[12], psecnetwork->IELength-12); in rtw_joinbss_cmd() 434 memcpy(&psecuritypriv->authenticator_ie[1], &psecnetwork->IEs[12], (256-1)); in rtw_joinbss_cmd() 575 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_setstakey_cmd() local 596 psetstakey_para->algorithm = (unsigned char)psecuritypriv->dot11PrivacyAlgrthm; in rtw_setstakey_cmd() 598 GET_ENCRY_ALGO(psecuritypriv, sta, psetstakey_para->algorithm, false); in rtw_setstakey_cmd() 603 …memcpy(&psetstakey_para->key, &psecuritypriv->dot118021XGrpKey[psecuritypriv->dot118021XGrpKeyid].… in rtw_setstakey_cmd()
|
D | rtw_xmit.c | 424 struct security_priv *psecuritypriv = &padapter->securitypriv; in update_attrib() local 540 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in update_attrib() 542 switch (psecuritypriv->dot11AuthAlgrthm) { in update_attrib() 546 pattrib->key_idx = (u8)psecuritypriv->dot11PrivacyKeyIndex; in update_attrib() 550 pattrib->key_idx = (u8)psecuritypriv->dot118021XGrpKeyid; in update_attrib() 594 (padapter->securitypriv.sw_encrypt || !psecuritypriv->hw_decrypted)) { in update_attrib() 619 struct security_priv *psecuritypriv = &padapter->securitypriv; in xmitframe_addmic() local 643 …if (!memcmp(psecuritypriv->dot118021XGrptxmickey[psecuritypriv->dot118021XGrpKeyid].skey, null_key… in xmitframe_addmic() 646 …rtw_secmicsetkey(&micdata, psecuritypriv->dot118021XGrptxmickey[psecuritypriv->dot118021XGrpKeyid]… in xmitframe_addmic()
|
/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 | 259 struct security_priv *psecuritypriv = &adapter->securitypriv; in r8712_is_same_ibss() local 261 if ((psecuritypriv->PrivacyAlgrthm != _NO_PRIVACY_) && in r8712_is_same_ibss() 264 else if ((psecuritypriv->PrivacyAlgrthm == _NO_PRIVACY_) && in r8712_is_same_ibss() 465 struct security_priv *psecuritypriv = &adapter->securitypriv; in is_desired_network() local 467 if (psecuritypriv->wps_phase) { in is_desired_network() 474 if ((psecuritypriv->PrivacyAlgrthm != _NO_PRIVACY_) && in is_desired_network() 1200 struct security_priv *psecuritypriv) in r8712_set_auth() argument 1215 psetauthparm->mode = (u8)psecuritypriv->AuthAlgrthm; in r8712_set_auth() 1227 struct security_priv *psecuritypriv, in r8712_set_key() argument 1244 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 | 163 struct security_priv *psecuritypriv = &adapter->securitypriv; in r8712_recvframe_chkmic() local 173 mickey = &psecuritypriv->XGrprxmickey[(((idx >> in r8712_recvframe_chkmic() 175 if (!psecuritypriv->binstallGrpkey) in r8712_recvframe_chkmic() 202 if (!psecuritypriv->bcheck_grpkey && in r8712_recvframe_chkmic() 204 psecuritypriv->bcheck_grpkey = true; in r8712_recvframe_chkmic() 217 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_decryptor() local 221 psecuritypriv->sw_decrypt)) { in r8712_decryptor() 222 psecuritypriv->hw_decrypted = false; in r8712_decryptor() 238 psecuritypriv->hw_decrypted = true; in r8712_decryptor() 487 struct security_priv *psecuritypriv = &adapter->securitypriv; in validate_recv_data_frame() local [all …]
|
D | rtl871x_xmit.c | 195 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_update_attrib() local 313 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in r8712_update_attrib() 339 !psecuritypriv->hw_decrypted)) in r8712_update_attrib() 361 struct security_priv *psecuritypriv = &padapter->securitypriv; in xmitframe_addmic() local 379 if (!memcmp(psecuritypriv->XGrptxmickey in xmitframe_addmic() 380 [psecuritypriv->XGrpKeyid].skey, in xmitframe_addmic() 385 psecuritypriv-> in xmitframe_addmic() 386 XGrptxmickey[psecuritypriv-> in xmitframe_addmic() 429 ((psecuritypriv->sw_encrypt) in xmitframe_addmic() 437 ((psecuritypriv->sw_encrypt) ? in xmitframe_addmic() [all …]
|
D | rtl871x_cmd.c | 453 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_joinbss_cmd() local 479 psecnetwork = &psecuritypriv->sec_bss; in r8712_joinbss_cmd() 485 psecuritypriv->authenticator_ie[0] = (unsigned char) in r8712_joinbss_cmd() 488 memcpy(&psecuritypriv->authenticator_ie[1], in r8712_joinbss_cmd() 491 memcpy(&psecuritypriv->authenticator_ie[1], in r8712_joinbss_cmd() 538 psecuritypriv->supplicant_ie[0] = (u8)psecnetwork->IELength; in r8712_joinbss_cmd() 540 memcpy(&psecuritypriv->supplicant_ie[1], &psecnetwork->IEs[0], in r8712_joinbss_cmd() 543 memcpy(&psecuritypriv->supplicant_ie[1], &psecnetwork->IEs[0], in r8712_joinbss_cmd() 634 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_setstakey_cmd() local 657 psecuritypriv->PrivacyAlgrthm; in r8712_setstakey_cmd() [all …]
|
D | rtl871x_ioctl_linux.c | 374 struct security_priv *psecuritypriv = &padapter->securitypriv; in wpa_set_encryption() local 433 memcpy(&(psecuritypriv->DefKey[wep_key_idx]. in wpa_set_encryption() 436 psecuritypriv->DefKeylen[wep_key_idx] = in wpa_set_encryption() 438 r8712_set_key(padapter, psecuritypriv, wep_key_idx); in wpa_set_encryption() 769 struct security_priv *psecuritypriv = &padapter->securitypriv; in r871x_wx_set_pmkid() local 795 if (!memcmp(psecuritypriv->PMKIDList[j].Bssid, in r871x_wx_set_pmkid() 802 memcpy(psecuritypriv->PMKIDList[j].PMKID, in r871x_wx_set_pmkid() 804 psecuritypriv->PMKIDList[j].bUsed = true; in r871x_wx_set_pmkid() 805 psecuritypriv->PMKIDIndex = j + 1; in r871x_wx_set_pmkid() 813 __func__, psecuritypriv->PMKIDIndex); in r871x_wx_set_pmkid() [all …]
|
D | rtl871x_security.c | 173 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_wep_encrypt() local 181 keylength = psecuritypriv->DefKeylen[psecuritypriv-> in r8712_wep_encrypt() 187 memcpy(&wepkey[3], &psecuritypriv->DefKey[ in r8712_wep_encrypt() 188 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 682 prwskey = &psecuritypriv->XGrpKey[ in r8712_tkip_decrypt() [all …]
|
D | os_intfs.c | 275 struct security_priv *psecuritypriv = &padapter->securitypriv; in init_default_value() local 296 psecuritypriv->sw_encrypt = pregistrypriv->software_encrypt; in init_default_value() 297 psecuritypriv->sw_decrypt = pregistrypriv->software_decrypt; in init_default_value() 298 psecuritypriv->binstallGrpkey = _FAIL; in init_default_value()
|
D | rtl871x_mlme.h | 206 struct security_priv *psecuritypriv, sint keyid); 208 struct security_priv *psecuritypriv);
|
D | rtl8712_xmit.c | 426 struct security_priv *psecuritypriv = &padapter->securitypriv; in update_txdesc() local 509 ptxdesc->txdw1 |= cpu_to_le32((psecuritypriv-> in update_txdesc() 717 struct security_priv *psecuritypriv = &padapter->securitypriv; in dump_xframe() local 727 sz = sz - 4 - (psecuritypriv->sw_encrypt ? 0 : in dump_xframe()
|
/drivers/staging/rtl8188eu/os_dep/ |
D | recv_linux.c | 47 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_handle_tkip_mic_err() local 50 if (psecuritypriv->last_mic_err_time == 0) { in rtw_handle_tkip_mic_err() 51 psecuritypriv->last_mic_err_time = jiffies; in rtw_handle_tkip_mic_err() 55 if (cur_time - psecuritypriv->last_mic_err_time < 60*HZ) { in rtw_handle_tkip_mic_err() 56 psecuritypriv->btkip_countermeasure = true; in rtw_handle_tkip_mic_err() 57 psecuritypriv->last_mic_err_time = 0; in rtw_handle_tkip_mic_err() 58 psecuritypriv->btkip_countermeasure_time = cur_time; in rtw_handle_tkip_mic_err() 60 psecuritypriv->last_mic_err_time = jiffies; in rtw_handle_tkip_mic_err()
|
D | ioctl_linux.c | 361 struct security_priv *psecuritypriv = &padapter->securitypriv; in wpa_set_encryption() local 434 … memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), pwep->KeyMaterial, pwep->KeyLength); in wpa_set_encryption() 435 psecuritypriv->dot11DefKeylen[wep_key_idx] = pwep->KeyLength; in wpa_set_encryption() 436 rtw_set_key(padapter, psecuritypriv, wep_key_idx, 0); in wpa_set_encryption() 786 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wx_set_pmkid() local 802 if (!memcmp(psecuritypriv->PMKIDList[j].Bssid, strIssueBssid, ETH_ALEN)) { in rtw_wx_set_pmkid() 805 memcpy(psecuritypriv->PMKIDList[j].PMKID, pPMK->pmkid, IW_PMKID_LEN); in rtw_wx_set_pmkid() 806 psecuritypriv->PMKIDList[j].bUsed = true; in rtw_wx_set_pmkid() 807 psecuritypriv->PMKIDIndex = j+1; in rtw_wx_set_pmkid() 816 psecuritypriv->PMKIDIndex); in rtw_wx_set_pmkid() [all …]
|
D | os_intfs.c | 380 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_init_default_value() local 396 psecuritypriv->binstallGrpkey = _FAIL; in rtw_init_default_value() 397 psecuritypriv->sw_encrypt = pregistrypriv->software_encrypt; in rtw_init_default_value() 398 psecuritypriv->sw_decrypt = pregistrypriv->software_decrypt; in rtw_init_default_value() 399 psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_Open; in rtw_init_default_value() 400 psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_; in rtw_init_default_value() 401 psecuritypriv->dot11PrivacyKeyIndex = 0; in rtw_init_default_value() 402 psecuritypriv->dot118021XGrpPrivacy = _NO_PRIVACY_; in rtw_init_default_value() 403 psecuritypriv->dot118021XGrpKeyid = 1; in rtw_init_default_value() 404 psecuritypriv->ndisauthtype = Ndis802_11AuthModeOpen; in rtw_init_default_value() [all …]
|
/drivers/staging/rtl8188eu/include/ |
D | rtw_security.h | 167 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst) \ argument 169 switch (psecuritypriv->dot11AuthAlgrthm) { \ 173 encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm; \ 177 encry_algo = (u8)psecuritypriv->dot118021XGrpPrivacy;\ 182 encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm; \
|
D | rtw_mlme.h | 423 int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, 425 int rtw_set_auth(struct adapter *adapter, struct security_priv *psecuritypriv);
|
/drivers/staging/rtl8188eu/hal/ |
D | rtl8188eu_xmit.c | 349 struct security_priv *psecuritypriv = &adapt->securitypriv; in rtw_dump_xframe() local 368 sz = sz - 4 - (psecuritypriv->sw_encrypt ? 0 : pattrib->icv_len); in rtw_dump_xframe()
|