aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorZhu Yi <yi.zhu@intel.com>2005-07-13 13:30:34 -0400
committerJames Ketrenos <jketreno@linux.intel.com>2005-11-07 18:50:08 -0500
commite4cc28998724661c19cd979a78eaf9a424da52ef (patch)
treed39518bd2a881f40b649aa5326d08a2679a2567e /drivers
parentf75459e6f64ca0632f23029e2ca47b424dd33373 (diff)
Move code from ipw2100_wpa_enable to IPW2100_PARAM_DROP_UNENCRYPTED to
support wpa_supplicant with open AP. We need this to make driver_ipw work. driver_ext has already had the similar code with the WE-18 support added. Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ipw2100.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c
index 73287ab7bff1..eaf47078ee56 100644
--- a/drivers/net/wireless/ipw2100.c
+++ b/drivers/net/wireless/ipw2100.c
@@ -5880,9 +5880,27 @@ static int ipw2100_wpa_set_param(struct net_device *dev, u8 name, u32 value)
5880 5880
5881 break; 5881 break;
5882 5882
5883 case IPW2100_PARAM_DROP_UNENCRYPTED: 5883 case IPW2100_PARAM_DROP_UNENCRYPTED:{
5884 priv->ieee->drop_unencrypted = value; 5884 /* See IW_AUTH_DROP_UNENCRYPTED handling for details */
5885 break; 5885 struct ieee80211_security sec = {
5886 .flags = SEC_ENABLED,
5887 .enabled = value,
5888 };
5889 priv->ieee->drop_unencrypted = value;
5890 /* We only change SEC_LEVEL for open mode. Others
5891 * are set by ipw_wpa_set_encryption.
5892 */
5893 if (!value) {
5894 sec.flags |= SEC_LEVEL;
5895 sec.level = SEC_LEVEL_0;
5896 } else {
5897 sec.flags |= SEC_LEVEL;
5898 sec.level = SEC_LEVEL_1;
5899 }
5900 if (priv->ieee->set_security)
5901 priv->ieee->set_security(priv->ieee->dev, &sec);
5902 break;
5903 }
5886 5904
5887 case IPW2100_PARAM_PRIVACY_INVOKED: 5905 case IPW2100_PARAM_PRIVACY_INVOKED:
5888 priv->ieee->privacy_invoked = value; 5906 priv->ieee->privacy_invoked = value;