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
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue