mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 10:18:21 -05:00
dbus: Fix build without CONFIG_WNM=y
wpa_s->bss_tm_status is within #ifdef CONFIG_WNM, so need to access it
through matching condition.
Fixes: 80d06d0ca9
("dbus: Export BSS Transition Management status")
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
aae0eece5f
commit
441ba1a3e3
@ -3213,8 +3213,12 @@ dbus_bool_t wpas_dbus_getter_bss_tm_status(
|
||||
const struct wpa_dbus_property_desc *property_desc,
|
||||
DBusMessageIter *iter, DBusError *error, void *user_data)
|
||||
{
|
||||
#ifdef CONFIG_WNM
|
||||
struct wpa_supplicant *wpa_s = user_data;
|
||||
dbus_uint32_t bss_tm_status = wpa_s->bss_tm_status;
|
||||
#else /* CONFIG_WNM */
|
||||
dbus_uint32_t bss_tm_status = 0;
|
||||
#endif /* CONFIG_WNM */
|
||||
|
||||
return wpas_dbus_simple_property_getter(iter, DBUS_TYPE_UINT32,
|
||||
&bss_tm_status, error);
|
||||
|
Loading…
Reference in New Issue
Block a user