[PATCH 11/18] bss: Indicate AP MLD address in bss info

Veerendranath Jakkam quic_vjakkam at quicinc.com
Thu Jul 28 06:45:40 PDT 2022


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

Indicate AP MLD address in the response of bss control interface
command.

Signed-off-by: Aleti Nageshwar Reddy <quic_anageshw at quicinc.com>
---
 wpa_supplicant/ctrl_iface.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index d8fdf37e0..e330d606a 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -5424,6 +5424,15 @@ static int print_bss_info(struct wpa_supplicant *wpa_s, struct wpa_bss *bss,
 	}
 #endif /* CONFIG_FILS */
 
+	if (!is_zero_ether_addr(bss->mld_addr)) {
+		ret = os_snprintf(pos, end - pos,
+				  "ap_mld_addr="MACSTR"\n",
+				  MAC2STR(bss->mld_addr));
+		if (os_snprintf_error(end - pos, ret))
+			return 0;
+		pos += ret;
+	}
+
 	if (mask & WPA_BSS_MASK_DELIM) {
 		ret = os_snprintf(pos, end - pos, "====\n");
 		if (os_snprintf_error(end - pos, ret))
-- 
2.25.1




More information about the Hostap mailing list