]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Output BSS Color (he_bss_color) when using STATUS
authorAntonio Prcela <antonio.prcela@gmail.com>
Tue, 13 Jun 2023 14:20:29 +0000 (16:20 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Oct 2023 08:58:33 +0000 (10:58 +0200)
Make the current HE BSS color available in STATUS command output since
this can change dynamically based on color collisions.

Signed-off-by: Antonio Prcela <antonio.prcela@gmail.com>
Signed-off-by: Antonio Prcela <antonio.prcela@sartura.hr>
src/ap/ctrl_iface_ap.c

index c7504ad2b419c9db44875264b7897edc0bdc0237..a6fcb7ee49e0a1e207a95f963059d9dc972f612a 100644 (file)
@@ -845,6 +845,16 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
                if (os_snprintf_error(buflen - len, ret))
                        return len;
                len += ret;
+
+               if (!iconf->he_op.he_bss_color_disabled &&
+                   iconf->he_op.he_bss_color) {
+                       ret = os_snprintf(buf + len, buflen - len,
+                                         "he_bss_color=%d\n",
+                                         iconf->he_op.he_bss_color);
+                       if (os_snprintf_error(buflen - len, ret))
+                               return len;
+                       len += ret;
+               }
        }
 #endif /* CONFIG_IEEE80211AX */