Browse Source

qcacld-3.0: Send max simultaneous links to FW via peer assoc

Add logic to send the maximum number of simultaneous links
a STA supports to Firmware via peer assoc. Also, as per the
latest agreement between Host and Firmware, to avoid
backward compatibility issues, Host will set maximum
simultaneous links as 1 for MLSR and 2 for MLMR modes.

CRs-Fixed: 3653440
Change-Id: Id7b32d8651bb49f4a8cb8949d89ad40eb018d818
Gururaj Pandurangi 1 year ago
parent
commit
44e7e54bc9
1 changed files with 8 additions and 0 deletions
  1. 8 0
      core/wma/src/wma_mgmt.c

+ 8 - 0
core/wma/src/wma_mgmt.c

@@ -1379,6 +1379,14 @@ static void wma_set_mlo_capability(tp_wma_handle wma,
 				params->msd_caps.med_sync_max_txop_num;
 		req->mlo_params.link_switch_in_progress =
 			wlan_vdev_mlme_is_mlo_link_switch_in_progress(vdev);
+		/*
+		 * Set max simultaneous links = 1 for MLSR, 2 for MLMR. The +1
+		 * is added as per the agreement with FW for backward
+		 * compatibility purposes. Our internal structures still
+		 * conform to the values as per spec i.e. 0 = MLSR, 1 = MLMR.
+		 */
+		req->mlo_params.max_num_simultaneous_links =
+			wlan_mlme_get_sta_mlo_simultaneous_links(psoc) + 1;
 	} else {
 		wma_debug("Peer MLO context is NULL");
 		req->mlo_params.mlo_enabled = false;