Przeglądaj źródła

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
Uraj Sasan 2 lat temu
rodzic
commit
0aacfaccd9
1 zmienionych plików z 5 dodań i 3 usunięć
  1. 5 3
      os_if/linux/mlme/src/osif_cm_req.c

+ 5 - 3
os_if/linux/mlme/src/osif_cm_req.c

@@ -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;
 		}