Patchwork [3/3] dbus: return NULL data for peer IEs

login
register
mail settings
Submitter reinette chatre
Date Feb. 22, 2012, 8:59 p.m.
Message ID <1329944347-6465-4-git-send-email-reinette.chatre@intel.com>
Download mbox | patch
Permalink /patch/142531/
State Accepted
Commit 93d1749fe09522892779151f0e22adb3e52efa20
Headers show

Comments

reinette chatre - Feb. 22, 2012, 8:59 p.m.
The org.freedesktop.DBus.Properties interface is now supported for peer
properties. Ensure that GetAll will work by having the IEs property
function return NULL data instead of a failure until it is implemented.

Signed-hostap: Reinette Chatre <reinette.chatre@intel.com>
intended-for: hostap-1
---
 wpa_supplicant/dbus/dbus_new_handlers_p2p.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

Patch

diff --git a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
index 62489f4..2e4b050 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
@@ -1465,10 +1465,14 @@  dbus_bool_t wpas_dbus_getter_p2p_peer_vendor_extension(DBusMessageIter *iter,
 dbus_bool_t wpas_dbus_getter_p2p_peer_ies(DBusMessageIter *iter,
 					  DBusError *error, void *user_data)
 {
+	dbus_bool_t success = TRUE;
 	/* struct peer_handler_args *peer_args = user_data; */
 
-	dbus_set_error_const(error, DBUS_ERROR_FAILED, "not implemented");
-	return FALSE;
+	success = wpas_dbus_simple_array_property_getter(
+			iter,
+			DBUS_TYPE_BYTE,
+			NULL, 0, error);
+	return success;
 }