Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111721
b: refs/heads/master
c: 9c31fd6
h: refs/heads/master
i:
  111719: 67b335e
v: v3
  • Loading branch information
Javier Cardona authored and John W. Linville committed Sep 15, 2008
1 parent 228b475 commit 9acaec5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 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: bed7aac9416f50425d2200df32bcc9bf248ff8cb
refs/heads/master: 9c31fd635ddfae6eb61712491770befa2ce1fdde
16 changes: 13 additions & 3 deletions trunk/drivers/net/wireless/libertas/wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ static inline void lbs_postpone_association_work(struct lbs_private *priv)
queue_delayed_work(priv->work_thread, &priv->assoc_work, HZ / 2);
}

static inline void lbs_do_association_work(struct lbs_private *priv)
{
if (priv->surpriseremoved)
return;
cancel_delayed_work(&priv->assoc_work);
queue_delayed_work(priv->work_thread, &priv->assoc_work, 0);
}

static inline void lbs_cancel_association_work(struct lbs_private *priv)
{
cancel_delayed_work(&priv->assoc_work);
Expand Down Expand Up @@ -1585,12 +1593,14 @@ static int lbs_set_encodeext(struct net_device *dev,
set_bit(ASSOC_FLAG_SECINFO, &assoc_req->flags);
}

disable_wep (assoc_req);
/* Only disable wep if necessary: can't waste time here. */
if (priv->mac_control & CMD_ACT_MAC_WEP_ENABLE)
disable_wep(assoc_req);
}

out:
if (ret == 0) {
lbs_postpone_association_work(priv);
if (ret == 0) { /* key installation is time critical: postpone not! */
lbs_do_association_work(priv);
} else {
lbs_cancel_association_work(priv);
}
Expand Down

0 comments on commit 9acaec5

Please sign in to comment.