qcacmn: Fix partner link id updation in ml_info of scan cache entry

Currently, partner info array in scan entry is contains self link
information in first index. to avoid confusion, update partner info
with only partner links information and store self link id in ml_info
of scan entry

Change-Id: I53992fee355613b8521409da412254c05fb63fbf
CRs-fixed: 2991229
Esse commit está contido em:
Bapiraju Alla
2021-07-14 02:39:37 -07:00
commit de Madan Koyyalamudi
commit 733e990dce
3 arquivos alterados com 18 adições e 20 exclusões

Ver arquivo

@@ -516,12 +516,14 @@ struct partner_link_info {
* struct ml_info: Multi link formation of a 11be beacon
* @mld_mac_addr: MLD mac address
* @num_links: Number of links supported by ML AP
* @self_link_id: Link id of the scan entry
* @link_info: Array containing partner links information
* @ml_bss_score: Multi link BSS score
*/
struct ml_info {
struct qdf_mac_addr mld_mac_addr;
uint8_t num_links;
uint8_t self_link_id;
struct partner_link_info link_info[MLD_MAX_LINKS - 1];
uint16_t ml_bss_score;
};

Ver arquivo

@@ -771,8 +771,8 @@ util_scan_get_ml_partner_info(struct scan_cache_entry *scan_entry)
uint8_t i;
partner_info.num_partner_links =
qdf_min((uint8_t)WLAN_UMAC_MLO_MAX_VDEVS,
scan_entry->ml_info->num_links);
qdf_min((uint8_t)WLAN_UMAC_MLO_MAX_VDEVS - 1,
scan_entry->ml_info->num_links - 1);
/* TODO: Make sure that scan_entry->ml_info->link_info is a sorted
* list */
for (i = 0; i < partner_info.num_partner_links; i++) {