diff options
author | Zhu Yi <yi.zhu@intel.com> | 2006-01-24 00:48:53 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-01-30 20:35:31 -0500 |
commit | cbbdd03fadeddd02efec05ccfd4e6870ed913762 (patch) | |
tree | 7624f3cf850dda8fbb1f9f5a7e0d2108cdac1384 /drivers/net/wireless/ipw2100.c | |
parent | 9eafe76b8a5e1420cd6105bc11830914d90bddb4 (diff) |
[PATCH] ipw2100: Add LEAP authentication algorithm support
Signed-off-by: Hong Liu <hong.liu@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2100.c')
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index 31c262c314ca..b73af7789588 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
@@ -5365,9 +5365,12 @@ static int ipw2100_configure_security(struct ipw2100_priv *priv, int batch_mode) | |||
5365 | SEC_LEVEL_0, 0, 1); | 5365 | SEC_LEVEL_0, 0, 1); |
5366 | } else { | 5366 | } else { |
5367 | auth_mode = IPW_AUTH_OPEN; | 5367 | auth_mode = IPW_AUTH_OPEN; |
5368 | if ((priv->ieee->sec.flags & SEC_AUTH_MODE) && | 5368 | if (priv->ieee->sec.flags & SEC_AUTH_MODE) { |
5369 | (priv->ieee->sec.auth_mode == WLAN_AUTH_SHARED_KEY)) | 5369 | if (priv->ieee->sec.auth_mode == WLAN_AUTH_SHARED_KEY) |
5370 | auth_mode = IPW_AUTH_SHARED; | 5370 | auth_mode = IPW_AUTH_SHARED; |
5371 | else if (priv->ieee->sec.auth_mode == WLAN_AUTH_LEAP) | ||
5372 | auth_mode = IPW_AUTH_LEAP_CISCO_ID; | ||
5373 | } | ||
5371 | 5374 | ||
5372 | sec_level = SEC_LEVEL_0; | 5375 | sec_level = SEC_LEVEL_0; |
5373 | if (priv->ieee->sec.flags & SEC_LEVEL) | 5376 | if (priv->ieee->sec.flags & SEC_LEVEL) |
@@ -5760,6 +5763,9 @@ static int ipw2100_wpa_set_auth_algs(struct ipw2100_priv *priv, int value) | |||
5760 | } else if (value & IW_AUTH_ALG_OPEN_SYSTEM) { | 5763 | } else if (value & IW_AUTH_ALG_OPEN_SYSTEM) { |
5761 | sec.auth_mode = WLAN_AUTH_OPEN; | 5764 | sec.auth_mode = WLAN_AUTH_OPEN; |
5762 | ieee->open_wep = 1; | 5765 | ieee->open_wep = 1; |
5766 | } else if (value & IW_AUTH_ALG_LEAP) { | ||
5767 | sec.auth_mode = WLAN_AUTH_LEAP; | ||
5768 | ieee->open_wep = 1; | ||
5763 | } else | 5769 | } else |
5764 | return -EINVAL; | 5770 | return -EINVAL; |
5765 | 5771 | ||