Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13566
b: refs/heads/master
c: caeff81
h: refs/heads/master
v: v3
  • Loading branch information
Hong Liu authored and James Ketrenos committed Nov 7, 2005
1 parent df22da5 commit 549e86f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 1fbfea549f07f1f7afd436f1e45b25437f0172c2
refs/heads/master: caeff81b4e6479884f3cd2ced526bebd4f0c5eff
10 changes: 9 additions & 1 deletion trunk/drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -9169,11 +9169,19 @@ static int ipw_wx_set_encode(struct net_device *dev,
{
struct ipw_priv *priv = ieee80211_priv(dev);
int ret;
u32 cap = priv->capability;

down(&priv->sem);
ret = ieee80211_wx_set_encode(priv->ieee, info, wrqu, key);
up(&priv->sem);

/* In IBSS mode, we need to notify the firmware to update
* the beacon info after we changed the capability. */
if (cap != priv->capability &&
priv->ieee->iw_mode == IW_MODE_ADHOC &&
priv->status & STATUS_ASSOCIATED)
ipw_disassociate(priv);

up(&priv->sem);
return ret;
}

Expand Down

0 comments on commit 549e86f

Please sign in to comment.