Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13553
b: refs/heads/master
c: e4cc289
h: refs/heads/master
i:
  13551: 3b68f19
v: v3
  • Loading branch information
Zhu Yi authored and James Ketrenos committed Nov 7, 2005
1 parent dea8885 commit 012fc0e
Show file tree
Hide file tree
Showing 2 changed files with 22 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: f75459e6f64ca0632f23029e2ca47b424dd33373
refs/heads/master: e4cc28998724661c19cd979a78eaf9a424da52ef
24 changes: 21 additions & 3 deletions trunk/drivers/net/wireless/ipw2100.c
Original file line number Diff line number Diff line change
Expand Up @@ -5880,9 +5880,27 @@ static int ipw2100_wpa_set_param(struct net_device *dev, u8 name, u32 value)

break;

case IPW2100_PARAM_DROP_UNENCRYPTED:
priv->ieee->drop_unencrypted = value;
break;
case IPW2100_PARAM_DROP_UNENCRYPTED:{
/* See IW_AUTH_DROP_UNENCRYPTED handling for details */
struct ieee80211_security sec = {
.flags = SEC_ENABLED,
.enabled = value,
};
priv->ieee->drop_unencrypted = value;
/* We only change SEC_LEVEL for open mode. Others
* are set by ipw_wpa_set_encryption.
*/
if (!value) {
sec.flags |= SEC_LEVEL;
sec.level = SEC_LEVEL_0;
} else {
sec.flags |= SEC_LEVEL;
sec.level = SEC_LEVEL_1;
}
if (priv->ieee->set_security)
priv->ieee->set_security(priv->ieee->dev, &sec);
break;
}

case IPW2100_PARAM_PRIVACY_INVOKED:
priv->ieee->privacy_invoked = value;
Expand Down

0 comments on commit 012fc0e

Please sign in to comment.