Home
last modified time | relevance | path

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

/linux/drivers/staging/rtl8723bs/core/
H A Drtw_ioctl_set.c404 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_set_802_11_authentication_mode() local
408 psecuritypriv->ndisauthtype = authmode; in rtw_set_802_11_authentication_mode()
410 if (psecuritypriv->ndisauthtype > 3) in rtw_set_802_11_authentication_mode()
411 psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_8021X; in rtw_set_802_11_authentication_mode()
413 res = rtw_set_auth(padapter, psecuritypriv); in rtw_set_802_11_authentication_mode()
427 struct security_priv *psecuritypriv = &(padapter->securitypriv); in rtw_set_802_11_add_wep() local
439 psecuritypriv->dot11PrivacyAlgrthm = _WEP40_; in rtw_set_802_11_add_wep()
442 psecuritypriv->dot11PrivacyAlgrthm = _WEP104_; in rtw_set_802_11_add_wep()
445 psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_; in rtw_set_802_11_add_wep()
449 memcpy(&(psecuritypriv->dot11DefKey[keyid].skey[0]), &(wep->key_material), wep->key_length); in rtw_set_802_11_add_wep()
[all …]
H A Drtw_ap.c455 struct security_priv *psecuritypriv = &padapter->securitypriv; in update_sta_info_apmode() local
470 if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) in update_sta_info_apmode()
649 struct security_priv *psecuritypriv = &(padapter->securitypriv); in start_bss_network() local
687 if ((psecuritypriv->dot11PrivacyAlgrthm != _WEP40_) && in start_bss_network()
688 (psecuritypriv->dot11PrivacyAlgrthm != _WEP104_)) in start_bss_network()
711 psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X in start_bss_network()
825 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_check_beacon_data() local
931 psecuritypriv->wpa_psk = 0; in rtw_check_beacon_data()
935 psecuritypriv->wpa2_group_cipher = _NO_PRIVACY_; in rtw_check_beacon_data()
936 psecuritypriv->wpa2_pairwise_cipher = _NO_PRIVACY_; in rtw_check_beacon_data()
[all …]
H A Drtw_security.c49 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wep_encrypt() local
51 struct arc4_ctx *ctx = &psecuritypriv->xmit_arc4_ctx; in rtw_wep_encrypt()
61 keylength = psecuritypriv->dot11DefKeylen[psecuritypriv->dot11PrivacyKeyIndex]; in rtw_wep_encrypt()
66 …memcpy(&wepkey[3], &psecuritypriv->dot11DefKey[psecuritypriv->dot11PrivacyKeyIndex].skey[0], keyle… in rtw_wep_encrypt()
102 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_wep_decrypt() local
103 struct arc4_ctx *ctx = &psecuritypriv->recv_arc4_ctx; in rtw_wep_decrypt()
112 keylength = psecuritypriv->dot11DefKeylen[keyindex]; in rtw_wep_decrypt()
115 memcpy(&wepkey[3], &psecuritypriv->dot11DefKey[keyindex].skey[0], keylength); in rtw_wep_decrypt()
473 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_tkip_encrypt() local
475 struct arc4_ctx *ctx = &psecuritypriv->xmit_arc4_ctx; in rtw_tkip_encrypt()
[all …]
H A Drtw_recv.c309 struct security_priv *psecuritypriv = &adapter->securitypriv; in recvframe_chkmic() local
323 mickey = &psecuritypriv->dot118021XGrprxmickey[prxattrib->key_index].skey[0]; in recvframe_chkmic()
327 if (psecuritypriv->binstallGrpkey == false) { in recvframe_chkmic()
364 if (!psecuritypriv->bcheck_grpkey && in recvframe_chkmic()
366 psecuritypriv->bcheck_grpkey = true; in recvframe_chkmic()
384 struct security_priv *psecuritypriv = &padapter->securitypriv; in decryptor() local
397 prxattrib->key_index = psecuritypriv->dot11PrivacyKeyIndex; in decryptor()
402 prxattrib->key_index = psecuritypriv->dot118021XGrpKeyid; in decryptor()
408 …if ((prxattrib->encrypt > 0) && ((prxattrib->bdecrypted == 0) || (psecuritypriv->sw_decrypt == tru… in decryptor()
409 psecuritypriv->hw_decrypted = false; in decryptor()
[all …]
/linux/drivers/staging/rtl8723bs/os_dep/
H A Drecv_linux.c146 struct security_priv *psecuritypriv = &padapter->securitypriv; in rtw_handle_tkip_mic_err() local
149 if (psecuritypriv->last_mic_err_time == 0) { in rtw_handle_tkip_mic_err()
150 psecuritypriv->last_mic_err_time = jiffies; in rtw_handle_tkip_mic_err()
154 if (cur_time - psecuritypriv->last_mic_err_time < 60*HZ) { in rtw_handle_tkip_mic_err()
155 psecuritypriv->btkip_countermeasure = true; in rtw_handle_tkip_mic_err()
156 psecuritypriv->last_mic_err_time = 0; in rtw_handle_tkip_mic_err()
157 psecuritypriv->btkip_countermeasure_time = cur_time; in rtw_handle_tkip_mic_err()
159 psecuritypriv->last_mic_err_time = jiffies; in rtw_handle_tkip_mic_err()
/linux/drivers/staging/rtl8723bs/include/
H A Drtw_security.h171 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst)\ argument
173 switch (psecuritypriv->dot11AuthAlgrthm) {\
177 encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm;\
181 encry_algo = (u8)psecuritypriv->dot118021XGrpPrivacy;\
186 encry_algo = (u8)psecuritypriv->dot11PrivacyAlgrthm;\
H A Drtw_mlme.h279 extern signed int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, signed …
280 extern signed int rtw_set_auth(struct adapter *adapter, struct security_priv *psecuritypriv);