dbus: Use correct values for persistent group
D-Bus expects "persistent" to be a bool (0/1) and crashes otherwise. Since persistent may also be 2 convert it to boolean. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com> Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
This commit is contained in:
parent
cf36ffd43c
commit
9b1e0ab4e8
1 changed files with 2 additions and 1 deletions
|
@ -1663,7 +1663,8 @@ void wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s,
|
|||
wpa_s->dbus_new_path) ||
|
||||
!wpa_dbus_dict_append_string(&dict_iter, "role",
|
||||
client ? "client" : "GO") ||
|
||||
!wpa_dbus_dict_append_bool(&dict_iter, "persistent", persistent) ||
|
||||
!wpa_dbus_dict_append_bool(&dict_iter, "persistent",
|
||||
!!persistent) ||
|
||||
!wpa_dbus_dict_append_object_path(&dict_iter, "group_object",
|
||||
wpa_s->dbus_groupobj_path) ||
|
||||
(ip &&
|
||||
|
|
Loading…
Reference in a new issue