]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
dbus: Increase XML buffer size for an interface introspection data
authorJouni Malinen <j@w1.fi>
Sat, 25 Nov 2023 09:13:42 +0000 (11:13 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 25 Nov 2023 09:13:42 +0000 (11:13 +0200)
The current set of global configuration fields is getting close to the
previously used 15000 byte limit, so increase this size to 16000 and add
a note about the potential need to change this size when adding new
fields.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/config.c
wpa_supplicant/dbus/dbus_new_introspect.c

index 77467f00a16e3aed548250d0c96ffe35b330b74e..a0d151d7a40c897bfcddddc1d04f1b72b86ad06a 100644 (file)
@@ -5519,6 +5519,9 @@ static const struct global_parse_data global_fields[] = {
        { INT_RANGE(pasn_corrupt_mic, 0, 1), 0 },
 #endif /* CONFIG_TESTING_OPTIONS */
 #endif /* CONFIG_PASN */
+       /* NOTE: When adding new parameters here, add_interface() in
+        * wpa_supplicant/dbus_new_introspect.c may need to be modified to
+        * increase the size of the iface->xml buffer. */
 };
 
 #undef FUNC
index 6c721bf556db26c28de29aa4c17549834c04d60b..a8c0d28398d4624c01a60878b4de5722745d2129 100644 (file)
@@ -38,7 +38,7 @@ static struct interfaces * add_interface(struct dl_list *list,
        if (!iface)
                return NULL;
        iface->dbus_interface = os_strdup(dbus_interface);
-       iface->xml = wpabuf_alloc(15000);
+       iface->xml = wpabuf_alloc(16000);
        if (iface->dbus_interface == NULL || iface->xml == NULL) {
                os_free(iface->dbus_interface);
                wpabuf_free(iface->xml);