Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90562
b: refs/heads/master
c: 73ab1f2
h: refs/heads/master
v: v3
  • Loading branch information
Holger Schurig authored and John W. Linville committed Apr 8, 2008
1 parent e762ce2 commit 85061b4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 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: 245bf20f9c159f8d35befbc038997096b759459c
refs/heads/master: 73ab1f25d4a3a22a1547d44199c2171c04e59cb8
17 changes: 0 additions & 17 deletions trunk/drivers/net/wireless/libertas/assoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,23 +583,6 @@ static int assoc_helper_mode(struct lbs_private *priv,
return ret;
}


int lbs_update_channel(struct lbs_private *priv)
{
int ret;

/* 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 = ret;
ret = 0;
}
lbs_deb_leave_args(LBS_DEB_ASSOC, "ret %d", ret);
return ret;
}

static int assoc_helper_channel(struct lbs_private *priv,
struct assoc_request * assoc_req)
{
Expand Down
16 changes: 16 additions & 0 deletions trunk/drivers/net/wireless/libertas/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,22 @@ int lbs_get_channel(struct lbs_private *priv)
return ret;
}

int lbs_update_channel(struct lbs_private *priv)
{
int ret;

/* 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 = ret;
ret = 0;
}
lbs_deb_leave_args(LBS_DEB_ASSOC, "ret %d", ret);
return ret;
}

/**
* @brief Set the radio channel
*
Expand Down

0 comments on commit 85061b4

Please sign in to comment.