Home
last modified time | relevance | path

Searched refs:psecuritypriv (Results 1 – 12 of 12) sorted by relevance

/drivers/staging/rtl8712/
Drtl871x_ioctl_set.c337 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_set_802_11_authentication_mode() local
340 psecuritypriv->ndisauthtype = authmode; in r8712_set_802_11_authentication_mode()
341 if (psecuritypriv->ndisauthtype > 3) in r8712_set_802_11_authentication_mode()
342 psecuritypriv->AuthAlgrthm = 2; /* 802.1x */ in r8712_set_802_11_authentication_mode()
343 if (r8712_set_auth(padapter, psecuritypriv) == _SUCCESS) in r8712_set_802_11_authentication_mode()
356 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_set_802_11_add_wep() local
365 psecuritypriv->PrivacyAlgrthm = _WEP40_; in r8712_set_802_11_add_wep()
368 psecuritypriv->PrivacyAlgrthm = _WEP104_; in r8712_set_802_11_add_wep()
371 psecuritypriv->PrivacyAlgrthm = _NO_PRIVACY_; in r8712_set_802_11_add_wep()
374 memcpy(psecuritypriv->DefKey[keyid].skey, &wep->KeyMaterial, in r8712_set_802_11_add_wep()
[all …]
Drtl871x_mlme.c273 struct security_priv *psecuritypriv = &adapter->securitypriv; in r8712_is_same_ibss() local
275 if ((psecuritypriv->PrivacyAlgrthm != _NO_PRIVACY_) && in r8712_is_same_ibss()
278 else if ((psecuritypriv->PrivacyAlgrthm == _NO_PRIVACY_) && in r8712_is_same_ibss()
477 struct security_priv *psecuritypriv = &adapter->securitypriv; in is_desired_network() local
479 if (psecuritypriv->wps_phase == true) { in is_desired_network()
487 if ((psecuritypriv->PrivacyAlgrthm != _NO_PRIVACY_) && in is_desired_network()
1216 struct security_priv *psecuritypriv) in r8712_set_auth() argument
1234 psetauthparm->mode = (u8)psecuritypriv->AuthAlgrthm; in r8712_set_auth()
1246 struct security_priv *psecuritypriv, in r8712_set_key() argument
1263 if (psecuritypriv->AuthAlgrthm == 2) { /* 802.1X */ in r8712_set_key()
[all …]
Drtl871x_security.h144 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst) \ argument
146 switch (psecuritypriv->AuthAlgrthm) { \
150 encry_algo = (u8)psecuritypriv->PrivacyAlgrthm; \
154 encry_algo = (u8)psecuritypriv->XGrpPrivacy; \
Drtl871x_recv.c168 struct security_priv *psecuritypriv = &adapter->securitypriv; in r8712_recvframe_chkmic() local
178 mickey = &psecuritypriv->XGrprxmickey[(((idx >> in r8712_recvframe_chkmic()
180 if (psecuritypriv->binstallGrpkey == false) in r8712_recvframe_chkmic()
206 if ((psecuritypriv->bcheck_grpkey == in r8712_recvframe_chkmic()
209 psecuritypriv->bcheck_grpkey = true; in r8712_recvframe_chkmic()
222 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_decryptor() local
226 (psecuritypriv->sw_decrypt == true))) { in r8712_decryptor()
227 psecuritypriv->hw_decrypted = false; in r8712_decryptor()
243 psecuritypriv->hw_decrypted = true; in r8712_decryptor()
482 struct security_priv *psecuritypriv = &adapter->securitypriv; in validate_recv_data_frame() local
[all …]
Drtl871x_xmit.c197 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_update_attrib() local
311 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in r8712_update_attrib()
336 (psecuritypriv->hw_decrypted == false))) in r8712_update_attrib()
356 struct security_priv *psecuritypriv = &padapter->securitypriv; in xmitframe_addmic() local
375 if (!memcmp(psecuritypriv->XGrptxmickey in xmitframe_addmic()
376 [psecuritypriv->XGrpKeyid].skey, in xmitframe_addmic()
381 psecuritypriv-> in xmitframe_addmic()
382 XGrptxmickey[psecuritypriv-> in xmitframe_addmic()
425 ((psecuritypriv->sw_encrypt) in xmitframe_addmic()
433 ((psecuritypriv->sw_encrypt) ? in xmitframe_addmic()
[all …]
Drtl871x_cmd.c490 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_joinbss_cmd() local
524 psecnetwork = (struct ndis_wlan_bssid_ex *)&psecuritypriv->sec_bss; in r8712_joinbss_cmd()
531 auth = &psecuritypriv->authenticator_ie[0]; in r8712_joinbss_cmd()
532 psecuritypriv->authenticator_ie[0] = (unsigned char) in r8712_joinbss_cmd()
535 memcpy(&psecuritypriv->authenticator_ie[1], in r8712_joinbss_cmd()
538 memcpy(&psecuritypriv->authenticator_ie[1], in r8712_joinbss_cmd()
582 psecuritypriv->supplicant_ie[0] = (u8)psecnetwork->IELength; in r8712_joinbss_cmd()
584 memcpy(&psecuritypriv->supplicant_ie[1], &psecnetwork->IEs[0], in r8712_joinbss_cmd()
587 memcpy(&psecuritypriv->supplicant_ie[1], &psecnetwork->IEs[0], in r8712_joinbss_cmd()
680 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_setstakey_cmd() local
[all …]
Drtl871x_mp_ioctl.c1014 struct security_priv *psecuritypriv = &Adapter->securitypriv; in oid_rt_pro_encryption_ctrl_hdl() local
1025 psecuritypriv->sw_decrypt = false; in oid_rt_pro_encryption_ctrl_hdl()
1026 psecuritypriv->sw_encrypt = false; in oid_rt_pro_encryption_ctrl_hdl()
1029 psecuritypriv->sw_decrypt = true; in oid_rt_pro_encryption_ctrl_hdl()
1030 psecuritypriv->sw_encrypt = true; in oid_rt_pro_encryption_ctrl_hdl()
1033 psecuritypriv->sw_decrypt = true; in oid_rt_pro_encryption_ctrl_hdl()
1034 psecuritypriv->sw_encrypt = false; in oid_rt_pro_encryption_ctrl_hdl()
1037 psecuritypriv->sw_decrypt = false; in oid_rt_pro_encryption_ctrl_hdl()
1038 psecuritypriv->sw_encrypt = true; in oid_rt_pro_encryption_ctrl_hdl()
1042 if ((psecuritypriv->sw_encrypt == false) && in oid_rt_pro_encryption_ctrl_hdl()
[all …]
Drtl871x_ioctl_linux.c404 struct security_priv *psecuritypriv = &padapter->securitypriv; in wpa_set_encryption() local
468 memcpy(&(psecuritypriv->DefKey[wep_key_idx]. in wpa_set_encryption()
471 psecuritypriv->DefKeylen[wep_key_idx] = in wpa_set_encryption()
473 r8712_set_key(padapter, psecuritypriv, wep_key_idx); in wpa_set_encryption()
804 struct security_priv *psecuritypriv = &padapter->securitypriv; in r871x_wx_set_pmkid() local
831 if (!memcmp(psecuritypriv->PMKIDList[j].Bssid, in r871x_wx_set_pmkid()
837 memcpy(psecuritypriv->PMKIDList[j].PMKID, in r871x_wx_set_pmkid()
839 psecuritypriv->PMKIDList[j].bUsed = true; in r871x_wx_set_pmkid()
840 psecuritypriv->PMKIDIndex = j + 1; in r871x_wx_set_pmkid()
849 psecuritypriv->PMKIDIndex); in r871x_wx_set_pmkid()
[all …]
Drtl871x_security.c177 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_wep_encrypt() local
185 keylength = psecuritypriv->DefKeylen[psecuritypriv-> in r8712_wep_encrypt()
191 memcpy(&wepkey[3], &psecuritypriv->DefKey[ in r8712_wep_encrypt()
192 psecuritypriv->PrivacyKeyIndex].skey[0], in r8712_wep_encrypt()
233 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_wep_decrypt() local
242 keylength = psecuritypriv->DefKeylen[keyindex]; in r8712_wep_decrypt()
244 memcpy(&wepkey[3], &psecuritypriv->DefKey[ in r8712_wep_decrypt()
245 psecuritypriv->PrivacyKeyIndex].skey[0], in r8712_wep_decrypt()
665 struct security_priv *psecuritypriv = &padapter->securitypriv; in r8712_tkip_decrypt() local
681 prwskey = &psecuritypriv->XGrpKey[ in r8712_tkip_decrypt()
[all …]
Dos_intfs.c282 struct security_priv *psecuritypriv = &padapter->securitypriv; in init_default_value() local
303 psecuritypriv->sw_encrypt = pregistrypriv->software_encrypt; in init_default_value()
304 psecuritypriv->sw_decrypt = pregistrypriv->software_decrypt; in init_default_value()
305 psecuritypriv->binstallGrpkey = _FAIL; in init_default_value()
Drtl871x_mlme.h202 struct security_priv *psecuritypriv, sint keyid);
204 struct security_priv *psecuritypriv);
Drtl8712_xmit.c422 struct security_priv *psecuritypriv = &padapter->securitypriv; in update_txdesc() local
505 ptxdesc->txdw1 |= cpu_to_le32((psecuritypriv-> in update_txdesc()
708 struct security_priv *psecuritypriv = &padapter->securitypriv; in dump_xframe() local
718 sz = sz - 4 - (psecuritypriv->sw_encrypt ? 0 : in dump_xframe()