mirror of
https://github.com/torvalds/linux.git
synced 2026-10-12 13:27:02 +02:00
staging: rtl8723bs: Rename camelcase enum value dot11AuthAlgrthm_Open
Rename enum value dot11AuthAlgrthm_Open to dot11_auth_algrthm_open in enum to fix checkpatch.pl CamelCase finding. Signed-off-by: Dalvin-Ehinoma Noah Aiguobas <fliegbert2@gmail.com> Link: https://patch.msgid.link/20260710162017.5660-3-fliegbert2@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9c4e4ef324
commit
96145e3ac4
|
|
@ -1119,7 +1119,7 @@ void rtw_reset_securitypriv(struct adapter *adapter)
|
|||
/* */
|
||||
struct security_priv *psec_priv = &adapter->securitypriv;
|
||||
|
||||
psec_priv->dot11_auth_algrthm = dot11AuthAlgrthm_Open; /* open system */
|
||||
psec_priv->dot11_auth_algrthm = dot11_auth_algrthm_open; /* open system */
|
||||
psec_priv->dot11_privacy_algrthm = _NO_PRIVACY_;
|
||||
psec_priv->dot11PrivacyKeyIndex = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -237,7 +237,7 @@ static void init_mlme_ext_priv_value(struct adapter *padapter)
|
|||
pmlmeinfo->reassoc_count = 0;
|
||||
pmlmeinfo->link_count = 0;
|
||||
pmlmeinfo->auth_seq = 0;
|
||||
pmlmeinfo->auth_algo = dot11AuthAlgrthm_Open;
|
||||
pmlmeinfo->auth_algo = dot11_auth_algrthm_open;
|
||||
pmlmeinfo->key_index = 0;
|
||||
pmlmeinfo->iv = 0;
|
||||
|
||||
|
|
@ -869,7 +869,7 @@ unsigned int OnAuthClient(struct adapter *padapter, union recv_frame *precv_fram
|
|||
if (status != 0) {
|
||||
if (status == 13) { /* pmlmeinfo->auth_algo == dot11AuthAlgrthm_Auto) */
|
||||
if (pmlmeinfo->auth_algo == dot11AuthAlgrthm_Shared)
|
||||
pmlmeinfo->auth_algo = dot11AuthAlgrthm_Open;
|
||||
pmlmeinfo->auth_algo = dot11_auth_algrthm_open;
|
||||
else
|
||||
pmlmeinfo->auth_algo = dot11AuthAlgrthm_Shared;
|
||||
/* pmlmeinfo->reauth_count = 0; */
|
||||
|
|
|
|||
|
|
@ -524,7 +524,7 @@ static int update_attrib_sec_info(struct adapter *padapter, struct pkt_attrib *p
|
|||
GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast);
|
||||
|
||||
switch (psecuritypriv->dot11_auth_algrthm) {
|
||||
case dot11AuthAlgrthm_Open:
|
||||
case dot11_auth_algrthm_open:
|
||||
case dot11AuthAlgrthm_Shared:
|
||||
case dot11AuthAlgrthm_Auto:
|
||||
pattrib->key_idx = (u8)psecuritypriv->dot11PrivacyKeyIndex;
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
|
||||
enum {
|
||||
dot11AuthAlgrthm_Open = 0,
|
||||
dot11_auth_algrthm_open = 0,
|
||||
dot11AuthAlgrthm_Shared,
|
||||
dot11_auth_algrthm_8021x,
|
||||
dot11AuthAlgrthm_Auto,
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ struct security_priv {
|
|||
#define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst)\
|
||||
do {\
|
||||
switch (psecuritypriv->dot11_auth_algrthm) {\
|
||||
case dot11AuthAlgrthm_Open:\
|
||||
case dot11_auth_algrthm_open:\
|
||||
case dot11AuthAlgrthm_Shared:\
|
||||
case dot11AuthAlgrthm_Auto:\
|
||||
encry_algo = (u8)psecuritypriv->dot11_privacy_algrthm;\
|
||||
|
|
|
|||
|
|
@ -1315,7 +1315,7 @@ static int rtw_cfg80211_set_auth_type(struct security_priv *psecuritypriv,
|
|||
break;
|
||||
case NL80211_AUTHTYPE_OPEN_SYSTEM:
|
||||
|
||||
psecuritypriv->dot11_auth_algrthm = dot11AuthAlgrthm_Open;
|
||||
psecuritypriv->dot11_auth_algrthm = dot11_auth_algrthm_open;
|
||||
|
||||
if (psecuritypriv->ndisauthtype > Ndis802_11AuthModeWPA)
|
||||
psecuritypriv->dot11_auth_algrthm = dot11_auth_algrthm_8021x;
|
||||
|
|
@ -1329,7 +1329,7 @@ static int rtw_cfg80211_set_auth_type(struct security_priv *psecuritypriv,
|
|||
|
||||
break;
|
||||
default:
|
||||
psecuritypriv->dot11_auth_algrthm = dot11AuthAlgrthm_Open;
|
||||
psecuritypriv->dot11_auth_algrthm = dot11_auth_algrthm_open;
|
||||
/* return -ENOTSUPP; */
|
||||
}
|
||||
|
||||
|
|
@ -1571,7 +1571,7 @@ static int cfg80211_rtw_join_ibss(struct wiphy *wiphy, struct net_device *ndev,
|
|||
psecuritypriv->ndisencryptstatus = Ndis802_11EncryptionDisabled;
|
||||
psecuritypriv->dot11_privacy_algrthm = _NO_PRIVACY_;
|
||||
psecuritypriv->dot118021XGrpPrivacy = _NO_PRIVACY_;
|
||||
psecuritypriv->dot11_auth_algrthm = dot11AuthAlgrthm_Open; /* open system */
|
||||
psecuritypriv->dot11_auth_algrthm = dot11_auth_algrthm_open; /* open system */
|
||||
psecuritypriv->ndisauthtype = Ndis802_11AuthModeOpen;
|
||||
|
||||
ret = rtw_cfg80211_set_auth_type(psecuritypriv, NL80211_AUTHTYPE_OPEN_SYSTEM);
|
||||
|
|
@ -1667,7 +1667,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
psecuritypriv->ndisencryptstatus = Ndis802_11EncryptionDisabled;
|
||||
psecuritypriv->dot11_privacy_algrthm = _NO_PRIVACY_;
|
||||
psecuritypriv->dot118021XGrpPrivacy = _NO_PRIVACY_;
|
||||
psecuritypriv->dot11_auth_algrthm = dot11AuthAlgrthm_Open; /* open system */
|
||||
psecuritypriv->dot11_auth_algrthm = dot11_auth_algrthm_open; /* open system */
|
||||
psecuritypriv->ndisauthtype = Ndis802_11AuthModeOpen;
|
||||
|
||||
ret = rtw_cfg80211_set_wpa_version(psecuritypriv, sme->crypto.wpa_versions);
|
||||
|
|
|
|||
|
|
@ -531,7 +531,7 @@ static void rtw_init_default_value(struct adapter *padapter)
|
|||
psecuritypriv->sw_encrypt = pregistrypriv->software_encrypt;
|
||||
psecuritypriv->sw_decrypt = pregistrypriv->software_decrypt;
|
||||
|
||||
psecuritypriv->dot11_auth_algrthm = dot11AuthAlgrthm_Open; /* open system */
|
||||
psecuritypriv->dot11_auth_algrthm = dot11_auth_algrthm_open; /* open system */
|
||||
psecuritypriv->dot11_privacy_algrthm = _NO_PRIVACY_;
|
||||
|
||||
psecuritypriv->dot11PrivacyKeyIndex = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user