|
@@ -6812,7 +6812,6 @@ static int ipw_wx_get_auth(struct net_device *dev,
|
|
|
struct libipw_device *ieee = priv->ieee;
|
|
|
struct lib80211_crypt_data *crypt;
|
|
|
struct iw_param *param = &wrqu->param;
|
|
|
- int ret = 0;
|
|
|
|
|
|
switch (param->flags & IW_AUTH_INDEX) {
|
|
|
case IW_AUTH_WPA_VERSION:
|
|
@@ -6822,8 +6821,7 @@ static int ipw_wx_get_auth(struct net_device *dev,
|
|
|
/*
|
|
|
* wpa_supplicant will control these internally
|
|
|
*/
|
|
|
- ret = -EOPNOTSUPP;
|
|
|
- break;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
|
|
case IW_AUTH_TKIP_COUNTERMEASURES:
|
|
|
crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx];
|