Commit baeaabf9 authored by Veerendranath Jakkam's avatar Veerendranath Jakkam Committed by Johannes Berg

wifi: cfg80211: fix reporting failed MLO links status with cfg80211_connect_done

Individual MLO links connection status is not copied to
EVENT_CONNECT_RESULT data while processing the connect response
information in cfg80211_connect_done(). Due to this failed links
are wrongly indicated with success status in EVENT_CONNECT_RESULT.

To fix this, copy the individual MLO links status to the
EVENT_CONNECT_RESULT data.

Fixes: 53ad07e9 ("wifi: cfg80211: support reporting failed links")
Signed-off-by: default avatarVeerendranath Jakkam <quic_vjakkam@quicinc.com>
Reviewed-by: default avatarCarlos Llamas <cmllamas@google.com>
Link: https://patch.msgid.link/20240724125327.3495874-1-quic_vjakkam@quicinc.com
[commit message editorial changes]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 8f4fa087
...@@ -1045,6 +1045,7 @@ void cfg80211_connect_done(struct net_device *dev, ...@@ -1045,6 +1045,7 @@ void cfg80211_connect_done(struct net_device *dev,
cfg80211_hold_bss( cfg80211_hold_bss(
bss_from_pub(params->links[link].bss)); bss_from_pub(params->links[link].bss));
ev->cr.links[link].bss = params->links[link].bss; ev->cr.links[link].bss = params->links[link].bss;
ev->cr.links[link].status = params->links[link].status;
if (params->links[link].addr) { if (params->links[link].addr) {
ev->cr.links[link].addr = next; ev->cr.links[link].addr = next;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment