From: Jouni Malinen Date: Fri, 15 Jul 2011 13:59:05 +0000 (+0300) Subject: P2P: Remove unused SearchOnly parameter from D-Bus p2p_find X-Git-Tag: hostap-1-bp~308 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d0db4127169f3f60b6a7c1c7cbb698fe48c9777;p=thirdparty%2Fhostap.git P2P: Remove unused SearchOnly parameter from D-Bus p2p_find --- diff --git a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c index ea79ca317..28c4198c5 100644 --- a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c +++ b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c @@ -78,7 +78,6 @@ DBusMessage * wpas_dbus_handler_p2p_find(DBusMessage *message, DBusMessageIter iter; DBusMessageIter iter_dict; unsigned int timeout = 0; - unsigned int searchonly = 0; enum p2p_discovery_type type = P2P_FIND_ONLY_SOCIAL; int num_req_dev_types = 0; unsigned int i; @@ -97,9 +96,6 @@ DBusMessage * wpas_dbus_handler_p2p_find(DBusMessage *message, if (!os_strcmp(entry.key, "Timeout") && (entry.type == DBUS_TYPE_INT32)) { 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) { if ((entry.type != DBUS_TYPE_ARRAY) || (entry.array_type != WPAS_DBUS_TYPE_BINARRAY))