qcacmn: Allow connection with upto 3 links

Use macro which indicates maximum number of links we can support
for a given MLO association. Currently this is used for 3 Link
association in which the Association request will have per STA
profile of two other partner links.

Change-Id: If0927367110d58f8e42b40bb987c5b7497b8d551
CRs-Fixed: 3381043
Šī revīzija ir iekļauta:
Uraj Sasan
2023-01-09 11:38:31 +05:30
revīziju iesūtīja Madan Koyyalamudi
vecāks ce5f301bce
revīzija 0aacfaccd9

Parādīt failu

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2012-2015,2020-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -579,8 +579,10 @@ QDF_STATUS osif_update_mlo_partner_info(
return status;
}
if (partner_info.num_partner_links >= 2) {
osif_err("Rejecting connect for 3 or more link MLD");
if (partner_info.num_partner_links + 1 >
WLAN_UMAC_MLO_ASSOC_MAX_SUPPORTED_LINKS) {
osif_err("Rejecting connect for more than %d Assoc links",
WLAN_UMAC_MLO_ASSOC_MAX_SUPPORTED_LINKS);
return QDF_STATUS_E_FAILURE;
}