aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMarc Yang <yangyang@marvell.com>2011-03-28 20:55:42 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-04 16:20:04 -0400
commitf986b6d538c9351c99108b51be9f77ac1b300b16 (patch)
tree7a5a1afe3f07cd6aff200cacee138453c46c6df4 /drivers/net
parenteecd8250e492ffc4e7b72953cda9c2f3ba0e6ccc (diff)
mwifiex: remove MWIFIEX_AUTH_MODE_ macros
replace them with NL80211_AUTHTYPE_ macros 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')
-rw-r--r--drivers/net/wireless/mwifiex/cfg80211.c8
-rw-r--r--drivers/net/wireless/mwifiex/init.c2
-rw-r--r--drivers/net/wireless/mwifiex/ioctl.h5
-rw-r--r--drivers/net/wireless/mwifiex/join.c2
4 files changed, 6 insertions, 11 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c
index 701c17980f6..2d9680044c1 100644
--- a/drivers/net/wireless/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/mwifiex/cfg80211.c
@@ -600,7 +600,7 @@ mwifiex_cfg80211_change_virtual_intf(struct wiphy *wiphy,
600 600
601 mwifiex_deauthenticate(priv, wait, NULL); 601 mwifiex_deauthenticate(priv, wait, NULL);
602 602
603 priv->sec_info.authentication_mode = MWIFIEX_AUTH_MODE_OPEN; 603 priv->sec_info.authentication_mode = NL80211_AUTHTYPE_OPEN_SYSTEM;
604 604
605 ret = mwifiex_prepare_cmd(priv, HostCmd_CMD_SET_BSS_MODE, 605 ret = mwifiex_prepare_cmd(priv, HostCmd_CMD_SET_BSS_MODE,
606 HostCmd_ACT_GEN_SET, 0, wait, NULL); 606 HostCmd_ACT_GEN_SET, 0, wait, NULL);
@@ -1056,7 +1056,7 @@ mwifiex_cfg80211_assoc(struct mwifiex_private *priv, size_t ssid_len, u8 *ssid,
1056 priv->sec_info.encryption_mode = 1056 priv->sec_info.encryption_mode =
1057 MWIFIEX_ENCRYPTION_MODE_WEP104; 1057 MWIFIEX_ENCRYPTION_MODE_WEP104;
1058 priv->sec_info.authentication_mode = 1058 priv->sec_info.authentication_mode =
1059 MWIFIEX_AUTH_MODE_OPEN; 1059 NL80211_AUTHTYPE_OPEN_SYSTEM;
1060 } 1060 }
1061 1061
1062 goto done; 1062 goto done;
@@ -1065,9 +1065,9 @@ mwifiex_cfg80211_assoc(struct mwifiex_private *priv, size_t ssid_len, u8 *ssid,
1065 /* Now handle infra mode. "sme" is valid for infra mode only */ 1065 /* Now handle infra mode. "sme" is valid for infra mode only */
1066 if (sme->auth_type == NL80211_AUTHTYPE_AUTOMATIC 1066 if (sme->auth_type == NL80211_AUTHTYPE_AUTOMATIC
1067 || sme->auth_type == NL80211_AUTHTYPE_OPEN_SYSTEM) 1067 || sme->auth_type == NL80211_AUTHTYPE_OPEN_SYSTEM)
1068 auth_type = MWIFIEX_AUTH_MODE_OPEN; 1068 auth_type = NL80211_AUTHTYPE_OPEN_SYSTEM;
1069 else if (sme->auth_type == NL80211_AUTHTYPE_SHARED_KEY) 1069 else if (sme->auth_type == NL80211_AUTHTYPE_SHARED_KEY)
1070 auth_type = MWIFIEX_AUTH_MODE_SHARED; 1070 auth_type = NL80211_AUTHTYPE_SHARED_KEY;
1071 1071
1072 if (sme->crypto.n_ciphers_pairwise) { 1072 if (sme->crypto.n_ciphers_pairwise) {
1073 pairwise_encrypt_mode = mwifiex_get_mwifiex_cipher(sme->crypto. 1073 pairwise_encrypt_mode = mwifiex_get_mwifiex_cipher(sme->crypto.
diff --git a/drivers/net/wireless/mwifiex/init.c b/drivers/net/wireless/mwifiex/init.c
index 00e73eac1af..bad436d6059 100644
--- a/drivers/net/wireless/mwifiex/init.c
+++ b/drivers/net/wireless/mwifiex/init.c
@@ -85,7 +85,7 @@ static int mwifiex_init_priv(struct mwifiex_private *priv)
85 priv->data_avg_factor = DEFAULT_DATA_AVG_FACTOR; 85 priv->data_avg_factor = DEFAULT_DATA_AVG_FACTOR;
86 86
87 priv->sec_info.wep_status = MWIFIEX_802_11_WEP_DISABLED; 87 priv->sec_info.wep_status = MWIFIEX_802_11_WEP_DISABLED;
88 priv->sec_info.authentication_mode = MWIFIEX_AUTH_MODE_OPEN; 88 priv->sec_info.authentication_mode = NL80211_AUTHTYPE_OPEN_SYSTEM;
89 priv->sec_info.encryption_mode = MWIFIEX_ENCRYPTION_MODE_NONE; 89 priv->sec_info.encryption_mode = MWIFIEX_ENCRYPTION_MODE_NONE;
90 for (i = 0; i < ARRAY_SIZE(priv->wep_key); i++) 90 for (i = 0; i < ARRAY_SIZE(priv->wep_key); i++)
91 memset(&priv->wep_key[i], 0, sizeof(struct mwifiex_wep_key)); 91 memset(&priv->wep_key[i], 0, sizeof(struct mwifiex_wep_key));
diff --git a/drivers/net/wireless/mwifiex/ioctl.h b/drivers/net/wireless/mwifiex/ioctl.h
index 7fb81dfdf8f..7e0d3160f61 100644
--- a/drivers/net/wireless/mwifiex/ioctl.h
+++ b/drivers/net/wireless/mwifiex/ioctl.h
@@ -269,11 +269,6 @@ struct mwifiex_debug_info {
269}; 269};
270 270
271enum { 271enum {
272 MWIFIEX_AUTH_MODE_OPEN = 0x00,
273 MWIFIEX_AUTH_MODE_SHARED = 0x01,
274};
275
276enum {
277 MWIFIEX_ENCRYPTION_MODE_NONE = 0, 272 MWIFIEX_ENCRYPTION_MODE_NONE = 0,
278 MWIFIEX_ENCRYPTION_MODE_WEP40 = 1, 273 MWIFIEX_ENCRYPTION_MODE_WEP40 = 1,
279 MWIFIEX_ENCRYPTION_MODE_TKIP = 2, 274 MWIFIEX_ENCRYPTION_MODE_TKIP = 2,
diff --git a/drivers/net/wireless/mwifiex/join.c b/drivers/net/wireless/mwifiex/join.c
index d8c7c5f8464..8a1eb2a9ab1 100644
--- a/drivers/net/wireless/mwifiex/join.c
+++ b/drivers/net/wireless/mwifiex/join.c
@@ -449,7 +449,7 @@ int mwifiex_cmd_802_11_associate(struct mwifiex_private *priv,
449 auth_tlv->auth_type = cpu_to_le16( 449 auth_tlv->auth_type = cpu_to_le16(
450 (u16) priv->sec_info.authentication_mode); 450 (u16) priv->sec_info.authentication_mode);
451 else 451 else
452 auth_tlv->auth_type = cpu_to_le16(MWIFIEX_AUTH_MODE_OPEN); 452 auth_tlv->auth_type = cpu_to_le16(NL80211_AUTHTYPE_OPEN_SYSTEM);
453 453
454 pos += sizeof(auth_tlv->header) + le16_to_cpu(auth_tlv->header.len); 454 pos += sizeof(auth_tlv->header) + le16_to_cpu(auth_tlv->header.len);
455 455