aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mwifiex/scan.c
diff options
context:
space:
mode:
authorYogesh Ashok Powar2011-04-01 18:36:47 -0700
committerJohn W. Linville2011-04-07 15:34:12 -0400
commit2be50b8df53f2f329b7ddcc8be286ef6a7469fd2 (patch)
tree7ae394235800749a21c89c5ea510a4b5d73f8f88 /drivers/net/wireless/mwifiex/scan.c
parent2d3d0a88bd136f8e6f39bc53242712852e5d0bb2 (diff)
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/scan.c')
-rw-r--r--drivers/net/wireless/mwifiex/scan.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/mwifiex/scan.c b/drivers/net/wireless/mwifiex/scan.c
index 64ed60a80977..6bb52d0e6cfa 100644
--- a/drivers/net/wireless/mwifiex/scan.c
+++ b/drivers/net/wireless/mwifiex/scan.c
@@ -273,8 +273,8 @@ mwifiex_is_network_compatible_for_no_sec(struct mwifiex_private *priv,
&& ((!bss_desc->bcn_rsn_ie) ||
((*(bss_desc->bcn_rsn_ie)).ieee_hdr.element_id !=
WLAN_EID_RSN))
- && priv->sec_info.encryption_mode ==
- MWIFIEX_ENCRYPTION_MODE_NONE && !bss_desc->privacy) {
+ && !priv->sec_info.encryption_mode
+ && !bss_desc->privacy) {
return true;
}
return false;
@@ -386,8 +386,8 @@ mwifiex_is_network_compatible_for_adhoc_aes(struct mwifiex_private *priv,
element_id != WLAN_EID_WPA))
&& ((!bss_desc->bcn_rsn_ie) || ((*(bss_desc->bcn_rsn_ie)).ieee_hdr.
element_id != WLAN_EID_RSN))
- && priv->sec_info.encryption_mode ==
- MWIFIEX_ENCRYPTION_MODE_NONE && bss_desc->privacy) {
+ && !priv->sec_info.encryption_mode
+ && bss_desc->privacy) {
return true;
}
return false;
@@ -408,8 +408,8 @@ mwifiex_is_network_compatible_for_dynamic_wep(struct mwifiex_private *priv,
element_id != WLAN_EID_WPA))
&& ((!bss_desc->bcn_rsn_ie) || ((*(bss_desc->bcn_rsn_ie)).ieee_hdr.
element_id != WLAN_EID_RSN))
- && priv->sec_info.encryption_mode !=
- MWIFIEX_ENCRYPTION_MODE_NONE && bss_desc->privacy) {
+ && priv->sec_info.encryption_mode
+ && bss_desc->privacy) {
dev_dbg(priv->adapter->dev, "info: %s: dynamic "
"WEP: index=%d wpa_ie=%#x wpa2_ie=%#x "
"EncMode=%#x privacy=%#x\n",