diff --git a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c index 766418c80..e35b6c96a 100644 --- a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c +++ b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c @@ -1112,7 +1112,7 @@ DBusMessage *wpas_dbus_getter_p2p_peer_properties(DBusMessage * message, if (!wpa_dbus_dict_append_uint16(&dict_iter, "config_method", info->config_methods)) goto err_no_mem; - if (!wpa_dbus_dict_append_uint16(&dict_iter, "level", + if (!wpa_dbus_dict_append_int32(&dict_iter, "level", info->level)) goto err_no_mem; if (!wpa_dbus_dict_append_byte(&dict_iter, "devicecapability",