[PATCH v2 12/17] MLD STA: Indicate AP MLD address in STATUS command

Veerendranath Jakkam quic_vjakkam at quicinc.com
Thu Sep 8 07:44:18 PDT 2022


From: Aleti Nageshwar Reddy <quic_anageshw at quicinc.com>

Append AP MLD address info in STATUS control interface command.

Signed-off-by: Aleti Nageshwar Reddy <quic_anageshw at quicinc.com>
---
 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 a60da649e..d5ba95914 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,
-- 
2.25.1




More information about the Hostap mailing list