diff mbox series

[4/4] wifi: cfg80211: make sure to process all per-STA profiles

Message ID 1718009524-5579-5-git-send-email-quic_vjakkam@quicinc.com
State New
Headers show
Series wifi: cfg80211: fix per-STA profile BSS entry issues | expand

Commit Message

Veerendranath Jakkam June 10, 2024, 8:52 a.m. UTC
Currently if BSS entry can't be created from any per-STA profile all
subsequent per-STA profiles in the multi-link element are ignored,
though they can generate valid BSS entries. To avoid this continue
processing the remaining per-STA profiles in the multi-link element
even if BSS entry not created from current per-STA profile.

Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
---
 net/wireless/scan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/net/wireless/scan.c b/net/wireless/scan.c
index 37ebe5a..546758c 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -3046,7 +3046,7 @@  cfg80211_parse_ml_elem_sta_data(struct wiphy *wiphy,
 
 		bss = cfg80211_inform_single_bss_data(wiphy, &data, gfp);
 		if (!bss)
-			break;
+			continue;
 		cfg80211_put_bss(wiphy, bss);
 	}