diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2009-10-22 09:30:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:37 -0400 |
commit | c14951fec6c292dca60e3cf8ab0edfdf11e6c0e2 (patch) | |
tree | f5e9abc6e44968b0cda3810a18905d5625d503a1 /drivers/net/wireless/libertas/wext.c | |
parent | 5e047692245c7b8d338ddeece156721d594ca985 (diff) |
libertas: get current channel out of priv->curbssparams
... as priv->curbssparams won't exist once libertas+cfg80211 lands.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/wext.c')
-rw-r--r-- | drivers/net/wireless/libertas/wext.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c index 3e8be9a578e8..c688ca7ab322 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; |