Browse Source

qcacld-3.0: Fix partner info mismach issue

If DUT only supports one link, it does not set the partner info
in the probe request. But it tries to match the partner info when
it receives the ML probe response no matter the peer supports more
then one link. It causes the matching failure if peer supports two
links.
To resolve this issue, using the DUT's num_partner_links to control
the iteration.

Change-Id: I0e30cf1b566641dfd7eff5678f8d46be99005d51
CRs-Fixed: 3265252
Paul Zhang 2 years ago
parent
commit
3b08e1c692
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/mac/src/pe/lim/lim_api.c

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

@@ -3559,7 +3559,7 @@ lim_validate_probe_rsp_link_info(struct pe_session *session_entry,
 	}
 
 	ml_partner_info = session_entry->lim_join_req->partner_info;
-	for (i = 0; i < partner_info.num_partner_links; i++) {
+	for (i = 0; i < ml_partner_info.num_partner_links; i++) {
 		if (!lim_match_link_info(ml_partner_info.partner_link_info[i].link_id,
 					 &ml_partner_info.partner_link_info[i].link_addr,
 					 &partner_info)) {