Browse Source

qcacld-3.0: Set link frequency to partner info

Update channel frequency to partner infor from scan entry.
And correct debug print to show correct channel frequency value.

Change-Id: I3fc3a04b3ef0a4e627e724ad88c5038d35cd8e4a
CRs-Fixed: 3303855
Liangwei Dong 2 years ago
parent
commit
d90e41b18c

+ 7 - 3
components/umac/mlme/connection_mgr/core/src/wlan_cm_vdev_connect.c

@@ -1102,9 +1102,11 @@ cm_get_ml_partner_info(struct scan_cache_entry *scan_entry,
 	 * entry should be cleared to not affect next connect request.
 	 */
 	for (i = 0; i < scan_entry->ml_info.num_links; i++) {
-		mlme_debug("freq: %d, link id: %d",
-			   partner_info->partner_link_info[i].chan_freq,
-			   scan_entry->ml_info.link_info[i].link_id);
+		mlme_debug("freq: %d, link id: %d "QDF_MAC_ADDR_FMT,
+			   scan_entry->ml_info.link_info[i].freq,
+			   scan_entry->ml_info.link_info[i].link_id,
+			   QDF_MAC_ADDR_REF(
+			   scan_entry->ml_info.link_info[i].link_addr.bytes));
 		if (j >= mlo_support_link_num - 1)
 			break;
 		if (scan_entry->ml_info.link_info[i].is_valid_link) {
@@ -1112,6 +1114,8 @@ cm_get_ml_partner_info(struct scan_cache_entry *scan_entry,
 				scan_entry->ml_info.link_info[i].link_addr;
 			partner_info->partner_link_info[j].link_id =
 				scan_entry->ml_info.link_info[i].link_id;
+			partner_info->partner_link_info[j].chan_freq =
+				scan_entry->ml_info.link_info[i].freq;
 			j++;
 		} else {
 			scan_entry->ml_info.link_info[i].is_valid_link = false;

+ 1 - 1
core/mac/src/pe/lim/lim_process_sme_req_messages.c

@@ -4000,7 +4000,7 @@ static void lim_fill_ml_info(struct cm_vdev_join_req *req,
 		qdf_copy_macaddr(
 			&partner_info->partner_link_info[idx].link_addr,
 			&req->partner_info.partner_link_info[idx].link_addr);
-		pe_debug("MLO: link_id:%d" QDF_MAC_ADDR_FMT,
+		pe_debug("MLO: link_id:%d " QDF_MAC_ADDR_FMT,
 			 partner_info->partner_link_info[idx].link_id,
 			 QDF_MAC_ADDR_REF(partner_info->partner_link_info[idx].
 					  link_addr.bytes));