Browse Source

qcacld-3.0: Downgrade connection to HE mode

STA is not able to connect to 11be non-WPA3 mode AP.

STA need to decide whether to connect in EHT or not at
the time of connection to AP based on security configuration.

Change-Id: I823decc17af21f80969c09742c6136d4215b87f6
CRs-Fixed: 3558758
Aravind Kishore Sukla 2 years ago
parent
commit
c3ce65c825
1 changed files with 14 additions and 0 deletions
  1. 14 0
      core/mac/src/pe/lim/lim_process_sme_req_messages.c

+ 14 - 0
core/mac/src/pe/lim/lim_process_sme_req_messages.c

@@ -2106,9 +2106,23 @@ lim_get_bss_11be_mode_allowed(struct mac_context *mac_ctx,
 			      struct bss_description *bss_desc,
 			      tDot11fBeaconIEs *ie_struct)
 {
+	struct scan_cache_entry *scan_entry;
+	bool is_eht_allowed;
+
 	if (!ie_struct->eht_cap.present)
 		return false;
 
+	scan_entry = scm_scan_get_entry_by_bssid(mac_ctx->pdev,
+						 (struct qdf_mac_addr *)
+						 bss_desc->bssId);
+
+	if (scan_entry) {
+		is_eht_allowed =
+			cm_is_eht_allowed_for_current_security(scan_entry);
+		util_scan_free_cache_entry(scan_entry);
+		if (!is_eht_allowed)
+			return false;
+	}
 	return mlme_get_bss_11be_allowed(
 			mac_ctx->psoc,
 			(struct qdf_mac_addr *)&bss_desc->bssId,