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
This commit is contained in:
Aravind Kishore Sukla
2023-04-03 15:47:32 +05:30
committed by Rahul Choudhary
parent 25fd32eab3
commit c3ce65c825

View File

@@ -2106,9 +2106,23 @@ lim_get_bss_11be_mode_allowed(struct mac_context *mac_ctx,
struct bss_description *bss_desc, struct bss_description *bss_desc,
tDot11fBeaconIEs *ie_struct) tDot11fBeaconIEs *ie_struct)
{ {
struct scan_cache_entry *scan_entry;
bool is_eht_allowed;
if (!ie_struct->eht_cap.present) if (!ie_struct->eht_cap.present)
return false; 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( return mlme_get_bss_11be_allowed(
mac_ctx->psoc, mac_ctx->psoc,
(struct qdf_mac_addr *)&bss_desc->bssId, (struct qdf_mac_addr *)&bss_desc->bssId,