Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90294
b: refs/heads/master
c: c97329e
h: refs/heads/master
v: v3
  • Loading branch information
Holger Schurig authored and John W. Linville committed Mar 25, 2008
1 parent 9347b44 commit 8bc5531
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 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: 8db4a2b986befabd2ad25c269e40444f06a6bda3
refs/heads/master: c97329e21fc487ebf251c920d46537ff5fb4d8a7
8 changes: 2 additions & 6 deletions trunk/drivers/net/wireless/libertas/assoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,7 @@ static int assoc_helper_wep_keys(struct lbs_private *priv,
else
priv->mac_control &= ~CMD_ACT_MAC_WEP_ENABLE;

ret = lbs_set_mac_control(priv);
if (ret)
goto out;
lbs_set_mac_control(priv);

mutex_lock(&priv->lock);

Expand Down Expand Up @@ -304,9 +302,7 @@ static int assoc_helper_secinfo(struct lbs_private *priv,
memcpy(&priv->secinfo, &assoc_req->secinfo,
sizeof(struct lbs_802_11_security));

ret = lbs_set_mac_control(priv);
if (ret)
goto out;
lbs_set_mac_control(priv);

/* If RSN is already enabled, don't try to enable it again, since
* ENABLE_RSN resets internal state machines and will clobber the
Expand Down
9 changes: 4 additions & 5 deletions trunk/drivers/net/wireless/libertas/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1326,9 +1326,8 @@ int lbs_set_radio_control(struct lbs_private *priv)
return ret;
}

int lbs_set_mac_control(struct lbs_private *priv)
void lbs_set_mac_control(struct lbs_private *priv)
{
int ret = 0;
struct cmd_ds_mac_control cmd;

lbs_deb_enter(LBS_DEB_CMD);
Expand All @@ -1337,10 +1336,10 @@ int lbs_set_mac_control(struct lbs_private *priv)
cmd.action = cpu_to_le16(priv->mac_control);
cmd.reserved = 0;

ret = lbs_cmd_with_response(priv, CMD_MAC_CONTROL, &cmd);
lbs_cmd_async(priv, CMD_MAC_CONTROL,
&cmd.hdr, sizeof(cmd));

lbs_deb_leave_args(LBS_DEB_CMD, "ret %d", ret);
return ret;
lbs_deb_leave(LBS_DEB_CMD);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/libertas/decl.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct net_device;
struct cmd_ctrl_node;
struct cmd_ds_command;

int lbs_set_mac_control(struct lbs_private *priv);
void lbs_set_mac_control(struct lbs_private *priv);

void lbs_send_tx_feedback(struct lbs_private *priv);

Expand Down

0 comments on commit 8bc5531

Please sign in to comment.