Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79173
b: refs/heads/master
c: cb182a6
h: refs/heads/master
i:
  79171: fc27406
v: v3
  • Loading branch information
Dan Williams authored and David S. Miller committed Jan 28, 2008
1 parent 21cd066 commit 5a11f44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 2dd4b26264d48f10e802cc9f2d75542be5a3c7fa
refs/heads/master: cb182a602802b36ff992afe238e1a3eafc0956b2
9 changes: 5 additions & 4 deletions trunk/drivers/net/wireless/libertas/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,8 +831,8 @@ int lbs_get_channel(struct lbs_private *priv)
if (ret)
goto out;

lbs_deb_cmd("current radio channel is %d\n", cmd.channel);
ret = (int) cmd.channel;
ret = le16_to_cpu(cmd.channel);
lbs_deb_cmd("current radio channel is %d\n", ret);

out:
lbs_deb_leave_args(LBS_DEB_CMD, "ret %d", ret);
Expand Down Expand Up @@ -863,8 +863,9 @@ int lbs_set_channel(struct lbs_private *priv, u8 channel)
if (ret)
goto out;

priv->curbssparams.channel = cmd.channel;
lbs_deb_cmd("channel switch from %d to %d\n", old_channel, cmd.channel);
priv->curbssparams.channel = (uint8_t) le16_to_cpu(cmd.channel);
lbs_deb_cmd("channel switch from %d to %d\n", old_channel,
priv->curbssparams.channel);

out:
lbs_deb_leave_args(LBS_DEB_CMD, "ret %d", ret);
Expand Down

0 comments on commit 5a11f44

Please sign in to comment.