[PATCH 13/18] MLD STA: Indicate AP MLD address in STATUS command

Veerendranath Jakkam quic_vjakkam at quicinc.com
Thu Jul 28 06:45:42 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 91c5c3e6e..3275f6bf7 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