From: Aleti Nageshwar Reddy Date: Thu, 8 Sep 2022 14:44:18 +0000 (+0530) Subject: MLD STA: Indicate AP MLD address in STATUS command X-Git-Tag: hostap_2_11~1706 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ca98040a2bf853f9275f314ddab481af546f3ee;p=thirdparty%2Fhostap.git 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 --- 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,