Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79238
b: refs/heads/master
c: d1a469f
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse authored and David S. Miller committed Jan 28, 2008
1 parent 3671802 commit d622c33
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 681ffbb7d42435332fff0812145c7050d6153925
refs/heads/master: d1a469fd1b7335572a3803b6ba4ce3783a74532b
16 changes: 10 additions & 6 deletions trunk/drivers/net/wireless/libertas/assoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,14 @@ int lbs_update_channel(struct lbs_private *priv)
{
int ret;

/* the channel in f/w could be out of sync, get the current channel */
/* the channel in f/w could be out of sync; get the current channel */
lbs_deb_enter(LBS_DEB_ASSOC);

ret = lbs_get_channel(priv);
if (ret > 0)
priv->curbssparams.channel = (u8) ret;

if (ret > 0) {
priv->curbssparams.channel = ret;
ret = 0;
}
lbs_deb_leave_args(LBS_DEB_ASSOC, "ret %d", ret);
return ret;
}
Expand All @@ -197,8 +198,9 @@ static int assoc_helper_channel(struct lbs_private *priv,
lbs_deb_enter(LBS_DEB_ASSOC);

ret = lbs_update_channel(priv);
if (ret < 0) {
if (ret) {
lbs_deb_assoc("ASSOC: channel: error getting channel.\n");
goto done;
}

if (assoc_req->channel == priv->curbssparams.channel)
Expand All @@ -222,8 +224,10 @@ static int assoc_helper_channel(struct lbs_private *priv,
* it since the firmware is supposed to return the new channel, but
* whatever... */
ret = lbs_update_channel(priv);
if (ret < 0)
if (ret) {
lbs_deb_assoc("ASSOC: channel: error getting channel.\n");
goto done;
}

if (assoc_req->channel != priv->curbssparams.channel) {
lbs_deb_assoc("ASSOC: channel: failed to update channel to %d\n",
Expand Down

0 comments on commit d622c33

Please sign in to comment.