From ff99012d84642e34cc1aa874e121c2e63954875a Mon Sep 17 00:00:00 2001 From: Veerendranath Jakkam Date: Tue, 2 Jul 2024 19:41:55 +0530 Subject: [PATCH] RSNO: Use correct MLO capability while fetching RSNE/RSNXE Use current connection MLO capability to fetch the appropriate RSNE/RSNXE variant while processing association event. Signed-off-by: Veerendranath Jakkam --- wpa_supplicant/events.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 4393c469c..48a226a5f 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -3269,7 +3269,8 @@ static int wpa_supplicant_use_own_rsne_params(struct wpa_supplicant *wpa_s, if (wpa_s->wpa_proto & (WPA_PROTO_RSN | WPA_PROTO_OSEN)) { const u8 *bss_rsn; - bss_rsn = wpa_bss_get_rsne(wpa_s, bss, ssid, false); + bss_rsn = wpa_bss_get_rsne(wpa_s, bss, ssid, + wpa_s->valid_links); if (bss_rsn) { p = bss_rsn; len = 2 + bss_rsn[1]; @@ -3743,8 +3744,10 @@ static int wpa_supplicant_assoc_update_ie(struct wpa_supplicant *wpa_s) bss_wpa = wpa_bss_get_vendor_ie(wpa_s->current_bss, WPA_IE_VENDOR_TYPE); - bss_rsn = wpa_bss_get_rsne(wpa_s, wpa_s->current_bss, NULL, false); - bss_rsnx = wpa_bss_get_rsnxe(wpa_s, wpa_s->current_bss, NULL, false); + bss_rsn = wpa_bss_get_rsne(wpa_s, wpa_s->current_bss, NULL, + wpa_s->valid_links); + bss_rsnx = wpa_bss_get_rsnxe(wpa_s, wpa_s->current_bss, NULL, + wpa_s->valid_links); if (wpa_sm_set_ap_wpa_ie(wpa_s->wpa, bss_wpa, bss_wpa ? 2 + bss_wpa[1] : 0) ||