P2P: Remove unused SearchOnly parameter from D-Bus p2p_find
This commit is contained in:
parent
263ef84d3a
commit
0d0db41271
1 changed files with 0 additions and 4 deletions
|
@ -78,7 +78,6 @@ DBusMessage * wpas_dbus_handler_p2p_find(DBusMessage *message,
|
||||||
DBusMessageIter iter;
|
DBusMessageIter iter;
|
||||||
DBusMessageIter iter_dict;
|
DBusMessageIter iter_dict;
|
||||||
unsigned int timeout = 0;
|
unsigned int timeout = 0;
|
||||||
unsigned int searchonly = 0;
|
|
||||||
enum p2p_discovery_type type = P2P_FIND_ONLY_SOCIAL;
|
enum p2p_discovery_type type = P2P_FIND_ONLY_SOCIAL;
|
||||||
int num_req_dev_types = 0;
|
int num_req_dev_types = 0;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
@ -97,9 +96,6 @@ DBusMessage * wpas_dbus_handler_p2p_find(DBusMessage *message,
|
||||||
if (!os_strcmp(entry.key, "Timeout") &&
|
if (!os_strcmp(entry.key, "Timeout") &&
|
||||||
(entry.type == DBUS_TYPE_INT32)) {
|
(entry.type == DBUS_TYPE_INT32)) {
|
||||||
timeout = entry.uint32_value;
|
timeout = entry.uint32_value;
|
||||||
} else if (!os_strcmp(entry.key, "SearchOnly") &&
|
|
||||||
(entry.type == DBUS_TYPE_BOOLEAN)) {
|
|
||||||
searchonly = (entry.bool_value == TRUE) ? 1 : 0;
|
|
||||||
} else if (os_strcmp(entry.key, "RequestedDeviceTypes") == 0) {
|
} else if (os_strcmp(entry.key, "RequestedDeviceTypes") == 0) {
|
||||||
if ((entry.type != DBUS_TYPE_ARRAY) ||
|
if ((entry.type != DBUS_TYPE_ARRAY) ||
|
||||||
(entry.array_type != WPAS_DBUS_TYPE_BINARRAY))
|
(entry.array_type != WPAS_DBUS_TYPE_BINARRAY))
|
||||||
|
|
Loading…
Reference in a new issue