qcacld-3.0: Add comments for the change fixed
Add comments for the fix added to validate security for 11be connection and Reject partner link based on security check. Change-Id: I1b8d5e91e0e07c6c311b8c6ca6427c3fabd6b219 CRs-Fixed: 3605255
This commit is contained in:

committed by
Rahul Choudhary

parent
1db86797f4
commit
0d61022ac6
@@ -1183,6 +1183,13 @@ cm_get_ml_partner_info(struct wlan_objmgr_pdev *pdev,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Reject the partner link that doesn’t pass the
|
||||||
|
* security check and validate the next available
|
||||||
|
* partner link. If none of the partner link passes
|
||||||
|
* the security check, proceed connection with
|
||||||
|
* single link.
|
||||||
|
*/
|
||||||
is_security_allowed =
|
is_security_allowed =
|
||||||
wlan_cm_is_eht_allowed_for_current_security(
|
wlan_cm_is_eht_allowed_for_current_security(
|
||||||
part_scan_entry);
|
part_scan_entry);
|
||||||
|
@@ -2111,12 +2111,18 @@ lim_get_bss_11be_mode_allowed(struct mac_context *mac_ctx,
|
|||||||
(struct qdf_mac_addr *)
|
(struct qdf_mac_addr *)
|
||||||
bss_desc->bssId);
|
bss_desc->bssId);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If AP advertises multiple AKMs(WPA2 PSK + WPA3), allow connection
|
||||||
|
* in 11BE mode as our connection is going to be WPA3
|
||||||
|
*/
|
||||||
if (scan_entry) {
|
if (scan_entry) {
|
||||||
is_eht_allowed =
|
is_eht_allowed =
|
||||||
wlan_cm_is_eht_allowed_for_current_security(scan_entry);
|
wlan_cm_is_eht_allowed_for_current_security(scan_entry);
|
||||||
util_scan_free_cache_entry(scan_entry);
|
util_scan_free_cache_entry(scan_entry);
|
||||||
if (!is_eht_allowed)
|
if (!is_eht_allowed) {
|
||||||
|
pe_debug("Downgrade to 11ax mode due to AP security validation failure");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return mlme_get_bss_11be_allowed(
|
return mlme_get_bss_11be_allowed(
|
||||||
mac_ctx->psoc,
|
mac_ctx->psoc,
|
||||||
|
Reference in New Issue
Block a user