staging: rtl8188eu: document enum where it is declared
The comment "/* open system */" is repeated verbatim in several places where dot11AuthAlgrthm_Open is referenced, but not where it is declared. Move it to be only at its declaration. This also fixes some "line over 80 characters" checkpatch warnings. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
22a1279b84
commit
2ff4e79f0e
|
@ -65,7 +65,7 @@
|
||||||
#define _FW_UNDER_SURVEY WIFI_SITE_MONITOR
|
#define _FW_UNDER_SURVEY WIFI_SITE_MONITOR
|
||||||
|
|
||||||
enum dot11AuthAlgrthmNum {
|
enum dot11AuthAlgrthmNum {
|
||||||
dot11AuthAlgrthm_Open = 0,
|
dot11AuthAlgrthm_Open = 0, /* open system */
|
||||||
dot11AuthAlgrthm_Shared,
|
dot11AuthAlgrthm_Shared,
|
||||||
dot11AuthAlgrthm_8021X,
|
dot11AuthAlgrthm_8021X,
|
||||||
dot11AuthAlgrthm_Auto,
|
dot11AuthAlgrthm_Auto,
|
||||||
|
|
|
@ -1625,7 +1625,7 @@ static int rtw_wx_set_enc(struct net_device *dev,
|
||||||
padapter->securitypriv.ndisencryptstatus = Ndis802_11EncryptionDisabled;
|
padapter->securitypriv.ndisencryptstatus = Ndis802_11EncryptionDisabled;
|
||||||
padapter->securitypriv.dot11PrivacyAlgrthm = _NO_PRIVACY_;
|
padapter->securitypriv.dot11PrivacyAlgrthm = _NO_PRIVACY_;
|
||||||
padapter->securitypriv.dot118021XGrpPrivacy = _NO_PRIVACY_;
|
padapter->securitypriv.dot118021XGrpPrivacy = _NO_PRIVACY_;
|
||||||
padapter->securitypriv.dot11AuthAlgrthm = dot11AuthAlgrthm_Open; /* open system */
|
padapter->securitypriv.dot11AuthAlgrthm = dot11AuthAlgrthm_Open;
|
||||||
authmode = Ndis802_11AuthModeOpen;
|
authmode = Ndis802_11AuthModeOpen;
|
||||||
padapter->securitypriv.ndisauthtype = authmode;
|
padapter->securitypriv.ndisauthtype = authmode;
|
||||||
|
|
||||||
|
@ -1664,7 +1664,7 @@ static int rtw_wx_set_enc(struct net_device *dev,
|
||||||
DBG_88E("rtw_wx_set_enc():erq->flags = 0x%x\n", erq->flags);
|
DBG_88E("rtw_wx_set_enc():erq->flags = 0x%x\n", erq->flags);
|
||||||
|
|
||||||
padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;/* Ndis802_11EncryptionDisabled; */
|
padapter->securitypriv.ndisencryptstatus = Ndis802_11Encryption1Enabled;/* Ndis802_11EncryptionDisabled; */
|
||||||
padapter->securitypriv.dot11AuthAlgrthm = dot11AuthAlgrthm_Open; /* open system */
|
padapter->securitypriv.dot11AuthAlgrthm = dot11AuthAlgrthm_Open;
|
||||||
padapter->securitypriv.dot11PrivacyAlgrthm = _NO_PRIVACY_;
|
padapter->securitypriv.dot11PrivacyAlgrthm = _NO_PRIVACY_;
|
||||||
padapter->securitypriv.dot118021XGrpPrivacy = _NO_PRIVACY_;
|
padapter->securitypriv.dot118021XGrpPrivacy = _NO_PRIVACY_;
|
||||||
authmode = Ndis802_11AuthModeOpen;
|
authmode = Ndis802_11AuthModeOpen;
|
||||||
|
@ -1855,7 +1855,7 @@ static int rtw_wx_set_auth(struct net_device *dev,
|
||||||
padapter->securitypriv.ndisencryptstatus = Ndis802_11EncryptionDisabled;
|
padapter->securitypriv.ndisencryptstatus = Ndis802_11EncryptionDisabled;
|
||||||
padapter->securitypriv.dot11PrivacyAlgrthm = _NO_PRIVACY_;
|
padapter->securitypriv.dot11PrivacyAlgrthm = _NO_PRIVACY_;
|
||||||
padapter->securitypriv.dot118021XGrpPrivacy = _NO_PRIVACY_;
|
padapter->securitypriv.dot118021XGrpPrivacy = _NO_PRIVACY_;
|
||||||
padapter->securitypriv.dot11AuthAlgrthm = dot11AuthAlgrthm_Open; /* open system */
|
padapter->securitypriv.dot11AuthAlgrthm = dot11AuthAlgrthm_Open;
|
||||||
padapter->securitypriv.ndisauthtype = Ndis802_11AuthModeOpen;
|
padapter->securitypriv.ndisauthtype = Ndis802_11AuthModeOpen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,7 @@ void rtw_reset_securitypriv(struct adapter *adapter)
|
||||||
/* reset values in securitypriv */
|
/* reset values in securitypriv */
|
||||||
struct security_priv *psec_priv = &adapter->securitypriv;
|
struct security_priv *psec_priv = &adapter->securitypriv;
|
||||||
|
|
||||||
psec_priv->dot11AuthAlgrthm = dot11AuthAlgrthm_Open; /* open system */
|
psec_priv->dot11AuthAlgrthm = dot11AuthAlgrthm_Open;
|
||||||
psec_priv->dot11PrivacyAlgrthm = _NO_PRIVACY_;
|
psec_priv->dot11PrivacyAlgrthm = _NO_PRIVACY_;
|
||||||
psec_priv->dot11PrivacyKeyIndex = 0;
|
psec_priv->dot11PrivacyKeyIndex = 0;
|
||||||
psec_priv->dot118021XGrpPrivacy = _NO_PRIVACY_;
|
psec_priv->dot118021XGrpPrivacy = _NO_PRIVACY_;
|
||||||
|
|
|
@ -800,7 +800,7 @@ static u8 rtw_init_default_value(struct adapter *padapter)
|
||||||
psecuritypriv->binstallGrpkey = _FAIL;
|
psecuritypriv->binstallGrpkey = _FAIL;
|
||||||
psecuritypriv->sw_encrypt = pregistrypriv->software_encrypt;
|
psecuritypriv->sw_encrypt = pregistrypriv->software_encrypt;
|
||||||
psecuritypriv->sw_decrypt = pregistrypriv->software_decrypt;
|
psecuritypriv->sw_decrypt = pregistrypriv->software_decrypt;
|
||||||
psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_Open; /* open system */
|
psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_Open;
|
||||||
psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_;
|
psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_;
|
||||||
psecuritypriv->dot11PrivacyKeyIndex = 0;
|
psecuritypriv->dot11PrivacyKeyIndex = 0;
|
||||||
psecuritypriv->dot118021XGrpPrivacy = _NO_PRIVACY_;
|
psecuritypriv->dot118021XGrpPrivacy = _NO_PRIVACY_;
|
||||||
|
|
Loading…
Reference in a new issue