diff options
author | Marc Yang <yangyang@marvell.com> | 2011-03-24 23:49:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-04 16:20:00 -0400 |
commit | 203afecaa320fa8c541ce130aed449ff53f5b4aa (patch) | |
tree | d52aedcfe5ff7cb3faf913e6ff8321874f7d1d99 /drivers/net/wireless/mwifiex/cfg80211.c | |
parent | 0022801c893e953ebff8e0ad00cc22716055babf (diff) |
mwifiex: remove unnecessary _set_auth functions
mwifiex_set_encrypt_mode()
mwifiex_set_auth_mode()
mwifiex_set_auth()
These functions are confusing and misleading.
And they are really not needed at all.
Some unused definitions are also removed.
Signed-off-by: Marc Yang <yangyang@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/cfg80211.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index 80f367f27efc..84e33f1f0ffe 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c | |||
@@ -1055,11 +1055,10 @@ mwifiex_cfg80211_assoc(struct mwifiex_private *priv, size_t ssid_len, u8 *ssid, | |||
1055 | * scan. The cfg80211 does not give us the encryption | 1055 | * scan. The cfg80211 does not give us the encryption |
1056 | * mode at this stage so just setting it to WEP here. | 1056 | * mode at this stage so just setting it to WEP here. |
1057 | */ | 1057 | */ |
1058 | wpa_enabled = 0; | 1058 | priv->sec_info.encryption_mode = |
1059 | auth_type = MWIFIEX_AUTH_MODE_OPEN; | 1059 | MWIFIEX_ENCRYPTION_MODE_WEP104; |
1060 | ret = mwifiex_set_auth(priv, | 1060 | priv->sec_info.authentication_mode = |
1061 | MWIFIEX_ENCRYPTION_MODE_WEP104, | 1061 | MWIFIEX_AUTH_MODE_OPEN; |
1062 | auth_type, wpa_enabled); | ||
1063 | } | 1062 | } |
1064 | 1063 | ||
1065 | goto done; | 1064 | goto done; |
@@ -1075,15 +1074,15 @@ mwifiex_cfg80211_assoc(struct mwifiex_private *priv, size_t ssid_len, u8 *ssid, | |||
1075 | if (sme->crypto.n_ciphers_pairwise) { | 1074 | if (sme->crypto.n_ciphers_pairwise) { |
1076 | pairwise_encrypt_mode = mwifiex_get_mwifiex_cipher(sme->crypto. | 1075 | pairwise_encrypt_mode = mwifiex_get_mwifiex_cipher(sme->crypto. |
1077 | ciphers_pairwise[0], &wpa_enabled); | 1076 | ciphers_pairwise[0], &wpa_enabled); |
1078 | ret = mwifiex_set_auth(priv, pairwise_encrypt_mode, auth_type, | 1077 | priv->sec_info.encryption_mode = pairwise_encrypt_mode; |
1079 | wpa_enabled); | 1078 | priv->sec_info.authentication_mode = auth_type; |
1080 | } | 1079 | } |
1081 | 1080 | ||
1082 | if (sme->crypto.cipher_group) { | 1081 | if (sme->crypto.cipher_group) { |
1083 | group_encrypt_mode = mwifiex_get_mwifiex_cipher(sme->crypto. | 1082 | group_encrypt_mode = mwifiex_get_mwifiex_cipher(sme->crypto. |
1084 | cipher_group, &wpa_enabled); | 1083 | cipher_group, &wpa_enabled); |
1085 | ret = mwifiex_set_auth(priv, group_encrypt_mode, auth_type, | 1084 | priv->sec_info.encryption_mode = group_encrypt_mode; |
1086 | wpa_enabled); | 1085 | priv->sec_info.authentication_mode = auth_type; |
1087 | } | 1086 | } |
1088 | if (sme->ie) | 1087 | if (sme->ie) |
1089 | ret = mwifiex_set_gen_ie(priv, sme->ie, sme->ie_len); | 1088 | ret = mwifiex_set_gen_ie(priv, sme->ie, sme->ie_len); |