From 6ca98040a2bf853f9275f314ddab481af546f3ee Mon Sep 17 00:00:00 2001 From: Aleti Nageshwar Reddy Date: Thu, 8 Sep 2022 20:14:18 +0530 Subject: [PATCH] MLD STA: Indicate AP MLD address in STATUS command Append AP MLD address info into the STATUS control interface command. Signed-off-by: Aleti Nageshwar Reddy --- wpa_supplicant/ctrl_iface.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 00c5b0ff9..4f715603d 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -2383,6 +2383,14 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s, return pos - buf; pos += ret; + if (wpa_s->valid_links) { + ret = os_snprintf(pos, end - pos, "ap_mld_addr=" MACSTR "\n", + MAC2STR(wpa_s->ap_mld_addr)); + if (os_snprintf_error(end - pos, ret)) + return pos - buf; + pos += ret; + } + #ifdef CONFIG_HS20 if (wpa_s->current_bss && (hs20 = wpa_bss_get_vendor_ie(wpa_s->current_bss,