staging: rtl8723bs: Remove unecessary braces from switch statement.
The switch statement in rtw_wx_set_auth() wraps individual cases in braces for no reason. Remove those braces and unindent the code. Signed-off-by: Quytelda Kahja <quytelda@tamalin.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5933a3c34e
commit
41ed8df9bd
|
@ -2151,7 +2151,6 @@ static int rtw_wx_set_auth(struct net_device *dev,
|
||||||
*/
|
*/
|
||||||
break;
|
break;
|
||||||
case IW_AUTH_TKIP_COUNTERMEASURES:
|
case IW_AUTH_TKIP_COUNTERMEASURES:
|
||||||
{
|
|
||||||
if (param->value) {
|
if (param->value) {
|
||||||
/* wpa_supplicant is enabling the tkip countermeasure. */
|
/* wpa_supplicant is enabling the tkip countermeasure. */
|
||||||
padapter->securitypriv.btkip_countermeasure = true;
|
padapter->securitypriv.btkip_countermeasure = true;
|
||||||
|
@ -2160,36 +2159,33 @@ static int rtw_wx_set_auth(struct net_device *dev,
|
||||||
padapter->securitypriv.btkip_countermeasure = false;
|
padapter->securitypriv.btkip_countermeasure = false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case IW_AUTH_DROP_UNENCRYPTED:
|
case IW_AUTH_DROP_UNENCRYPTED:
|
||||||
{
|
/* HACK:
|
||||||
/* HACK:
|
*
|
||||||
*
|
* wpa_supplicant calls set_wpa_enabled when the driver
|
||||||
* wpa_supplicant calls set_wpa_enabled when the driver
|
* is loaded and unloaded, regardless of if WPA is being
|
||||||
* is loaded and unloaded, regardless of if WPA is being
|
* used. No other calls are made which can be used to
|
||||||
* used. No other calls are made which can be used to
|
* determine if encryption will be used or not prior to
|
||||||
* determine if encryption will be used or not prior to
|
* association being expected. If encryption is not being
|
||||||
* association being expected. If encryption is not being
|
* used, drop_unencrypted is set to false, else true -- we
|
||||||
* used, drop_unencrypted is set to false, else true -- we
|
* can use this to determine if the CAP_PRIVACY_ON bit should
|
||||||
* can use this to determine if the CAP_PRIVACY_ON bit should
|
* be set.
|
||||||
* be set.
|
*/
|
||||||
*/
|
|
||||||
|
|
||||||
if (padapter->securitypriv.ndisencryptstatus == Ndis802_11Encryption1Enabled) {
|
if (padapter->securitypriv.ndisencryptstatus == Ndis802_11Encryption1Enabled) {
|
||||||
break;/* it means init value, or using wep, ndisencryptstatus = Ndis802_11Encryption1Enabled, */
|
break;/* it means init value, or using wep, ndisencryptstatus = Ndis802_11Encryption1Enabled, */
|
||||||
/* then it needn't reset it; */
|
/* then it needn't reset it; */
|
||||||
}
|
|
||||||
|
|
||||||
if (param->value) {
|
|
||||||
padapter->securitypriv.ndisencryptstatus = Ndis802_11EncryptionDisabled;
|
|
||||||
padapter->securitypriv.dot11PrivacyAlgrthm = _NO_PRIVACY_;
|
|
||||||
padapter->securitypriv.dot118021XGrpPrivacy = _NO_PRIVACY_;
|
|
||||||
padapter->securitypriv.dot11AuthAlgrthm = dot11AuthAlgrthm_Open; /* open system */
|
|
||||||
padapter->securitypriv.ndisauthtype =Ndis802_11AuthModeOpen;
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (param->value) {
|
||||||
|
padapter->securitypriv.ndisencryptstatus = Ndis802_11EncryptionDisabled;
|
||||||
|
padapter->securitypriv.dot11PrivacyAlgrthm = _NO_PRIVACY_;
|
||||||
|
padapter->securitypriv.dot118021XGrpPrivacy = _NO_PRIVACY_;
|
||||||
|
padapter->securitypriv.dot11AuthAlgrthm = dot11AuthAlgrthm_Open; /* open system */
|
||||||
|
padapter->securitypriv.ndisauthtype =Ndis802_11AuthModeOpen;
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
case IW_AUTH_80211_AUTH_ALG:
|
case IW_AUTH_80211_AUTH_ALG:
|
||||||
/*
|
/*
|
||||||
* It's the starting point of a link layer connection using wpa_supplicant
|
* It's the starting point of a link layer connection using wpa_supplicant
|
||||||
|
|
Loading…
Reference in New Issue