]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
MLD STA: Indicate AP MLD address in STATUS command
authorAleti Nageshwar Reddy <quic_anageshw@quicinc.com>
Thu, 8 Sep 2022 14:44:18 +0000 (20:14 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 15 Sep 2022 13:00:51 +0000 (16:00 +0300)
Append AP MLD address info into the STATUS control interface command.

Signed-off-by: Aleti Nageshwar Reddy <quic_anageshw@quicinc.com>
wpa_supplicant/ctrl_iface.c

index 00c5b0ff916254610fb21570f4e8b1d4dc3bb2d9..4f715603dfd17a801adf947472c2b1e7337bf58f 100644 (file)
@@ -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,