From 46a383c663b66e7783cc415c2f245e8b7448f89d Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Fri, 23 Feb 2018 14:59:35 +0530 Subject: [PATCH] qcacmn: Add scan filter to ignore PMF check for STA test mode In testbed STA mode the RSNE may not match with APUT and thus driver fails to filter AP from scan cache as PMF capability mismatch. With this change driver will ignore PMF capability check and proceed with connection to send auth and assoc to APUT. Change-Id: I195cda133c8d2b9d38b1d2966261c320185ffeca CRs-Fixed: 2195352 --- umac/scan/core/src/wlan_scan_filter.c | 3 ++- umac/scan/dispatcher/inc/wlan_scan_public_structs.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/umac/scan/core/src/wlan_scan_filter.c b/umac/scan/core/src/wlan_scan_filter.c index 5973f16285b0..83194a766ad4 100644 --- a/umac/scan/core/src/wlan_scan_filter.c +++ b/umac/scan/core/src/wlan_scan_filter.c @@ -529,7 +529,8 @@ static bool scm_is_rsn_security(struct scan_filter *filter, if (!match) return false; - match = scm_check_pmf_match(filter, &rsn); + if (!filter->ignore_pmf_cap) + match = scm_check_pmf_match(filter, &rsn); if (match) { security->auth_type = neg_auth; diff --git a/umac/scan/dispatcher/inc/wlan_scan_public_structs.h b/umac/scan/dispatcher/inc/wlan_scan_public_structs.h index 6a7dd4a6cb21..50325d7e58e1 100644 --- a/umac/scan/dispatcher/inc/wlan_scan_public_structs.h +++ b/umac/scan/dispatcher/inc/wlan_scan_public_structs.h @@ -495,6 +495,7 @@ struct fils_filter_info { * @num_of_enc_type: number of unicast enc type * @num_of_mc_enc_type: number of multicast enc type * @pmf_cap: Pmf capability + * @ignore_pmf_cap: Ignore pmf capability match * @num_of_pcl_channels: number of pcl channels * @bss_type: bss type BSS/IBSS etc * @dot11_mode: operating modes 0 mean any @@ -530,6 +531,7 @@ struct scan_filter { uint32_t num_of_enc_type; uint32_t num_of_mc_enc_type; enum wlan_pmf_cap pmf_cap; + bool ignore_pmf_cap; uint32_t num_of_pcl_channels; enum wlan_bss_type bss_type; enum wlan_phymode dot11_mode;