NL80211_CMD_CONNECT event indicates MLO links status info with kernel commit 53ad07e9823b ("wifi: cfg80211: support reporting failed links"). Consider MLO links with success status only as valid links. Signed-off-by: Veerendranath Jakkam <quic_vjakkam@xxxxxxxxxxx> --- src/drivers/driver_nl80211_event.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/drivers/driver_nl80211_event.c b/src/drivers/driver_nl80211_event.c index 4f6de9891..aaf4c755f 100644 --- a/src/drivers/driver_nl80211_event.c +++ b/src/drivers/driver_nl80211_event.c @@ -482,7 +482,16 @@ static void nl80211_parse_mlo_link_info(struct driver_sta_mlo_info *mlo, if (link_id >= MAX_NUM_MLD_LINKS) continue; - mlo->valid_links |= BIT(link_id); + if (tb[NL80211_ATTR_STATUS_CODE]) { + if (nla_get_u16(tb[NL80211_ATTR_STATUS_CODE]) == + WLAN_STATUS_SUCCESS) + mlo->valid_links |= BIT(link_id); + else + continue; + } else { + mlo->valid_links |= BIT(link_id); + } + os_memcpy(mlo->links[link_id].addr, nla_data(tb[NL80211_ATTR_MAC]), ETH_ALEN); os_memcpy(mlo->links[link_id].bssid, -- 2.25.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap