dbus: Fix IEs getter to use wpa_bss_ie_ptr()

The wpa_bss structure's last element is an empty array. The forgotten
code here assumed that the array of IEs was contiguous to the wpa_bss
structure. This is not always the case anymore. Update this missed case
to use the new wpa_bss_ie_ptr() wrapper to send the correct array of IEs
over DBus.

Fixes: be7ee264f6 ("BSS: Use wrapper function for getting a pointer to the IE buffer")
Signed-off-by: Brad Kemp <brad at beechwoods.com>
This commit is contained in:
Brad Kemp 2021-02-05 15:46:49 -05:00 committed by Jouni Malinen
parent 9416b5f323
commit 2b916c9fd5

View file

@ -5082,8 +5082,8 @@ dbus_bool_t wpas_dbus_getter_bss_ies(
return FALSE; return FALSE;
return wpas_dbus_simple_array_property_getter(iter, DBUS_TYPE_BYTE, return wpas_dbus_simple_array_property_getter(iter, DBUS_TYPE_BYTE,
res + 1, res->ie_len, wpa_bss_ie_ptr(res),
error); res->ie_len, error);
} }