[PATCH v3 01/21] nl80211: Add support to parse MLO link status info in NL80211_CMD_CONNECT
Veerendranath Jakkam
quic_vjakkam at quicinc.com
Wed Oct 19 07:13:49 PDT 2022
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 at quicinc.com>
---
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
More information about the Hostap
mailing list