aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/join.c
diff options
context:
space:
mode:
authorYogesh Ashok Powar <yogeshp@marvell.com>2011-04-01 18:36:47 -0700
committerJohn W. Linville <linville@tuxdriver.com>2011-04-07 15:34:12 -0400
commit2be50b8df53f2f329b7ddcc8be286ef6a7469fd2 (patch)
tree7ae394235800749a21c89c5ea510a4b5d73f8f88 /drivers/net/wireless/mwifiex/join.c
parentmwifiex: return success in set_default_key for WPA/WPA2 (diff)
downloadlinux-dev-2be50b8df53f2f329b7ddcc8be286ef6a7469fd2.tar.xz
linux-dev-2be50b8df53f2f329b7ddcc8be286ef6a7469fd2.zip
mwifiex: remove redundant encryption_mode mapping
remove MWIFIEX_ENCRYPTION_MODE_ and use WLAN_CIPHER_SUITE_ macros directly Signed-off-by: Yogesh Ashok Powar <yogeshp@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/join.c')
-rw-r--r--drivers/net/wireless/mwifiex/join.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/join.c b/drivers/net/wireless/mwifiex/join.c
index 8a1eb2a9ab13..7a9e0b5962ed 100644
--- a/drivers/net/wireless/mwifiex/join.c
+++ b/drivers/net/wireless/mwifiex/join.c
@@ -869,7 +869,7 @@ mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv,
tmp_cap |= WLAN_CAPABILITY_IBSS;
/* Set up privacy in bss_desc */
- if (priv->sec_info.encryption_mode != MWIFIEX_ENCRYPTION_MODE_NONE) {
+ if (priv->sec_info.encryption_mode) {
/* Ad-Hoc capability privacy on */
dev_dbg(adapter->dev,
"info: ADHOC_S_CMD: wep_status set privacy to WEP\n");