mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
D-Bus: Make p2p_no_group_iface configurable
Some old device need to set p2p_no_group_iface=1 to set up a P2P connection, so add a D-Bus interface to configure it. Signed-off-by: Guoqiang Liu <guoqiang.liu@archermind.com>
This commit is contained in:
parent
8b6b6d8238
commit
d06ecab344
@ -825,6 +825,11 @@ dbus_bool_t wpas_dbus_getter_p2p_device_config(DBusMessageIter *iter,
|
||||
wpa_s->conf->disassoc_low_ack))
|
||||
goto err_no_mem;
|
||||
|
||||
/* No Group Iface */
|
||||
if (!wpa_dbus_dict_append_bool(&dict_iter, "NoGroupIface",
|
||||
wpa_s->conf->p2p_no_group_iface))
|
||||
goto err_no_mem;
|
||||
|
||||
if (!wpa_dbus_dict_close_write(&variant_iter, &dict_iter) ||
|
||||
!dbus_message_iter_close_container(iter, &variant_iter))
|
||||
goto err_no_mem;
|
||||
@ -974,6 +979,9 @@ dbus_bool_t wpas_dbus_setter_p2p_device_config(DBusMessageIter *iter,
|
||||
else if (os_strcmp(entry.key, "disassoc_low_ack") == 0 &&
|
||||
entry.type == DBUS_TYPE_UINT32)
|
||||
wpa_s->conf->disassoc_low_ack = entry.uint32_value;
|
||||
else if (os_strcmp(entry.key, "NoGroupIface") == 0 &&
|
||||
entry.type == DBUS_TYPE_BOOLEAN)
|
||||
wpa_s->conf->p2p_no_group_iface = entry.bool_value;
|
||||
else
|
||||
goto error;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user