There are a lot of extra newlines in this function that waste space.
Remove those newlines, but add one newline before the return statement.
Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
int ret = 0;
switch (param->flags & IW_AUTH_INDEX) {
int ret = 0;
switch (param->flags & IW_AUTH_INDEX) {
case IW_AUTH_WPA_VERSION:
break;
case IW_AUTH_CIPHER_PAIRWISE:
case IW_AUTH_WPA_VERSION:
break;
case IW_AUTH_CIPHER_PAIRWISE:
break;
case IW_AUTH_CIPHER_GROUP:
break;
case IW_AUTH_CIPHER_GROUP:
break;
case IW_AUTH_KEY_MGMT:
/*
* ??? does not use these parameters
*/
break;
break;
case IW_AUTH_KEY_MGMT:
/*
* ??? does not use these parameters
*/
break;
case IW_AUTH_TKIP_COUNTERMEASURES:
{
if (param->value) {
case IW_AUTH_TKIP_COUNTERMEASURES:
{
if (param->value) {
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
*/
rtw_free_assoc_resources(padapter, 1);
}
rtw_free_assoc_resources(padapter, 1);
}
ret = wpa_set_auth_algs(dev, (u32)param->value);
ret = wpa_set_auth_algs(dev, (u32)param->value);
case IW_AUTH_WPA_ENABLED:
break;
case IW_AUTH_RX_UNENCRYPTED_EAPOL:
case IW_AUTH_WPA_ENABLED:
break;
case IW_AUTH_RX_UNENCRYPTED_EAPOL:
default:
return -EOPNOTSUPP;
}
default:
return -EOPNOTSUPP;
}