staging: rtl8723bs: Fix newlines in rtw_wx_set_auth().
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>
This commit is contained in:
Родитель
c3e96015be
Коммит
5933a3c34e
|
@ -2139,21 +2139,17 @@ static int rtw_wx_set_auth(struct net_device *dev,
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
switch (param->flags & IW_AUTH_INDEX) {
|
switch (param->flags & IW_AUTH_INDEX) {
|
||||||
|
|
||||||
case IW_AUTH_WPA_VERSION:
|
case IW_AUTH_WPA_VERSION:
|
||||||
break;
|
break;
|
||||||
case IW_AUTH_CIPHER_PAIRWISE:
|
case IW_AUTH_CIPHER_PAIRWISE:
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case IW_AUTH_CIPHER_GROUP:
|
case IW_AUTH_CIPHER_GROUP:
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case IW_AUTH_KEY_MGMT:
|
case IW_AUTH_KEY_MGMT:
|
||||||
/*
|
/*
|
||||||
* ??? does not use these parameters
|
* ??? does not use these parameters
|
||||||
*/
|
*/
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IW_AUTH_TKIP_COUNTERMEASURES:
|
case IW_AUTH_TKIP_COUNTERMEASURES:
|
||||||
{
|
{
|
||||||
if (param->value) {
|
if (param->value) {
|
||||||
|
@ -2194,9 +2190,7 @@ static int rtw_wx_set_auth(struct net_device *dev,
|
||||||
|
|
||||||
break;
|
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
|
||||||
*/
|
*/
|
||||||
|
@ -2208,11 +2202,8 @@ static int rtw_wx_set_auth(struct net_device *dev,
|
||||||
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);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IW_AUTH_WPA_ENABLED:
|
case IW_AUTH_WPA_ENABLED:
|
||||||
break;
|
break;
|
||||||
case IW_AUTH_RX_UNENCRYPTED_EAPOL:
|
case IW_AUTH_RX_UNENCRYPTED_EAPOL:
|
||||||
|
@ -2222,6 +2213,7 @@ static int rtw_wx_set_auth(struct net_device *dev,
|
||||||
default:
|
default:
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче