Browse Source

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
Abhishek Singh 7 năm trước cách đây
mục cha
commit
46a383c663

+ 2 - 1
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;

+ 2 - 0
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;