nl80211: Check MLO link status info in NL80211_CMD_CONNECT
NL80211_CMD_CONNECT event indicates MLO links status info with kernel commit 53ad07e9823b ("wifi: cfg80211: support reporting failed links"). Consider MLO links as valid links only if the status is success (or was not indicated). Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
This commit is contained in:
parent
6e015cd454
commit
ee46b7d6d3
1 changed files with 5 additions and 0 deletions
|
@ -482,6 +482,11 @@ static void nl80211_parse_mlo_link_info(struct driver_sta_mlo_info *mlo,
|
|||
if (link_id >= MAX_NUM_MLD_LINKS)
|
||||
continue;
|
||||
|
||||
if (tb[NL80211_ATTR_STATUS_CODE] &&
|
||||
nla_get_u16(tb[NL80211_ATTR_STATUS_CODE]) !=
|
||||
WLAN_STATUS_SUCCESS)
|
||||
continue;
|
||||
|
||||
mlo->valid_links |= BIT(link_id);
|
||||
os_memcpy(mlo->links[link_id].addr,
|
||||
nla_data(tb[NL80211_ATTR_MAC]), ETH_ALEN);
|
||||
|
|
Loading…
Reference in a new issue