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

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

index 4deded99b9ff2af2b44d8a2ef6705d30aae114c8..1f1c98b97dfbdecd7df74f54d9df62495522fd6a 100644 (file)
@@ -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))