Browse Source

qcacld-3.0: Comparing the first partner link info

Currently, util_gen_link_reqrsp_cmn generates only the
first partner link and DUT only 2 mlo link is supported.
Just check whether the first partner link info is matching
for short term.

Change-Id: If13884cf11ef4fbd84a07eca8d7807bdf9e56706
CRs-Fixed: 3306145
Paul Zhang 2 years ago
parent
commit
6f08dcffc3
1 changed files with 18 additions and 0 deletions
  1. 18 0
      core/mac/src/pe/lim/lim_api.c

+ 18 - 0
core/mac/src/pe/lim/lim_api.c

@@ -3579,6 +3579,24 @@ lim_validate_probe_rsp_link_info(struct pe_session *session_entry,
 		}
 	}
 
+	/* WAR: currently util_gen_link_reqrsp_cmn generates only the first
+	 * partner link and DUT only 2 mlo link is supported, so let's just
+	 * comparing the first partner info to check whether mlo is possible.
+	 */
+	if (ml_partner_info.num_partner_links == 1) {
+		if (partner_info.partner_link_info[0].link_id ==
+		    ml_partner_info.partner_link_info[0].link_id &&
+		    (qdf_is_macaddr_equal(&ml_partner_info.partner_link_info[0].link_addr,
+					  &partner_info.partner_link_info[0].link_addr)))
+			status = QDF_STATUS_SUCCESS;
+		else
+			status = QDF_STATUS_E_PROTO;
+
+		pe_debug("DUT num partner: %d, AP num partner: %d, status: %d",
+			 ml_partner_info.num_partner_links,
+			 partner_info.num_partner_links, status);
+	}
+
 	return status;
 }