In case the TBTT information is reporting about an AP in the same AP MLD
as the current AP, the AP MLD ID in the MLD Parameters subfield should
be set to 0.
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
len += RNR_TBTT_INFO_LEN;
} else {
#ifdef CONFIG_IEEE80211BE
- *eid++ = hapd->conf->mld_id;
+ if (reporting_hapd->conf->mld_ap &&
+ bss->conf->mld_id ==
+ reporting_hapd->conf->mld_id)
+ *eid++ = 0;
+ else
+ *eid++ = hapd->conf->mld_id;
+
*eid++ = hapd->mld_link_id | (1 << 4);
*eid++ = 0;
len += RNR_TBTT_INFO_MLD_LEN;