From af7e092d9a8ac51e9cb40428f733070afb3e09ce Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Wed, 7 Jun 2017 15:23:22 +0530 Subject: [PATCH] qcacmn: Fix connection failure with WEP AP If AP was configured in WEP mode the scan module is not able to filter the AP and thus connection fails. Fix the logic due to which the AP was not filtered. Change-Id: I03ee702875e867986e4bae635269a844914c8043 CRs-Fixed: 2057585 --- umac/scan/core/src/wlan_scan_cache_db_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umac/scan/core/src/wlan_scan_cache_db_ops.c b/umac/scan/core/src/wlan_scan_cache_db_ops.c index c0a4a87f79a3..034bb3090f30 100644 --- a/umac/scan/core/src/wlan_scan_cache_db_ops.c +++ b/umac/scan/core/src/wlan_scan_cache_db_ops.c @@ -418,7 +418,7 @@ static bool scm_is_wep_security(struct scan_filter *filter, enum wlan_enc_type neg_mccipher = WLAN_ENCRYPT_TYPE_NONE; /* If privacy bit is not set, consider no match */ - if (db_entry->cap_info.wlan_caps.privacy) + if (!db_entry->cap_info.wlan_caps.privacy) return false; for (i = 0; i < filter->num_of_mc_enc_type; i++) {