aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/wext.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/wext.c')
-rw-r--r--drivers/net/wireless/libertas/wext.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c
index 3e8be9a578e..c688ca7ab32 100644
--- a/drivers/net/wireless/libertas/wext.c
+++ b/drivers/net/wireless/libertas/wext.c
@@ -164,12 +164,12 @@ static int lbs_get_freq(struct net_device *dev, struct iw_request_info *info,
164 lbs_deb_enter(LBS_DEB_WEXT); 164 lbs_deb_enter(LBS_DEB_WEXT);
165 165
166 cfp = lbs_find_cfp_by_band_and_channel(priv, 0, 166 cfp = lbs_find_cfp_by_band_and_channel(priv, 0,
167 priv->curbssparams.channel); 167 priv->channel);
168 168
169 if (!cfp) { 169 if (!cfp) {
170 if (priv->curbssparams.channel) 170 if (priv->channel)
171 lbs_deb_wext("invalid channel %d\n", 171 lbs_deb_wext("invalid channel %d\n",
172 priv->curbssparams.channel); 172 priv->channel);
173 return -EINVAL; 173 return -EINVAL;
174 } 174 }
175 175
@@ -986,7 +986,7 @@ static int lbs_mesh_set_freq(struct net_device *dev,
986 goto out; 986 goto out;
987 } 987 }
988 988
989 if (fwrq->m != priv->curbssparams.channel) { 989 if (fwrq->m != priv->channel) {
990 lbs_deb_wext("mesh channel change forces eth disconnect\n"); 990 lbs_deb_wext("mesh channel change forces eth disconnect\n");
991 if (priv->mode == IW_MODE_INFRA) 991 if (priv->mode == IW_MODE_INFRA)
992 lbs_cmd_80211_deauthenticate(priv, 992 lbs_cmd_80211_deauthenticate(priv,
@@ -2100,7 +2100,7 @@ static int lbs_mesh_set_essid(struct net_device *dev,
2100 } 2100 }
2101 2101
2102 lbs_mesh_config(priv, CMD_ACT_MESH_CONFIG_START, 2102 lbs_mesh_config(priv, CMD_ACT_MESH_CONFIG_START,
2103 priv->curbssparams.channel); 2103 priv->channel);
2104 out: 2104 out:
2105 lbs_deb_leave_args(LBS_DEB_WEXT, "ret %d", ret); 2105 lbs_deb_leave_args(LBS_DEB_WEXT, "ret %d", ret);
2106 return ret; 2106 return ret;